Patent ID: 7439880

Claim:
An image coding device comprising: an image coding unit operable to sequentially code image data per predetermined unit; a binarization unit operable to binarize the coded image data obtained from said image coding unit; an accumulation unit operable to accumulate I_PCM data or binary data per predetermined unit corresponding to the image data, the binary data being obtained from said binarization unit; a measuring unit operable to measure an amount of data accumulated in said accumulation unit; a comparison unit operable to compare the amount of the data measured by said measuring unit with a threshold per predetermined unit; an accumulation selection unit operable to, based on a result of the comparison by said comparison unit, cause said accumulation unit to accumulate binary data obtained by inputting next coded image data into said binarization unit when the amount of the data does not exceed the threshold and cause said accumulation unit to accumulate next I_PCM data when the amount of the data exceeds the threshold; an arithmetic coding unit operable to arithmetically code the binary data accumulated in said accumulation unit; and an output unit operable to output the arithmetically coded data obtained from said arithmetic coding unit when the binary data is arithmetically coded by said arithmetic coding unit and output the I_PCM data accumulated in said accumulation unit when the I_PCM data is accumulated in said accumulation unit.