Patent attributes
Provided are an image processing apparatus and image processing method capable of processing image data as packet data, and compressing the image data in real time to a data amount within the storage capacity of a memory. Image data in the form of packet data is divided into a plurality of blocks by a block forming circuit (102), and compressed at a first compression ratio by a DCT circuit (104), quantizing circuit (105), and Huffman encoding circuit (106) for each block. A counter (108) measures the data amount of the compressed image data. If the measured data amount is equal to or larger than a predetermined value, the image data stored in a memory (112) is recompressed at a second compression ratio as a higher compression ratio by a Huffman decoding circuit (113), bit shifting circuit (114), and Huffman encoding circuit (115).