Adaptive quantization using code length in image compression
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.
1 Assignment
0 Petitions
Accused Products
Abstract
A method is adapted for compressing an image data block, and includes 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;
- (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.
72 Citations
12 Claims
-
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 Dependent Claims (2, 3, 4, 5, 6)
-
-
7. 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;
(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 the image data block is 2n×
2n in size, n being a positive integer; and
wherein the image data block is one of the U and V color space image data blocks, and is obtained by averaging adjacent discrete data in an initial image data block that is 22+n×
22+n in size to obtain the image data block that is 2n×
2n in size. - View Dependent Claims (8, 9, 10, 11, 12)
-
Specification