Mercurial > vba-clojure
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Compress/BZip2Const.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,54 @@ 1.4 +// Compress/BZip2Const.h 1.5 + 1.6 +#ifndef __COMPRESS_BZIP2_CONST_H 1.7 +#define __COMPRESS_BZIP2_CONST_H 1.8 + 1.9 +namespace NCompress { 1.10 +namespace NBZip2 { 1.11 + 1.12 +const Byte kArSig0 = 'B'; 1.13 +const Byte kArSig1 = 'Z'; 1.14 +const Byte kArSig2 = 'h'; 1.15 +const Byte kArSig3 = '0'; 1.16 + 1.17 +const Byte kFinSig0 = 0x17; 1.18 +const Byte kFinSig1 = 0x72; 1.19 +const Byte kFinSig2 = 0x45; 1.20 +const Byte kFinSig3 = 0x38; 1.21 +const Byte kFinSig4 = 0x50; 1.22 +const Byte kFinSig5 = 0x90; 1.23 + 1.24 +const Byte kBlockSig0 = 0x31; 1.25 +const Byte kBlockSig1 = 0x41; 1.26 +const Byte kBlockSig2 = 0x59; 1.27 +const Byte kBlockSig3 = 0x26; 1.28 +const Byte kBlockSig4 = 0x53; 1.29 +const Byte kBlockSig5 = 0x59; 1.30 + 1.31 +const int kNumOrigBits = 24; 1.32 + 1.33 +const int kNumTablesBits = 3; 1.34 +const int kNumTablesMin = 2; 1.35 +const int kNumTablesMax = 6; 1.36 + 1.37 +const int kNumLevelsBits = 5; 1.38 + 1.39 +const int kMaxHuffmanLen = 20; // Check it 1.40 + 1.41 +const int kMaxAlphaSize = 258; 1.42 + 1.43 +const int kGroupSize = 50; 1.44 + 1.45 +const int kBlockSizeMultMin = 1; 1.46 +const int kBlockSizeMultMax = 9; 1.47 +const UInt32 kBlockSizeStep = 100000; 1.48 +const UInt32 kBlockSizeMax = kBlockSizeMultMax * kBlockSizeStep; 1.49 + 1.50 +const int kNumSelectorsBits = 15; 1.51 +const UInt32 kNumSelectorsMax = (2 + (kBlockSizeMax / kGroupSize)); 1.52 + 1.53 +const int kRleModeRepSize = 4; 1.54 + 1.55 +}} 1.56 + 1.57 +#endif