VLCEncodeInit

Initializes the VLC encoder structure.

Syntax

ippsVLCEncodeInit_32s (const IppsVLCTable_32s* pInputTable, int inputTableSize, IppsVLCEncodeSpec_32s* pVLCSpec);

Parameters

pInputTable

Pointer to the VLC table

inputTableSize

Size of the VLC table

pVLCSpec

Pointer to the VLC encoder specification structure.

Description

The function ippsVLCEncodeInit is declared in the ippdc.h file. This function initializes in the external buffer the VLC encoder specification structure pVLCSpec that uses the VLC table pInputTable. The size of the external buffer should be computed previously by calling the function ippsVLCEncodeGetSize. Alternatively, the VLC encoder structure can be initialized by the function ippsVLCEncodeInitAlloc.

The VLC encoder specification structure is used by the functions ippsVLCEncodeBlock and ippsVLCEncodeOne.

Note iconNote

The parameters pInputTable and inputTableSize of the ippsVLCEncodeInit and ippsVLCEncodeGetSize functions must have equal respective values to avoid an error in subsequent encoding functions.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsVLCInputDataErr

Indicates an error if inputTableSize is less than or equal to 0.

Submit feedback on this help topic

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