VLCDecodeGetSize

Computes the size of the VLC decoder structure.

Syntax

ippsVLCDecodeGetSize_32s (const IppsVLCTable_32s* pInputTable, int inputTableSize, Ipp32s* pSubTablesSizes, int numSubTables, Ipp32s* pSize);

Parameters

pInputTable

Pointer to the input table.

inputTableSize

Size of the input table.

pSubTablesSizes

Pointer to the sizes of the subtables.

numSubTables

Number of the subtables.

pVLCSpec

Pointer to the size of the VLC decoder specification structure.

Description

The function ippsVLCDecodeGetSize is declared in the ippdc.h file. This function computes the size of the VLC decoder structure ppVLCSpec that is specified by the following parameters: the VLC table pInputTable of size inputTableSize, the number of internal subtables numSubTables and their sizes pSubTablesSizes. Size values for the subtables must be greater than 0. The sum of these values must be greater than or preferably equal to the maximum code length in the VLC table. This function must be called prior to the function ippsVLCDecodeInit.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsVLCUsrTblCodeLengthErr

Indicates an error if the maximum code length in the input table exceeds 32; or if any size value for the subtables in pSubTablesSizes is less than 0; or if the sum of these values is less than the maximum code length in the input table.

Submit feedback on this help topic

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