Patent ID: 7042941

Claim:
A method for controlling amount of quantization processing, the method comprises: receiving discrete cosine transform data of a block of a frame of data, wherein the frame of data is divided into a plurality of regions, wherein each of the plurality of regions includes a plurality of blocks, and wherein the block is within one of the plurality of regions; obtaining a quantization table relating to the frame of data; obtaining an allocated number of bits for quantizing data for each of the plurality of regions; obtaining a plurality of quantization scaling factors relating to the frame of data; generating a plurality of quantization matrixes based on the plurality of quantization scaling factors, the quantization table, and the discrete cosine transform data; for the block of the frame of data, determining whether an actual number of bits to quantize data of a preceding one of the plurality of regions exceeded the allocated number of bits for quantizing data for the preceding one of the plurality of regions; and selecting one of the plurality of quantization matrixes as quantization data based on a decision input and the determining whether the actual number of bits to quantize the data of the preceding one of the plurality of regions exceeded the allocated number of bits for quantizing data of the preceding one of the plurality of regions.