×

Adaptive quantization using code length in image compression

  • US 6,882,753 B2
  • Filed: 06/04/2001
  • Issued: 04/19/2005
  • Est. Priority Date: 06/04/2001
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for compressing an image data block, comprising the steps of:

  • (a) subjecting the image data block to discrete cosine transformation so as to generate discrete cosine transform data;

    (b) quantizing the discrete cosine transform data in accordance with a quantizer matrix that consists of an array of quantizing coefficients so as to generate quantized data, wherein each of the quantizing coefficients in the quantizer matrix is a power of 2;

    (c) encoding the quantized data using an entropy coding algorithm so as to generate an encoded bitstream; and

    (d) when the length of the encoded bitstream does not fall within a predetermined range, adjusting the quantizing coefficients in the quantizer matrix and repeating steps (b) and (c) until the length of the encoded bitstream falls within the predetermined range, wherein step (d) includes;

    (d-1) grouping the quantizing coefficients in said quantizer matrix into a plurality of coefficient groups, the coefficient groups being arranged into lower-ordered groups that include a lowest-ordered group, and higher-ordered groups that include a highest-ordered group, the number of quantizing coefficients in each of the lower-ordered groups being less than that in each of the higher-ordered groups; and

    (d-2) adjusting the quantizing coefficients in one of said coefficient groups according to the length of the encoded bitstream, wherein;

    the quantizing coefficients are unscaled by a factor of 2 group-by-group starting from the highest-ordered group to the lowest-ordered group whenever the length of the encoded bitstream is greater than an upper limit of the predetermined range; and

    the quantizing coefficients are downscaled by a factor of 2 group-by-group starting from the lowest-ordered group to the highest-ordered group whenever the length of the encoded bitstream is less than a lower limit of the predetermined range.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×