返回

JPEG_DHT contact me by my_fpga@163.com

Dear yunfeng I have some issue about DHT table struct. Just like following segment.FFC4 : DHT table mark001C : Segment length Lh (not include FFC4001C)00 : DC table, table number is 0 The next 16 byte is counter number Li for Huffman code length is i. 01 00 03 01 01 01 01 01 00 00 00 00 00 00 00 00

count of code L1 is 01 when code length is 1count of code L2 is 00 when code length is 2count of code L3 is 03 when code length is 3count of code L4 is 01 when code length is 4...count of code is 00 when code length is 16 The issue is the next 9 bytes. just equal to L1 + L2 + L3 + .... + L16.how to used these 9 bytes express the the detail code. 9 bytes has 9 * 8 = 72 bitbut if we used L1 * 1 + L2 * 2 + L3 * 3 + L4 * 4 + ... + L16 * 16 = 1 * 1 + 0 * 2 + 3 * 3 + 4 * 1 + 5 * 1 + 6 * 1 + 7 * 1 + 8 * 1 = 39 bits (about 5 bytes). That is to say. we don't need 9 bytes recode these code. where goes the problem?Please see attachment for detail analyze. Thank you for your help.

名字: 自动排版 密码:

回复 | (1371) | westlakegirl | 2007-01-12 11:15:19