diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-04-24 00:24:45 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-04-24 00:24:45 +0400 |
commit | eb8b3c2b07a761fdb3fcb6f7e39679ccfba595a6 (patch) | |
tree | 853b4178ba2d9eb2c8758282c1e30f7f5fdf709d /silk | |
parent | 28b1d248a775cfdd7bd11281db0b635124647303 (diff) |
Adds note on monic filter
Diffstat (limited to 'silk')
-rw-r--r-- | silk/fixed/noise_shape_analysis_FIX.c | 3 | ||||
-rw-r--r-- | silk/float/noise_shape_analysis_FLP.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/silk/fixed/noise_shape_analysis_FIX.c b/silk/fixed/noise_shape_analysis_FIX.c index 8a3d7ccb..d8459ae7 100644 --- a/silk/fixed/noise_shape_analysis_FIX.c +++ b/silk/fixed/noise_shape_analysis_FIX.c @@ -34,6 +34,9 @@ POSSIBILITY OF SUCH DAMAGE. /* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ /* non-warped frequency scale. (So that it can be implemented with a minimum-phase monic filter.) */ +/* Note: A monic filter is one with the first coefficient equal to 1.0. In Silk + we omit the first coefficient in an array of coefficients, for monic filters. +*/ static inline opus_int32 warped_gain( /* gain in Q16*/ const opus_int32 *coefs_Q24, opus_int lambda_Q16, diff --git a/silk/float/noise_shape_analysis_FLP.c b/silk/float/noise_shape_analysis_FLP.c index 0f3a4965..89c97992 100644 --- a/silk/float/noise_shape_analysis_FLP.c +++ b/silk/float/noise_shape_analysis_FLP.c @@ -34,6 +34,9 @@ POSSIBILITY OF SUCH DAMAGE. /* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ /* non-warped frequency scale. (So that it can be implemented with a minimum-phase monic filter.) */ +/* Note: A monic filter is one with the first coefficient equal to 1.0. In Silk + we omit the first coefficient in an array of coefficients, for monic filters. +*/ static inline silk_float warped_gain( const silk_float *coefs, silk_float lambda, |