Patent ID: 8107751

Claim:
A method of processing an image comprising a plurality of pixels, the method comprising: determining a range of values based on a number of coding bits and a quantization parameter; determining a difference signal value based on a sample pixel of the image, and a predicted value of the sample pixel; determining a quantized difference signal value based on the determined difference signal value and the quantization parameter; determining a quantized sample pixel value based on the sample pixel and a value of the determined range of values based on the coding bits; determining a differential pulse-code modulation (DPCM) error based on deducting the determined quantized difference signal value from the determined difference signal value; determining a pulse-code modulation (PCM) quantization error based on deducting the determined quantized sample pixel value from the sample pixel; and if the determined difference signal value is within the determined range of values and if the determined PCM quantization error is greater than or equal to the determined DPCM error, then assigning a sample pixel coding mode comprising one bit associated with the sample pixel to a mode indicating that the sample pixel is coded as data.