VLCEncodeInitAlloc

Allocates memory and initializes the VLC encoder structure.

Syntax

ippsVLCEncodeInitAlloc_32s (const IppsVLCTable_32s* pInputTable, int inputTableSize, IppsVLCEncodeSpec_32s** ppVLCSpec);

Parameters

pInputTable

Pointer to the VLC table.

inputTableSize

Size of the VLC table.

ppVLCSpec

Double pointer to the VLC encoder specification structure.

Description

The function ippsVLCEncodeInitAlloc is declared in the ippdc.h file. This function allocates memory and initializes the VLC encoder specification structure ppVLCSpec that uses the VLC table pInputTable. The VLC encoder specification structure is used by the functions ippsVLCEncodeBlock and ippsVLCEncodeOne.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsMemAllocErr

Indicates an error if memory allocation fails.

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.