摘要 |
PROBLEM TO BE SOLVED: To realize an encoding and decoding processing of a variable length code with a small circuit scale. SOLUTION: A controlling part 800 controlling the shift quantity of a barrel shifter 200, 1st means 100 and 101 inputting the output of register 400 to the barrel shifter, 2nd means 103, 104, 105, 301 and 300 inputting the logical OR of an output of the barrel shifter and an output of the register to the register 400 and a controlling part which performs the program searching of a code in a bit string of a variable length code to be inputted to the register with the barrel shifter when the variable length code is decoded and shifts encoded data with the barrel shifter to perform storage control of it at an appropriate bit position in the register when variable length coding is performed are constructed by combining a decoding means 500 and an encoding means 501. Thus, the barrel shifter can be shared for encoding processing and decoding processing of a variable length code, and a variable length code encoding/ decoding circuit with a small circuit scale can be realized. |