Performs quantization on DCT coefficients for non-intra blocks in-place with specified quantization matrix according to MPEG-2 standard.
IppStatus ippiQuant_MPEG2_16s_C1I(Ipp16s* pSrcDst, Ipp32s QP, const Ipp32f* pQPMatrix, Ipp32s* pCount);
pSrcDst |
Pointer to the block of DCT coefficients. |
QP |
Quantizer. |
pQPMatrix |
Pointer to the matrix of inverted quantization coefficients. |
pCount |
Number of the non-zero coefficients after quantization. |
This function is declared in the ippvc.h header file. The in-place function ippiQuant_MPEG2_16s_C1I multiplies DCT coefficients in block by the elements of the inverted quantization matrix and divide them by quantizer. The number of non-zero coefficients after quantization is stored in pCount for future considerations. If the pointer pQPMatrix is NULL, then the default matrix is used.
This function is used in the MPEG-2 encoder included into Intel IPP Samples. See introduction to MPEG-1 and MPEG-2.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when at least one input pointer is NULL. |
ippStsDivByZeroErr |
Indicates an error when quantizer QP is equal to zero. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.