diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-02 18:15:00 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-06-29 15:21:31 -0400 |
commit | 800dce2f033872ae9f61b31fe496d070a2d718da (patch) | |
tree | 3e17df25597bdd289d888172ff6acee3c8f2551e | |
parent | e36b11b99f3742d847393db92ff1bc75445a0a79 (diff) | |
download | opus-800dce2f033872ae9f61b31fe496d070a2d718da.tar.gz |
Re-tuning compute_equiv_rate()
-rw-r--r-- | src/opus_encoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index dd208969..c24ab167 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -1001,14 +1001,14 @@ static opus_int32 compute_equiv_rate(opus_int32 bitrate, int channels, equiv -= (40*channels+20)*(frame_rate - 50); /* CBR is about a 10% penalty for both SILK and CELT. */ if (!vbr) - equiv = equiv*9/10; - /* Complexity makes about 10% difference (from 0 to 10) in general. */ + equiv -= equiv/12; + /* Complexity makes about 8% difference (from 0 to 10) in general. */ equiv = equiv * (90+complexity)/100; if (mode == MODE_SILK_ONLY || mode == MODE_HYBRID) { - /* SILK complexity 0-3 uses the non-delayed-decision NSQ, which + /* SILK complexity 0-1 uses the non-delayed-decision NSQ, which costs about 20%. */ - if (complexity<4) + if (complexity<2) equiv = equiv*4/5; } else if (mode == MODE_CELT_ONLY) { /* CELT complexity 0-4 doesn't have the pitch filter, which costs |