view 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 source
1 // Compress/BZip2Const.h
3 #ifndef __COMPRESS_BZIP2_CONST_H
4 #define __COMPRESS_BZIP2_CONST_H
6 namespace NCompress {
7 namespace NBZip2 {
9 const Byte kArSig0 = 'B';
10 const Byte kArSig1 = 'Z';
11 const Byte kArSig2 = 'h';
12 const Byte kArSig3 = '0';
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;
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;
28 const int kNumOrigBits = 24;
30 const int kNumTablesBits = 3;
31 const int kNumTablesMin = 2;
32 const int kNumTablesMax = 6;
34 const int kNumLevelsBits = 5;
36 const int kMaxHuffmanLen = 20; // Check it
38 const int kMaxAlphaSize = 258;
40 const int kGroupSize = 50;
42 const int kBlockSizeMultMin = 1;
43 const int kBlockSizeMultMax = 9;
44 const UInt32 kBlockSizeStep = 100000;
45 const UInt32 kBlockSizeMax = kBlockSizeMultMax * kBlockSizeStep;
47 const int kNumSelectorsBits = 15;
48 const UInt32 kNumSelectorsMax = (2 + (kBlockSizeMax / kGroupSize));
50 const int kRleModeRepSize = 4;
52 }}
54 #endif