Performs VLC encoding of a single element.
ippsVLCEncodeOne_16s1u (Ipp16s src, Ipp8u** ppDst, int* pDstBitsOffset, const IppsVLCEncodeSpec_32s* pVLCSpec);
src |
Source value. |
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 ippsVLCEncodeOne is declared in the ippdc.h file. This function encodes a single element src 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 function ippsVLCEncodeOne 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.