MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / tilt_factor

Function tilt_factor

libavcodec/wmavoice.c:540–548  ·  view source on GitHub ↗

* Get the tilt factor of a formant filter from its transfer function * @see #tilt_factor() in amrnbdec.c, which does essentially the same, * but somehow (??) it does a speech synthesis filter in the * middle, which is missing here * * @param lpcs LPC coefficients * @param n_lpcs Size of LPC buffer * @returns the tilt factor */

Source from the content-addressed store, hash-verified

538 * @returns the tilt factor
539 */
540static float tilt_factor(const float *lpcs, int n_lpcs)
541{
542 float rh0, rh1;
543
544 rh0 = 1.0 + ff_dot_productf(lpcs, lpcs, n_lpcs);
545 rh1 = lpcs[0] + ff_dot_productf(lpcs, &lpcs[1], n_lpcs - 1);
546
547 return rh1 / rh0;
548}
549
550/**
551 * Derive denoise filter coefficients (in real domain) from the LPCs.

Callers 2

calc_input_responseFunction · 0.70
wiener_denoiseFunction · 0.70

Calls 1

ff_dot_productfFunction · 0.85

Tested by

no test coverage detected