摘要 |
PROBLEM TO BE SOLVED: To obtain the video coder whose circuit scale is reduced by selecting a small data width for a variable length code table. SOLUTION: A Huffman code outputted from a Huffman coding DC table 2 and a Huffman coding AC table 3 is combined with additional bits and the result is given to a barrel shift circuit 6. On the other hand, a code length of the Huffman code is added to a value denoting a valid bit width of the code less than a width of data latched in a register 11 and packed therein and the sum is subtracted from a fixed value at a subtractor 15 and the result gives to the barrel shift circuit G as a shift value. High-order bits of data set in the barrel shift circuit 6 are packed with the code less than the width of data latched in a register 8 at an AND circuit 9 and the result is again latched in the register 8. When the data width of the packed code reaches the data width or over, an adder 14 produces a carry and the packet code is validated. |