摘要 |
<p>PROBLEM TO BE SOLVED: To provide a variable length encoding device which can decode both to the forward direction and to the reverse direction, and can compose a variable length code high in encoding efficiency with few useless bit patterns. SOLUTION: The variable length encoding device assigns a cord word having a code length responding to the occurrence probability to an orthogonal transformation coefficient generated by performing orthogonal transformation of a block unit, and outputs the cord word corresponding to the orthogonal transformation coefficient generated by a dynamic image encoder 709 as coded data. Furthermore the variable length encoding device composes the first cord word table storing a plurality of cord words which can be decoded to the forward direction and to the reverse direction for every encoding mode making respond to the orthogonal transformation coefficient other than the last of a block and the second cord word table provided in common to each encoding mode, and storing the plurality of cord words which can be decoded to the forward direction and to the reverse direction making respond to the orthogonal transformation coefficient of the last of the block, and selects the cord word corresponding to the orthogonal transformation coefficient from the first and second cord word tables to output it as the coded data.</p> |