Reconstructs vectors from indexes.
IppStatus ippsVQReconstruction_32f(const Ipp32s** ppIndx, const Ipp32s** ppSign, const Ipp32s* pLengths, int nDiv, Ipp32f* pDst, IppsVQCodeBookState_32f** ppCodeBooks, int nCodeBooks);
ppIndx |
Double pointer to an array of input vectors of indexes for each codebook. |
ppSign |
Double pointer to an array of input vectors of signs for each codebook containing either 1 or -1. |
pLengths |
Pointer to an array of lengths of partitions of output vector. |
pDst |
Pointer to the reconstructed vector of spectrum values. |
nDiv |
Number of partitions of output vector. |
ppCodeBooks |
Double pointer to an array of pointers to the initialized codebook state structures. |
nCodeBooks |
Number of codebooks. |
This function is declared in the ippac.h header file. The function reconstructs a vector divided on several partitions. A partition is defined as set of indexes of vectors from the specified number of codebooks, that is, one index for one partition from each codebook. To reconstruct the values of the output vector, the function calculates the arithmetic mean of vector values from the specified number of codebooks. The arrays pIndx and pSign contain the number of vectors from the codebook and the sign.
for i=0 to nDiv -1, and for j = 0 to pLength[i] - 1.
Length of the array pDst must be equal to
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.