Initializes the VLC encoder structure.
ippsVLCEncodeInit_32s (const IppsVLCTable_32s* pInputTable, int inputTableSize, IppsVLCEncodeSpec_32s* pVLCSpec);
pInputTable |
Pointer to the VLC table |
inputTableSize |
Size of the VLC table |
pVLCSpec |
Pointer to the VLC encoder specification structure. |
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.
The parameters pInputTable and inputTableSize of the ippsVLCEncodeInit and ippsVLCEncodeGetSize functions must have equal respective values to avoid an error in subsequent encoding functions.
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. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.