Patent ID: 7382294

Claim:
A coding apparatus comprising: a predicting unit that generates a piece of prediction data based on each piece of pixel data constituting a color image; an intermediate-code generating unit that compares each piece of prediction data with the corresponding piece of pixel data, to generate an intermediate code in accordance with whether or not a difference between each piece of prediction data and the corresponding piece of pixel data is in a range; a first coding unit that performs entropy coding on the intermediate code generated by the intermediate-code generating unit; and a second coding unit that performs entropy coding on the intermediate code generated by the intermediate-code generating unit, wherein: when the difference between each piece of prediction data and the corresponding piece of pixel data is in the range, the intermediate-code generating unit assigns to the first coding unit coincidence information indicating that prediction of the corresponding piece of pixel data is true, when the difference between each piece of prediction data and the corresponding piece of pixel data is out of the range, the intermediate-code generating unit assigns to the second coding unit a plurality of color-component values included in the corresponding piece of pixel data, the first coding unit performs the entropy coding on a first intermediate code, which relates to a plurality of color components, the second coding unit performs the entropy coding on second intermediate codes, which relate to the plurality of color components, respectively, the second coding unit comprises a plurality of entropy coders each for performing the entropy coding, when the difference between each piece of prediction data and the corresponding piece of pixel data is out of the range, the intermediate-code generating unit assigns to the plurality of entropy coders of the second coding unit the plurality of color-component values included in the corresponding piece of pixel data, respectively, and the plurality of entropy coders perform the entropy coding on the assigned color-component values concurrently.