Mercurial > vba-linux
comparison src/win32/7zip/7z/CPP/7zip/Compress/BZip2Const.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // Compress/BZip2Const.h | |
2 | |
3 #ifndef __COMPRESS_BZIP2_CONST_H | |
4 #define __COMPRESS_BZIP2_CONST_H | |
5 | |
6 namespace NCompress { | |
7 namespace NBZip2 { | |
8 | |
9 const Byte kArSig0 = 'B'; | |
10 const Byte kArSig1 = 'Z'; | |
11 const Byte kArSig2 = 'h'; | |
12 const Byte kArSig3 = '0'; | |
13 | |
14 const Byte kFinSig0 = 0x17; | |
15 const Byte kFinSig1 = 0x72; | |
16 const Byte kFinSig2 = 0x45; | |
17 const Byte kFinSig3 = 0x38; | |
18 const Byte kFinSig4 = 0x50; | |
19 const Byte kFinSig5 = 0x90; | |
20 | |
21 const Byte kBlockSig0 = 0x31; | |
22 const Byte kBlockSig1 = 0x41; | |
23 const Byte kBlockSig2 = 0x59; | |
24 const Byte kBlockSig3 = 0x26; | |
25 const Byte kBlockSig4 = 0x53; | |
26 const Byte kBlockSig5 = 0x59; | |
27 | |
28 const int kNumOrigBits = 24; | |
29 | |
30 const int kNumTablesBits = 3; | |
31 const int kNumTablesMin = 2; | |
32 const int kNumTablesMax = 6; | |
33 | |
34 const int kNumLevelsBits = 5; | |
35 | |
36 const int kMaxHuffmanLen = 20; // Check it | |
37 | |
38 const int kMaxAlphaSize = 258; | |
39 | |
40 const int kGroupSize = 50; | |
41 | |
42 const int kBlockSizeMultMin = 1; | |
43 const int kBlockSizeMultMax = 9; | |
44 const UInt32 kBlockSizeStep = 100000; | |
45 const UInt32 kBlockSizeMax = kBlockSizeMultMax * kBlockSizeStep; | |
46 | |
47 const int kNumSelectorsBits = 15; | |
48 const UInt32 kNumSelectorsMax = (2 + (kBlockSizeMax / kGroupSize)); | |
49 | |
50 const int kRleModeRepSize = 4; | |
51 | |
52 }} | |
53 | |
54 #endif |