ref: 8e3a1cbf4848567eb4c5b79d2855a00f87c7b9c2
parent: f92286b3dab0b59c984eb12ce32e7f40da3d671a
author: Jean-Marc Valin <[email protected]>
date: Mon Jul 1 12:12:27 EDT 2013
Temporal VBR tuning Applies temporal VBR up to higher bitrates after IgorC reported it being useful at 64 kb/s for amount=0.1
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1215,7 +1215,7 @@
{
opus_val16 amount;
opus_val16 tvbr_factor;
- amount = MULT16_16_Q15(QCONST16(.000006f, 30), IMAX(0, IMIN(42000, 68000-bitrate)));
+ amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate)));
tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT);
target += (opus_int32)MULT16_32_Q15(tvbr_factor, target);
}