EncodeTNS_AAC

Performs reversion of TNS in the Long Term Reconstruct loop in-place.

Syntax

IppStatus ippsEncodeTNS_AAC_32s_I(Ipp32s* pSrcDst, const int* pTnsNumFilt, const int* pTnsRegionLen, const int* pTnsFiltOrder, const int* pTnsFiltCoefRes, const Ipp8s* pTnsFiltCoef, const int* pTnsDirection, int maxSfb, int profile, int samplingRateIndex, int winLen);

Parameters

pSrcDst

On input, pointer to the spectral coefficients for the TNS encoding operation.

On output, pointer to the spectral coefficients after the TNS encoding operation.

pTnsNumFilt

Pointer to the number of TNS filters.

pTnsRegionLen

Pointer to the length of TNS filter.

pTnsFiltOrder

Pointer to the TNS filter order.

pTnsFiltCoefRes

Pointer to the TNS coefficient resolution flag.

pTnsFiltCoef

Pointer to the TNS filter coefficients.

pTnsDirection

Pointer to the TNS direction flag.

maxSfb

Maximum scale factor number.

profile

Audio profile.

samplingRateIndex

Sampling frequency index.

winLen

Window length.

Description

This function is declared in the ippac.h file. The function performs in-place reversion of TNS in the LTP loop, or Analysis Temporal Noise Shaping.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsTnsProfileErr

Indicates an error when profile != 1.

ippStsAacTnsNumFiltErr

Indicates an error when pTnsNumFilt exceeds [0, 1] for the short window sequence or [0, 3] for the long window sequence.

ippStsAacTnsLenErr

Indicates an error when pTnsRegionLen exceeds [0,numSwb].

ippStsAacTnsOrderErr

Indicates an error when pTnsFiltOrder exceeds [0, 7] for the short window sequence or [0, 12] for the long window sequence.

ippStsAacTnsCoefResErr

Indicates an error when pTnsFiltCoefRes exceeds [3, 4].

ippStsAacTnsCoefErr

Indicates an error when pTnsFiltCoef exceeds [-8, 7].

ippStsAacTnsDirectErr

Indicates an error when *pTnsDirection exceeds [0,1].

ippStsAacSmplRateIdxErr

Indicates an error when samplingRateIndex exceeds [0, 11].

ippStsAacWinLenErr

Indicates an error when winLen is not equal to 128 or 1024.

Submit feedback on this help topic

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