Making stereo theta decision based on minimizing distortion

No point in minimizing the rate too since it's almost constant.
This commit is contained in:
Jean-Marc Valin 2016-01-06 02:02:16 -05:00
parent 886dc594f0
commit 35cf18e9d7
4 changed files with 57 additions and 10 deletions

View file

@ -2079,7 +2079,7 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
quant_all_bands(1, mode, start, end, X, C==2 ? X+N : NULL, collapse_masks,
bandE, pulses, shortBlocks, st->spread_decision,
dual_stereo, st->intensity, tf_res, nbCompressedBytes*(8<<BITRES)-anti_collapse_rsv,
balance, enc, LM, codedBands, &st->rng, st->arch);
balance, enc, LM, codedBands, &st->rng, st->complexity, st->arch);
if (anti_collapse_rsv > 0)
{