Visible to Intel only — GUID: GUID-B8A3CDD0-05A9-4B71-9760-62B086BB0069
Visible to Intel only — GUID: GUID-B8A3CDD0-05A9-4B71-9760-62B086BB0069
EncodeHuff_BZ2
Performs the bzip2-specific Huffman encoding.
Syntax
IppStatus ippsEncodeHuff_BZ2_16u8u(Ipp32u* pCode, int* pCodeLenBits, Ipp16u** ppSrc, int* pSrcLen, Ipp8u* pDst, int* pDstLen, IppEncodeHuffState_BZ2* pEncodeHuffState);
Include Files
ippdc.h
Domain Dependencies
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
Parameters
pCode |
Pointer to the bit buffer. |
pCodeLenBits |
Number of valid bits in the bit buffer. |
ppSrc |
Double pointer to the source vector. |
pSrcLen |
Pointer to the length of source vector. |
pDst |
Pointer to the destination vector. |
pDstLen |
Pointer to the size of destination buffer on input, pointer to the resulting length of the destination vector on output. |
pEncodeHuffState |
Pointer to internal state structure for bzip2 specific Huffman encoding. |
Description
This function performs the bzip2-specific Huffman encoding. The function uses the bzip2-specific Huffman encoding state structure pEncodeHuffState. This structure must be initialized by ippsEncodeHuffInit_BZ2 beforehand.
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if one of the pointers is NULL. |
ippStsSizeErr |
Indicates an error if length of the source or destination buffer is less than or equal to 0. |
ippStsDstSizeLessExpected |
Indicates a warning if size of the destination buffer is insufficient to store all output elements. |