Encodes and puts quantized DCT coefficients for inter coded block into bitstream.
IppStatus ippiEncodeCoeffsInter_H263_16s1u(Ipp16s* pQCoef, Ipp8u** ppBitStream, int* pBitOffset, int countNonZero, int modQuantFlag, int scan);
pQCoef |
Pointer to the array of quantized DCT coefficients. pQCoef[0] is the DC coefficient. |
||||
ppBitStream |
Pointer to pointer to the current byte in the bitstream buffer. **ppBitStream is updated by the function. |
||||
pBitOffset |
Pointer to the bit position in the byte pointed by **ppBitStream. Valid within the range 0 to 7. *pBitOffset is updated by the function. |
||||
countNonZero |
Number of non-zero coefficients in the block. Valid within the range 1 to 64. |
||||
modQuantFlag |
Flag equal to a non-zero value when Modified Quantization mode is in use, equal to 0 otherwise. |
||||
scan |
Type of the scan to be performed on the coefficints before encoding, takes one of the following values:
See the corresponding enumerator in the introduction to the General Functions. |
The function ippiEncodeCoeffsInter_H263_16s1u is declared in the ippvc.h header file. This function performs VLC encoding of the quantized DCT coefficients in a scan order for one inter coded block and puts the codes into the bitstream. Inter DCT VLC encoding process is specified in [ITUH263], subclause 5.4.2 (Table 16), and is modified as specified in [ITUH263] Annex T, clause T.4, when Modified Quantization mode is in use.
This function is used in the H.263 and MPEG-4 encoders included into Intel IPP Samples. See introduction to H.263.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if at least one of the specified pointers is NULL. |
ippStsBitOffsetErr |
Indicates an error condition if *pBitOffset is out of the range [0, 7]. |
ippStsOutOfRangeErr |
Indicates an error condition if countNonZero is out of the range [1, 64]. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.