DecodeMsPNS_AAC

Implements perceptual noise substitution (PNS) coding in the case of joint coding.

Syntax

IppStatus ippsDecodeMsPNS_AAC_32s(Ipp32s* pSrcDstSpec, int* pSrcDstLtpFlag, Ipp8u* pSfbCb, Ipp16s* pScaleFactor, int maxSfb, int numWinGrp, int* pWinGrpLen, int samplingFreqIndex, int winLen, int* pRandomSeed, int channel, Ipp8u* pMsUsed, int* pNoiseState);

Parameters

pSrcDstSpec

Pointer to spectrum coefficients for perceptual noise substitution (PNS).

pSrcDstLtpFlag

Pointer to long term predict (LTP) flag.

pSfbCb

Pointer to the scalefactor code book.

pScaleFactor

Pointer to the scalefactor coefficients.

maxSfb

Number of maximum scalefactor band.

numWinGrp

Number of window groups.

pWinGrpLen

Pointer to the length of every window group.

samplingFreqIndex

Sampling frequency index.

winLen

Window length.

pRandomSeed

Random seed.

channel

Index of the current channel: 0 means left, 1 means right.

pMsUsed

Pointer to MS-used buffer in CPE structure.

pNoiseState

Pointer to the noise state buffer, which stores the left channel noise random seed for every scalefactor band. When pMsUsed[sfb]==1, the content in this buffer is used for the right channel.

Description

This function is declared in the ippac.h file. The function implements perceptual noise substitution (PNS) coding in the case of joint coding. Certain sets of spectral coefficients are derived from random vectors rather than from Huffman‑coded symbols and inverse quantization process.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsAacMaxSfbErr

Indicates an error when maxSfb exceeds [0,IPP_AAC_MAX_SFB].

ippStsAacWinGrpErr

Indicates an error when maxWinGrp exceeds [0,8].

ippStsAacSmplRateIdxErr

Indicates an error when samplingFreqIndex exceeds [0,16].

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.