shithub: opus

Download patch

ref: de1f92c610ce69a8ccc3124b28a2fd5a5f1ff8cd
parent: d60816f76d2efcb5058874c9bcd440b79781ce68
author: Jean-Marc Valin <[email protected]>
date: Thu Jun 2 11:50:22 EDT 2016

Making the encoder more aggressive at using wider bandwidths

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -122,28 +122,28 @@
    middle (memoriless) threshold. The second column is the hysteresis
    (difference with the middle) */
 static const opus_int32 mono_voice_bandwidth_thresholds[8] = {
-        11000, 1000, /* NB<->MB */
-        12500, 1000, /* MB<->WB */
-        14000, 1000, /* WB<->SWB */
-        15000, 2000, /* SWB<->FB */
+        10000, 1000, /* NB<->MB */
+        11000, 1000, /* MB<->WB */
+        13500, 1000, /* WB<->SWB */
+        14000, 2000, /* SWB<->FB */
 };
 static const opus_int32 mono_music_bandwidth_thresholds[8] = {
-        11000, 1000, /* NB<->MB */
-        12500, 1000, /* MB<->WB */
-        14000, 1000, /* WB<->SWB */
-        15000, 2000, /* SWB<->FB */
+        10000, 1000, /* NB<->MB */
+        11000, 1000, /* MB<->WB */
+        13500, 1000, /* WB<->SWB */
+        14000, 2000, /* SWB<->FB */
 };
 static const opus_int32 stereo_voice_bandwidth_thresholds[8] = {
-        11000, 1000, /* NB<->MB */
-        12500, 1000, /* MB<->WB */
-        14000, 1000, /* WB<->SWB */
-        15000, 2000, /* SWB<->FB */
+        10000, 1000, /* NB<->MB */
+        11000, 1000, /* MB<->WB */
+        13500, 1000, /* WB<->SWB */
+        14000, 2000, /* SWB<->FB */
 };
 static const opus_int32 stereo_music_bandwidth_thresholds[8] = {
-        11000, 1000, /* NB<->MB */
-        12500, 1000, /* MB<->WB */
-        14000, 1000, /* WB<->SWB */
-        15000, 2000, /* SWB<->FB */
+        10000, 1000, /* NB<->MB */
+        11000, 1000, /* MB<->WB */
+        13500, 1000, /* WB<->SWB */
+        14000, 2000, /* SWB<->FB */
 };
 /* Threshold bit-rates for switching between mono and stereo */
 static const opus_int32 stereo_voice_threshold = 24000;
@@ -953,7 +953,7 @@
               SWB-10  FB-10 SWB-20  FB-20 */
       {    0,     0,     0,     0,     0},
       {12000, 10000, 10000, 10000, 10000},
-      {16000, 14000, 14000, 14000, 14000},
+      {16000, 14000, 14000, 14000, 13500},
       {20000, 16000, 16000, 16000, 16000},
       {24000, 18000, 18000, 18000, 18000},
       {32000, 22000, 22000, 22000, 22000},