首页 > 代码库 > jpeg huffman coding table

jpeg huffman coding table

亮度DC系数的取值范围及序号:

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
序号(size)取值范围
0
1-1,1
2-3,-2,2,3
3-7~-4,4~7
4-15~-8,8~15
5-31~-16,16~31
6-63~-32,32~63
7-127~-64,64~127
8-255~-128,128~255
9-511~-256,256~511
10-1023~-512,512~1023
11-2047~-1024,1024~2047

 

 

 

 

 

 

 

 

 

 

 

 

 

 

亮度DC系数的huffman编码表:

序号(size)码长码字
0200
13010
23011
33100
43101
53110
641110
7511110
86111110
971111110
10811111110
119111111110

 

 

 

 

 

 

 

 

 

 

 

 

 

 

亮度AC系数的取值范围及序号:

 

序号(size)取值范围
0
1-1,1
2-3,-2,2,3
3-7~-4,4~7
4-15~-8,8~15
5-31~-16,16~31
6-63~-32,32~63
7-127~-64,64~127
8-255~-128,128~255
9-511~-256,256~511
10-1023~-512,512~1023

 

 

 

 

 

 

 

 

 

 

 

 

 

 

亮度AC系数的huffman编码表:

 

游程/序号

(rungth/size)

码长码字

游程/序号

(rungth/size)

码长码字

游程/序号

(rungth/size)

码长码字
0/0(EOB)410105/4161111111110011111A/8161111111111001101
0/12005/5161111111110100000A/9161111111111001110
0/22015/6161111111110100001A/A161111111111001111
0/331005/7161111111110100010B/1101111111001
0/4410115/8161111111110100011B/216111111111010000
0/55110105/9161111111110100100B/316111111111010001
0/6711110005/A161111111110100101B/416111111111010010
0/78111110006/171111011B/516111111111010011
0/81011111101106/212111111110110B/616111111111010100
0/91611111111100000106/3161111111110100110B/716111111111010101
0/A1611111111100000116/4161111111110100111B/816111111111010110
1/1411006/5161111111110101000B/916111111111010111
1/25110116/6161111111110101001B/A16111111111011000
1/3711110016/7161111111110101010C/1101111111010
1/491111101106/8161111111110101011C/216111111111011001
1/511111111101106/9161111111110101100C/316111111111011010
1/61611111111100001006/A161111111110101101C/416111111111011011
1/71611111111100001117/1811111010C/516111111111011100
1/81611111111100001107/212111111110111C/616111111111011101
1/91611111111100001117/3161111111110101110C/716111111111011110
1/A1611111111100010007/4161111111110101111C/816111111111011111
2/15111007/5161111111110110000C/916111111111100000
2/28111110017/6161111111110110001C/A16111111111100001
2/31011111101117/7161111111110110010D/111111111111000
2/4121111111101007/8161111111110110011D/2161111111111100010
2/51611111111100010017/9161111111110110100D/3161111111111100011
2/61611111111100010107/A161111111110110101D/4161111111111100100
2/71611111111100010118/19111111000D/5161111111111100101
2/81611111111100011008/215111111111000000D/6161111111111100110
2/91611111111100011018/3161111111110110110D/7161111111111100111
2/A1611111111100011108/4161111111110110111D/8161111111111101000
3/161110108/5161111111110111000D/9161111111111101001
3/291111101118/6161111111110111001D/A161111111111101010
3/3101111111101018/7161111111110111010E/1161111111111101011
3/41611111111100011118/8161111111110111011E/2161111111111101100
3/51611111111100100008/9161111111110111100E/3161111111111101101
3/61611111111100100108/A161111111110111101E/4161111111111101110
3/71611111111100100109/19111111001E/5161111111111101111
3/81611111111100100119/2161111111110111110E/6161111111111110000
3/91611111111100101009/3161111111110111111E/7161111111111110001
3/A1611111111100101009/4161111111111000000E/8161111111111110010
4/161110119/5161111111111000001E/9161111111111110011
4/21011111110009/6161111111111000010E/A161111111111110100
4/31611111111100101109/7161111111111000011F/0(ZRL)1111111111001
4/41611111111100101119/8161111111111000100F/116111111111110101
4/51611111111100110009/9161111111111000101F/216111111111110110
4/61611111111100110019/A161111111111000110F/316111111111110111
4/7161111111110011010A/19111111010F/416111111111111000
4/8161111111110011011A/2161111111111000111F/516111111111111001
4/9161111111110011100A/3161111111111001000F/616111111111111010
4/A161111111110011101A/4161111111111001001F/716111111111111011
5/171111010A/5161111111111001010F/816111111111111100
5/21111111110111A/6161111111111001011F/916111111111111101
5/3161111111110011110A/7161111111111001100F/A16111111111111110

 

色差DC系数的huffman编码表:

 

序号(size)码长码字
0200
1201
2210
33110
441110
5511110
66111110
771111110
8811111110
99111111110
10101111111110
111111111111110

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

色差AC系数的huffman编码表:

 

游程/序号

(rungth/size)

码长码字

游程/序号

(rungth/size)

码长码字

游程/序号

(rungth/size)

码长码字
0/0(EOB)2005/4161111111110100000A/81611111111111001111
0/12015/5161111111110100001A/91611111111111010000
0/231005/6161111111110100010A/A1611111111111010001
0/3410105/7161111111110100011B/191111111001
0/45110005/8161111111110100100B/2161111111111010010
0/55110015/9161111111110100101B/3161111111111010011
0/661110005/A161111111110100110B/4161111111111010100
0/7711110006/171111001B/5161111111111010101
0/891111101006/21111111110111B/6161111111111010110
0/91011111101106/3161111111110100111B/7161111111111010111
0/A12111111101006/4161111111110101000B/8161111111111011000
1/1410116/5161111111110101001B/9161111111111011001
1/261110016/6161111111110101010B/A161111111111011010
1/38111101106/7161111111110101011C/19111111010
1/491111101016/8161111111110101100C/2161111111111011011
1/511111111101106/9161111111110101101C/3161111111111011100
1/6121111111101016/A161111111110101110C/4161111111111011101
1/71611111111100010007/171111010C/5161111111111011110
1/81611111111100010017/21111111111000C/6161111111111011111
1/91611111111100010107/3161111111110101111C/7161111111111100000
1/A1611111111100010117/4161111111110110000C/8161111111111100001
2/15110107/5161111111110110001C/9161111111111100010
2/28111101117/6161111111110110010C/A161111111111100011
2/31011111101117/7161111111110110011D/11111111111001
2/4121111111101107/8161111111110110100D/2161111111111100100
2/5151111111110000107/9161111111110110101D/31611111111111100101
2/61611111111100011007/A161111111110110110D/41611111111111100110
2/71611111111100011018/1811111001D/51611111111111100111
2/81611111111100011108/2161111111110110111D/61611111111111101000
2/91611111111100011118/3161111111110111000D/71611111111111101001
2/A1611111111100100008/4161111111110111001D/81611111111111101010
3/15110118/5161111111110111010D/91611111111111101011
3/28111110008/6161111111110111011D/A1611111111111101100
3/31011111110008/7161111111110111100E/11411111111100000
3/4121111111101118/8161111111110111101E/2161111111111101101
3/51611111111100100018/9161111111110111110E/3161111111111101110
3/61611111111100100108/A161111111110111111E/4161111111111101111
3/71611111111100100119/19111110111E/5161111111111110000
3/81611111111100101009/2161111111111000000E/6161111111111110001
3/91611111111100101019/3161111111111000001E/7161111111111110010
3/A1611111111100101109/4161111111111000010E/8161111111111110011
4/161110109/5161111111111000011E/9161111111111110100
4/291111101109/6161111111111000100E/A161111111111110101
4/31611111111100101119/7161111111111000101F/0(ZRL)101111111010
4/41611111111100110009/8161111111111000110F/115111111111000011
4/51611111111100110019/9161111111111000111F/2161111111111110110
4/61611111111100110109/A161111111111001000F/3161111111111110111
4/7161111111110011011A/19111111000F/4161111111111111000
4/8161111111110011100A/2161111111111001001F/5161111111111111001
4/9161111111110011101A/3161111111111001010F/6161111111111111010
4/A161111111110011110A/4161111111111001011F/7161111111111111011
5/16111011A/5161111111111001100F/8161111111111111100
5/2101111111001A/6161111111111001101F/9161111111111111101
5/3161111111110011111A/7161111111111001110F/A161111111111111110