mirror of
https://github.com/xiph/opus.git
synced 2025-05-28 14:19:13 +00:00
Quality: Forces trim to 5 on hybrid mode
This saves bits and makes more sense since alloc_trim_analysis() mostly looks at the lower bands that are coded with SILK
This commit is contained in:
parent
8dcf4acc5d
commit
0247d34d6a
1 changed files with 5 additions and 2 deletions
|
@ -1886,12 +1886,15 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
|
|||
alloc_trim = 5;
|
||||
if (tell+(6<<BITRES) <= total_bits - total_boost)
|
||||
{
|
||||
if (st->lfe)
|
||||
if (start > 0 || st->lfe)
|
||||
{
|
||||
st->stereo_saving = 0;
|
||||
alloc_trim = 5;
|
||||
else
|
||||
} else {
|
||||
alloc_trim = alloc_trim_analysis(mode, X, bandLogE,
|
||||
end, LM, C, N, &st->analysis, &st->stereo_saving, tf_estimate,
|
||||
st->intensity, surround_trim, st->arch);
|
||||
}
|
||||
ec_enc_icdf(enc, alloc_trim, trim_icdf, 7);
|
||||
tell = ec_tell_frac(enc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue