FilterNoiseInit

Initializes the state structure for the noise reduction filter

Syntax

IppStatus ippsFilterNoiseInit_EC_32f(IppPCMFrequency pcmFreq, IppsFilterNoiseState_EC_32f* pNRStateMem);

IppStatus ippsFilterNoiseInit_RTA_32f(IppPCMFrequency pcmFreq, IppsFilterNoiseState_RTA_32f* pNRStateMem);

Parameters

pcmFreq

Sampling frequency, the following values are supported: IPP_PCM_FREQ_8000, IPP_PCM_FREQ_16000, IPP_PCM_FREQ_22050 or IPP_PCM_FREQ_32000.

pNRStateMem

Pointer to the state structure for noise reduction filter.

Description

The functions ippsFilterNoiseInit are declared in the ippsc.h file. These functions initialize the noise reduction filter state structure pNRStateMem. Before calling these functions the memory must be allocated for the state structure. Its size must be calculated by the functions ippsFilterNoiseGetStateSize.

When the structure is initialized the noise residual level is set to the default values: ippsNrMedium for EC, and ippsNrNormal for RTA. This level can be changed using the function ippsFilterNoiseLevel.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pNRStateMem pointer is NULL.

IppStsRangeErr

Indicates an error when pcmFreq has an illegal value.

Submit feedback on this help topic

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