摘要 |
PROBLEM TO BE SOLVED: To provide an image encoder by which packet processing is attained in a short time and the image encoder with a small circuit amount. SOLUTION: This encoder is provided with a fixed length code generator 70, a variable length code generator 75, a bit packing device 80, a storage device 30 and a controller 50 and compresses input image data and generates an output data stream. The controller 50 reads a bit count from a work memory and stores it to the work memory as a 1st bit count, decides a location corresponding to the 1st bit count of the storage device 30 and stores the result to the work memory. Furthermore, a fixed length data stream and a variable length data stream are stored in the storage device 30. Moreover, the bit count is read again and stored in the work memory as a 2nd bit count and a data amount of the variable length data stream is decided and stored, based on the 1st and 2nd bit counts. The location of the storage device for the purpose is decided, based on the location above. |