Patent ID: 8787686

Claim:
An image processing device comprising: a significant digit number encoding unit that designates a predetermined number of coefficient data items of a plurality of coefficient data items generated from image data as a set, obtains the maximum number of significant digits which is the number of significant digits of coefficient data having the greatest absolute value in relation to each set every cycle, and encodes information regarding the maximum number of significant digits; a zero run encoding unit that encodes zero runs formed by sets including only coefficient data whose value is 0 at a cycle different from a cycle of encoding of the significant digit number encoding unit; an absolute value encoding unit that extracts an absolute value for the maximum number of significant digits of each coefficient data item in a set which has been encoded by the significant digit number encoding unit in relation to coefficient data other than the zero runs, and encodes the absolute value at a cycle different from a cycle of encoding of the significant digit number encoding unit; and a sign encoding unit that encodes a positive or negative sign of each coefficient data item whose absolute value is not 0 in a set which has been encoded by the absolute value encoding unit at a cycle different from a cycle of encoding of the absolute value encoding unit in relation to coefficient data other than the zero runs.