摘要 |
<p>A quantizer for quantizing scanned DCT coefficients in a video encoder is disclosed. The quantizer comprises a memory having a first bank with a plurality of areas for storing an inter quantization matrix and a second bank with a plurality of areas for storing an intra quantization matrix; a memory controller for generating a write address for writing the inter quantization matrix and the intra quantization matrix in the memory in an order of zigzag scanning manner, and a read address for reading a corresponding quantization matrix from the memory in an order of a scanning manner of the DCT coefficients, and controlling a write/read operation of the inter quantization matrix and the intra quantization matrix in the memory according to the write address and the read address; an arithmetic controller for obtaining a reciprocal value of the corresponding quantization matrix from the memory via the memory controller and a reciprocal value of a quantization scale provided externally and outputting the obtained value; and an arithmetic unit for quantizing the scanned DCT by using the reciprocal values of the corresponding quantization matrix and the quantization scale. Thus, a corresponding quantization matrix can be read from a memory without data collision, in accordance with scanned manner of DCT coefficients. <IMAGE></p> |