Performs VLC encoding of a block of data.
ippsVLCEncodeBlock_16s1u (const Ipp16s* pSrc, int srcLen, Ipp8u** ppDst, int* pDstBitsOffset, const IppsVLCEncodeSpec_32s* pVLCSpec);
pSrc |
Pointer to the source buffer. |
srcLen |
Number of elements in the pSrc. |
ppDst |
Double pointer to the destination bitstream. |
pDstBitsOffset |
Pointer to the input/output bit position in the pDst. |
pVLCSpec |
Pointer to the VLC encoder specification structure. |
The function ippsVLCEncodeBlock is declared in the ippdc.h file. This function encodes srcLen elements of the source vector pSrc and stores the result in the destination buffer pDst. After encoding the function shifts the pDst pointer by the number of successfully written bytes. The function updates pDstBitsOffset setting it to the actual bit position in the destination buffer.
The ippsVLCEncodeBlock function uses the VLC table from the encoder specification structure pVLCSpec that must be initialized by the functions ippsVLCEncodeInitAlloc or ippsVLCEncodeInit beforehand.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if one of the specified pointers is NULL. |
ippStsVLCInputDataErr |
Indicates an error if incorrect input is used. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.