Displaying 2 results from an estimated 2 matches for "tf_estimate".
Did you mean:
dh_estimate
2013 Dec 09
1
incorrect use of MAX16
...finition of MAX16 is type-less,
but I am working on an architecture with hardware support for
min/max of 16bit. Changing the default definition to take
advantage of this hardware changes the result of that
computation.
Please consider the change below for inclusion in the opus
code base.
/* *tf_estimate = 1 + MIN16(1, sqrt(MAX16(0, tf_max-30))/20); */
- *tf_estimate = celt_sqrt(MAX16(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
+ *tf_estimate = celt_sqrt(MAX32(0,
SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONST32(0.139,28)));
/*pri...
2019 May 27
0
opus-1.3.1 patch for ARM Cortex-M4F (single precision)
...coder.c
--- opus-1.3.1-vanilla/celt/celt_encoder.c 2018-10-17 03:52:45 +0800
+++ opus-1.3.1/celt/celt_encoder.c 2019-05-27 17:15:55 +0800
@@ -1321,7 +1321,7 @@ static int compute_vbr(const CELTMode *m
/*printf("%f %f %f %f %d %d ", st->analysis.activity, st->analysis.tonality, tf_estimate, st->stereo_saving, tot_boost, coded_bands);*/
#ifndef DISABLE_FLOAT_API
- if (analysis->valid && analysis->activity<.4)
+ if (analysis->valid && analysis->activity<.4f)
target -= (opus_int32)((coded_bins<<BITRES)*(.4f-analysis->activity));...