摘要 |
An image encoder is provided which receives pixel data of N bits, where N is a natural number, and in which a difference generator calculates a difference between a pixel to be encoded, and a predicted value generated based on at least one pixel located around the pixel to be encoded, a quantizer quantizes a value obtained by subtracting a first offset value from the prediction difference value, and an adder adds the quantized value and a second offset together. An encoded predicted value decider predicts, based on a signal level of the predicted value, an encoded predicted value which is a signal level of the predicted value after encoding. A result of addition of the quantized value and the second offset value is added to or subtracted from the encoded predicted value to obtain encoded data of M bits, where M is a natural number, and N>M.
|