EncodeHuff

Performs Huffman encoding.

Syntax

IppStatus ippsEncodeHuff_8u(const Ipp8u* pSrc, int srcLen, Ipp8u* pDst, int* pDstLen, IppHuffState_8u* pHuffState);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.