MASA_DECODER_EXT_OUT_META_HANDLEoutMeta,/* o : Merged metadata output */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta1,/* i : Input metadata 1 */
Word32inEne1_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1. after merge, contains the energy of the merged signal */
Word16inEne1_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1 Exponent */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta2,/* i : Input metadata 2 */
Word32inEne2_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i : TF-energy of input 2 */
Word16inEne2_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]/* i : TF-energy of input 2 Exponent */
inEne_fx[sf][band]=BASOP_Util_Add_Mant32Exp(inEne_fx[sf][band],inEne_e[sf],inEneISM_fx[sf][band],inEneISM_e[sf],&in1_e[band]);/* Update energy for subsequent mergings */
inEne_fx[sf][band]=BASOP_Util_Add_Mant32Exp(inEne_fx[sf][band],inEne_e[sf][band],inEneISM_fx[sf][band],inEneISM_e[sf][band],&inEne_e[sf][band]);/* Update energy for subsequent mergings */
move32();
}
inEne_e[sf]=max_e;
move16();
}
/* Set descriptive meta for mixed format */
@@ -318,16 +324,15 @@ void full_stream_merge_fx(
MASA_DECODER_EXT_OUT_META_HANDLEoutMeta,/* o : Merged metadata output */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta1,/* i : Input metadata 1 */
Word32inEne1_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1. after merge, contains the energy of the merged signal */
Word16*inEne1_e,/* i/o: TF-energy of input 1 Exponent */
Word16inEne1_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1 Exponent */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta2,/* i : Input metadata 2 */
Word32inEne2_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i : TF-energy of input 2 */
Word16*inEne2_e/* i : TF-energy of input 2 Exponent */
Word16inEne2_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]/* i : TF-energy of input 2 Exponent */
)
{
UWord8n_dirs_1,n_dirs_2;
UWord8sf,band;
Word16scale,tmp,dir_nrg_1_e,dir_nrg_2_e,max_e,i;
Word16in1_e[MASA_FREQUENCY_BANDS];
Word16scale,dir_nrg_1_e,dir_nrg_2_e;
Word32dir_nrg_1_fx,dir_nrg_2_fx,L_tmp;
/* full stream select based on total direct energy */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta1,/* i : Input metadata 1 */
IVAS_REND_AudioConfigTypeinType1,/* i : Type of input 1 */
Word32inEne1_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1. after merge, contains the energy of the merged signal */
Word16*inEne1_e,/* i/o: TF-energy of input 1 Exponent */
Word16inEne1_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1 Exponent */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta2,/* i : Input metadata 2 */
IVAS_REND_AudioConfigTypeinType2,/* i : Type of input 2 */
Word32inEne2_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i : TF-energy of input 2. may be altered */
Word16*inEne2_e/* i : TF-energy of input 2 Exponent */
Word16inEne2_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]/* i : TF-energy of input 2 Exponent */
)
{
/* mixing ISMs with non-ISM use different merge */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta1,/* i : Input metadata 1 */
IVAS_REND_AudioConfigTypeinType1,/* i : Type of input 1 */
Word32inEne1_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1. after merge, contains the energy of the merged signal */
Word16*inEne1_e,/* i/o: TF-energy of input 1 Exponent */
Word16inEne1_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i/o: TF-energy of input 1 Exponent */
MASA_DECODER_EXT_OUT_META_HANDLEinMeta2,/* i : Input metadata 2 */
IVAS_REND_AudioConfigTypeinType2,/* i : Type of input 2 */
Word32inEne2_fx[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS],/* i : TF-energy of input 2. may be altered */
Word16*inEne2_e/* i : TF-energy of input 2 Exponent */
Word16inEne2_e[MAX_PARAM_SPATIAL_SUBFRAMES][MASA_FREQUENCY_BANDS]/* i : TF-energy of input 2 Exponent */