Patent ID: 8090209

Claim:
An image coding device that codes image, said image coding device performing coding processing for coding image, the image including a plurality of pixels which are previously ordered, the coding processing including: when a digit number B of binary data of a difference value between (a) a value of a to-be-coded pixel that is a pixel to be coded and (b) a prediction value that is a value generated by predicting the value of the to-be-coded pixel is smaller than a predetermined bit number M, processing of coding the difference value corresponding to the digit number B smaller than M by leaving J surplus bit which are calculated by M−B; and when the digit number B is greater than M and there are K surplus bit, processing of coding the difference value corresponding to the digit number B greater than M by using L surplus bit, where L≦K, and said image coding device generating pieces of coded data each having a predetermined coding amount, by performing processing for each of consecutive T pixels, where T≧2, among the plurality of pixels so as to perform the coding processing for each of U pixels, where U≦T, among the consecutive T pixels, wherein the pieces of coded data each having the predetermined coding amount are pieces of data necessary to reconstruct the image, and each of the pieces of coded data each having the predetermined coding amount is a piece of data necessary to reconstruct the corresponding T pixels.