Performs Huffman encoding of a single element.
IppStatus ippsEncodeHuffOne_8u(Ipp8u src, Ipp8u* pDst, int dstOffsetBits, IppHuffState_8u* pHuffState);
src |
Source single element. |
pDst |
Pointer to the destination buffer. |
dstOffsetBits |
Offset (in bits) of the position of code word in the destination buffer starting from the high bit. |
pHuffState |
Pointer to the Huffman encoding structure. |
The function ippsEncodeHuffOne is declared in the ippdc.h file. This function encodes the single source element src using the Huffman encoding structure pHuffState. The result is placed in the destination buffer pDst in position specified by the value (in bits) of offset from the high bit dstOffsetBits. The Huffman encoding structure must be initialized by calling the functions ippsEncodeHuffInitAlloc or ippsEncodeHuffInit beforehand.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if one of the specified pointers is NULL. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.