diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-07-11 10:54:47 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-07-13 22:52:52 +0400 |
commit | cf1053dc85625deff2dfd600c83e9201b314f46b (patch) | |
tree | e0cf0b6ae8149199acf46e83080ff8e5dc5d5838 /celt/quant_bands.c | |
parent | c5880fe48bdeb5ae40ceeb679b9c1a633448fab4 (diff) |
Implements OPUS_{GET,SET}_LSB_DEPTH
This is used to avoid dynalloc doing silly things on periodic LSB
patterns and to reduce the bitrate on near-silence.
Diffstat (limited to 'celt/quant_bands.c')
-rw-r--r-- | celt/quant_bands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/celt/quant_bands.c b/celt/quant_bands.c index b1d4eb15..241392f1 100644 --- a/celt/quant_bands.c +++ b/celt/quant_bands.c @@ -40,8 +40,8 @@ #include "rate.h" #ifdef FIXED_POINT -/* Mean energy in each band quantized in Q6 */ -static const signed char eMeans[25] = { +/* Mean energy in each band quantized in Q4 */ +const signed char eMeans[25] = { 103,100, 92, 85, 81, 77, 72, 70, 78, 75, 73, 71, 78, 74, 69, @@ -49,8 +49,8 @@ static const signed char eMeans[25] = { 60, 60, 60, 60, 60 }; #else -/* Mean energy in each band quantized in Q6 and converted back to float */ -static const opus_val16 eMeans[25] = { +/* Mean energy in each band quantized in Q4 and converted back to float */ +const opus_val16 eMeans[25] = { 6.437500f, 6.250000f, 5.750000f, 5.312500f, 5.062500f, 4.812500f, 4.500000f, 4.375000f, 4.875000f, 4.687500f, 4.562500f, 4.437500f, 4.875000f, 4.625000f, 4.312500f, |