Patent ID: 8363966

Claim:
A method for image processing, comprising steps of: a processor receiving a color pixel; the processor searching two corresponding reference pixels according to the color pixel; the processor giving a maximum pixel value and a minimum pixel value of the color pixel according to the two reference pixels; and the processor selecting the compact adjusted binary encoding or the Golomb-Rice encoding according to the color pixel, the maximum pixel value, and the minimum pixel value, performing encoding, and producing encoding data corresponding to the color pixel, wherein in the step of selecting the compact adjusted binary encoding or the Golomb-Rice encoding according to the color pixel, the maximum pixel value, and the minimum pixel value, it is judged if the color pixel is between the maximum pixel value and the minimum pixel value; if the color pixel is between the maximum pixel value and the minimum pixel value, the compact adjusted binary encoding is selected for encoding the color pixel; if the color pixel is not between the maximum pixel value and the minimum pixel value, the Golomb-Rice encoding is selected for encoding the color pixel; wherein when the processor selecting the Golomb-Rice encoding, the color pixel is encoded according to a fixed encoding parameter.