Patent ID: 8285061

Claim:
An apparatus for image processing, comprising: an encoding storage unit, storing one or more color pixels; an encoding access processing unit, coupled to the encoding storage unit, storing the color pixel to the encoding storage unit; an encoding operational unit, coupled to the encoding access processing unit, the encoding access processing unit reading the color pixel stored in the encoding storage unit and two corresponding reference pixels and inputting to the encoding operational unit, and the encoding operational unit giving a maximum pixel value and a minimum pixel value according to the two reference pixels; a compact adjusted binary encoder, coupled to the encoding operational unit, and producing first encoding data according to the color pixel, the maximum pixel value, and the minimum pixel value; and a Golomb-Rice encoder, coupled to the encoding operational unit, producing second encoding data according to the color pixel, the maximum pixel value, the minimum pixel value, and a fixed encoding parameter; wherein the encoding operational unit selects inputting the color pixel, the maximum pixel value, the minimum pixel value, and an encoding parameter to the compact adjusted binary encoder or the Golomb-Rice encoder according to the color pixel, the maximum pixel value, and the minimum pixel value.