Creates and initializes the codebook structure.
IppStatus ippsVQCodeBookInitAlloc_32f(const Ipp32f* pInputTable, IppsVQCodeBookState_32f** ppCodeBook, int step, int height);
pInputTable |
Pointer to the codebook table of the size step * height containing height quantization vectors of the length step. |
ppCodeBook |
Doubleo 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. |
The function ippsVQCodeBookInitAlloc is declared in the ippac.h header file. This function allocates memory and initializes the state structure that contains the codebook and additional information needed for the search operation. This structure is used ippsVQPreliminarySelect, ippsVQMainSelect, ippsVQIndexSelect, and ippsVQReconstruction.
To free the memory allocated by this function, use the function ippsVQCodeBookFree.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when ppCodeBook or pInputTable pointer is NULL. |
ippStsMemAllocErr |
Indicates an error when no memory is allocated. |
ippStsSizeErr |
Indicates an error when step or height is less than or equal to 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.