DecodeAdaptiveVector_G729

Restores the adaptive codebook vector by interpolating the past excitation.

Syntax

IppStatus ippsDecodeAdaptiveVector_G729_16s(const Ipp16s* pSrcDelay, Ipp16s* pSrcDstPrevExcitation, Ipp16s* pDstAdptVector);

IppStatus ippsDecodeAdaptiveVector_G729_16s_I(const Ipp16s* pSrcDelay, Ipp16s* pSrcDstPrevExcitation);

IppStatus ippsDecodeAdaptiveVector_G729_32f_I(const Ipp32s* pSrcDelay, Ipp32f* pSrcDstPrevExcitation);

Parameters

pSrcDelay

Pointer to the integer and fraction delay for each subframe.

pSrcDstPrevExcitation

Pointer to the past and updated excitations vector [194].

pDstAdptVector

Pointer to the adaptive codebook vector [40].

Description

The function ippsDecodeAdaptiveVector_G729 is declared in the ippsc.h file. This function restores the adaptive codebook vector by interpolating the past excitation. It performs the following steps:

1. Decodes the integer part and fractional part of the pitch delay T and t.

2. Interpolates the past excitation to get the current adaptive excitation as:



n = 0, 1,..., 39

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsRangeErr

Indicates an error when pSrcDelay[0] is not in the range [18, 145], or pSrcDelay[1] is not -1, 0 or 1.

Submit feedback on this help topic

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