GainQuant_G7291

Quantizes the codebook gain using a two-stage conjugate-structured codebook.

Syntax

IppStatus ippsGainQuant_G7291_16s(const Ipp16s pSrcFixedTarget[40], const Ipp16s pSrcFltFixedVector[40], Ipp16s valSrcQGain, Ipp16s* pDstQGainIndex, Ipp16s* pDstQGain, int subFrame);

Parameters

pSrcFixedTarget Pointer to the target signal for the adaptive codebook search vector.

pSrcFltFixedVector Pointer to the filtered fixed codebook vector.

valSrcQGain Quantized gain of the first stage.

pDstQGainIndex Pointer to the output gain codebook index.

pDstQGain Pointer to the output quantized gain.

subFrame Subframe number in range [0, 3]

Description

The function ippsGainQuant_G7291 are declared in the ippsc.h file. This function quantizes the gain using 7-bit codebook. It is applied in subframes. Procedure of the quantization of the 8 kbits/s gains is similar to the corresponding procedure in the G.729 codec.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsRangeErr

Indicates an error when subFrame is less than 0 or greater than 3.

Submit feedback on this help topic

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