cc [ flag... ] file... –lmlib [ library... ] #include <mlib.h> mlib_status mlib_SignalLPCPerceptWeight_F32(mlib_f32 *sigwgt, const mlib_f32 *signal, const mlib_f32 *lpc, mlib_f32 r1, mlib_f32 r2, void *state);
The mlib_SignalLPCPerceptWeight_F32() function performs perceptual weighting on input signal.
The perceptual weighting filter is defined as following.
A(z*r1) W(z) = --------- A(z*r2)
where A(z) is the inverse filter
M -i A(z) = 1 - SUM a(i) * z i=1
See G.723.1, G.728, G.729, G.729A, GSM EFR standards.
The function takes the following arguments:
The weighted signal vector.
The input signal vector.
The linear prediction coefficients.
The perceptual weighting filter coefficient, it is treated as 1 if 0 is supplied.
The perceptual weighting filter coefficient, it is treated as 1 if 0 is supplied.
Pointer to the internal state structure.
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_SignalLPCPerceptWeightInit_F32(3MLIB), mlib_SignalLPCPerceptWeightFree_F32(3MLIB), attributes(5)