VQCodeBookInit

Initializes the codebook structure.

Syntax

IppStatus ippsVQCodeBookInit_32f(const Ipp32f* pInputTable, IppsVQCodeBookState_32f** ppCodeBook, int step, int height, Ipp8u* pMemSpec);

Parameters

pInputTable

Pointer to the codebook table of the size step * height containing height quantization vectors of the length step.

ppCodeBook

Double pointer to the codebook state structure.

step

Step to the next line in the table InputTable, quantization vector length.

height

Table height, number of quantization vectors.

pMemSpec

Pointer to the area for the codebook structure.

Description

The function ippsVQCodeBookInit is declared in the ippac.h header file. This function initializes the structure that contains the codebook and additional information needed for the search operation. This structure is used by the functions ippsVQPreliminarySelect, ippsVQMainSelect, ippsVQIndexSelect, and ippsVQReconstruction.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when pInputTable, ppCodeBook or pMemSpec pointer is NULL.

ippStsSizeErr

Indicates an error when step or height is less than or equal to 0.

Submit feedback on this help topic

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