Performs Huffman encoding.
IppStatus ippsEncodeHuff_8u(const Ipp8u* pSrc, int srcLen, Ipp8u* pDst, int* pDstLen, IppHuffState_8u* pHuffState);
pSrc |
Pointer to the source buffer. |
srcLen |
Number of elements in the source buffer. |
pDst |
Pointer to the destination buffer. |
pDstLen |
Pointer to the number of elements in the destination vector after encoding. |
pHuffState |
Pointer to the Huffman encoding structure. |
The function ippsEncodeHuff is declared in the ippdc.h file. This function encodes data in the source buffer pSrc using the Huffman encoding structure pHuffState. The encoded data are placed in the destination buffer pDst. The actual number of elements in the destination buffer is written in pDstLen. 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. |
ippStsSizeErr |
Indicates an error if srcLen is less than or equal to 0. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.