HarmonicNoiseSubtract_G723

Performs harmonic noise shaping.

Syntax

IppStatus ippsHarmonicNoiseSubtract_G723_16s_I(Ipp16s val, int T, const Ipp16s* pSrc, Ipp16s* pSrcDst);

Parameters

val

The input harmonic filter coefficient, in Q15.

T

The input harmonic filter lag.

pSrc

Pointer to the input zero impulse response vector [60] of the combined filter.

pSrcDst

Pointer to the input/output harmonic noise weighted speech vector [60].

Description

The function ippsHarmonicNoiseSubtract_G723 is declared in the ippsc.h file. This function subtracts the harmonic shaped vector pSrc from vector pSrcDst, as follows:

pSrcDst[n] = pSrcDst[n] - (pSrc[n] + val*pSrc[n - T]), n = 0,..., 59

This operation is used for ringing subtraction, which is performed by subtracting the zero impulse response from the harmonic weighted speech vector to obtain the target vector:

t[n] = w[n] - z[n]

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

Submit feedback on this help topic

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