Perform inverse quantization on intra/inter coded block.
IppStatus ippiQuantIntra_MPEG4_16s_C1I(Ipp16s* pCoeffs, const IppiQuantIntraSpec_MPEG4* pSpec, int QP, int* pCountNonZero, int blockType);
IppStatus ippiQuantIntra_MPEG4_16s_C1I(Ipp16s* pSrcDst, Ipp8u QP, int blockIndex, const int* pQPMatrix);
pCoeffs |
Pointer to the quantized DCT coefficients. |
pSpec |
Pointer to the initialized specification structure IppiQuantIntraSpec_MPEG4 or IppiQuantInterSpec_MPEG4 initialized by ippiQuantIntraInit_MPEG4 or ippiQuantInterInit_MPEG4 respectively. |
QP |
Quantization parameter. |
pCountNonZero |
Pointer to the count of non-zero coefficients. |
blockType |
Indicates the block type. Takes one of the following values: IPPVC_BLOCK_LUMA - for lume and alpha blocks, IPPVC_BLOCK_CHROMA - for chroma blocks. |
pSrcDst |
Pointer to the input intra block coefficients; as an output argument points to the quantized intra block coefficients. |
blockIndex |
Block index indicating the component type and position as defined in subclause 6.1.3.8 of [ISO14496A]. Furthermore, indexes 6 to 9 indicate the alpha blocks spatially corresponding to luminance blocks 0 to 3 in the same macroblock. |
pQPMatrix |
The pointer, which is NULL, if the second inverse quantization method is used. If the first inverse quantization method is used, it points to the quantization weighting coefficient's buffer (for inter MB) whose first 64 elements are the quantization weighting matrix in Q0. The second 64 elements are their reciprocals in Q21. |
The functions ippiQuantIntra_MPEG4_16s_C1I and ippiQuantInter_MPEG4_16s_C1I are declared in the ippvc.h file. These functions perform quantization on intra/inter coded block.
For ippiQuantIntra_MPEG4_16s_C1I and ippiQuantInter_MPEG4_16s_C1I output coefficients are saturated to lie in range [-2047; 2047]. Also these functions calculate the number of non-zero coefficients after quantization.
These functions are used in the MPEG-4 encoder included into Intel IPP Samples. See introduction to MPEG-4.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if at least one pointer is NULL. |
ippStsQPErr |
Indicates an error condition if QP is less than or equal to 0. |
ippStsBadArgErr |
Indicates bad arguments. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.