floatinv_spectrum_long[MCT_MAX_CHANNELS-CPE_CHANNELS][L_FRAME48k];/* quantized MDCT spectrum, inv ms mask mdst spectrum, scratch for MS spectra in the MS decision */
floatpowerSpecMsInv_long[MCT_MAX_CHANNELS-CPE_CHANNELS][L_FRAME48k];/* MS inv power spectrum, also inverse MDST spectrum */
#else
floatpowerSpec[MCT_MAX_CHANNELS][L_FRAME48k];
floatpowerSpecMsInv_long[MCT_MAX_CHANNELS][L_FRAME48k];/* MS inv power spectrum, also inverse MDST spectrum */
floatinv_spectrum_long[MCT_MAX_CHANNELS][L_FRAME48k];/* quantized MDCT spectrum, inv ms mask mdst spectrum, scratch for MS spectra in the MS decision */
#endif
int16_ttotal_side_bits;
int16_tchBitRatios[MCT_MAX_CHANNELS];
Encoder_State*sts[MCT_MAX_CHANNELS];
...
...
@@ -238,12 +252,34 @@ void ivas_mct_core_enc(
nCPE++;
}
#ifdef NONBE_FIX_1097_SBA_DTX_BRATE_SWITCHING_ENC
/* point first CPE channels to longer buffers where switching from ACELP to TCX may occur in SBA with DTX (total memory saving)*/
if((st->last_bwidth==FB&&st->element_mode==EVS_MONO)||(st->bwidth==FB&&st->element_mode>EVS_MONO))// note: once EVS i CR fixed, the condition will simplify to "if ( st->bwidth == FB )" only