EncodeHuffOne

Performs Huffman encoding of a single element.

Syntax

IppStatus ippsEncodeHuffOne_8u(Ipp8u src, Ipp8u* pDst, int dstOffsetBits, IppHuffState_8u* pHuffState);

Parameters

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.

Description

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.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

Submit feedback on this help topic

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