EncodeHuffFinal

Performs Huffman encoding of the remainder.

Syntax

IppStatus ippsEncodeHuffFinal_8u(Ipp8u* pDst, int* pDstLen, IppHuffState_8u* pHuffState);

Parameters

pDst

Pointer to the destination vector.

pDstLen

Pointer to the number of elements in the destination vector after encoding.

pHuffState

Pointer to the Huffman coding structure.

Description

The function ippsEncodeHuffFinal is declared in the ippdc.h file. This function performs the final stage of the Huffman encoding - flushes the remainder part of the encoded data to the destination vector pDst with pDstLen elements using the encoding structure pHuffState. The function must be run just after ippsEncodeHuff, while the Huffman encoding structure pHuffState is still initialized.

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.