Skip to content
Snippets Groups Projects
Commit 8e3a1cbf authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Temporal VBR tuning

Applies temporal VBR up to higher bitrates after IgorC reported it being
useful at 64 kb/s for amount=0.1
parent f92286b3
No related branches found
No related tags found
No related merge requests found
...@@ -1215,7 +1215,7 @@ static int compute_vbr(const CELTMode *mode, AnalysisInfo *analysis, opus_int32 ...@@ -1215,7 +1215,7 @@ static int compute_vbr(const CELTMode *mode, AnalysisInfo *analysis, opus_int32
{ {
opus_val16 amount; opus_val16 amount;
opus_val16 tvbr_factor; 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); tvbr_factor = SHR32(MULT16_16(temporal_vbr, amount), DB_SHIFT);
target += (opus_int32)MULT16_32_Q15(tvbr_factor, target); target += (opus_int32)MULT16_32_Q15(tvbr_factor, target);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment