Commit 0fabd62d authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '3gpp_issue_974_fix' into 'main'

Fix for 3gpp issue 974: OSBA 160 kbps (pre-rendering): Discrepancy for SPAR part for several components [allow regression]

See merge request !733
parents e93cdf1a 9b06a6d0
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -1537,7 +1537,15 @@ void ivas_dirac_dec_output_synthesis_process_slot_fx(
                        }
                        ELSE
                        {
                            b = BASOP_Util_Divide3232_Scale( reference_power[k + num_freq_bands], L_add( reference_power[k + ( ch_idx + 1 ) * num_freq_bands], EPSILON_FX ), &b_exp ); /*Q(15-b_exp)*/
                            IF( reference_power[k + ( ch_idx + 1 ) * num_freq_bands] == 0 )
                            {
                                b = BASOP_Util_Divide3232_Scale( reference_power[k + num_freq_bands], 232831 /* EPSILON in exp 63 */, &b_exp );
                                b_exp = add( b_exp, sub( sub( 31, q_reference_power ), 63 ) );
                            }
                            ELSE
                            {
                                b = BASOP_Util_Divide3232_Scale( reference_power[k + num_freq_bands], reference_power[k + ( ch_idx + 1 ) * num_freq_bands], &b_exp ); /*Q(15-b_exp)*/
                            }
                        }
                        c = L_add( ONE_IN_Q29 /*1 Q29*/, Mpy_32_16_1( L_sub( h_dirac_output_synthesis_params->diffuse_compensation_factor_decorr_fx, ONE_IN_Q29 /*1 Q29*/ ), 5461 /*1.0 / 6.0 Q15*/ ) ); /*Diffuseness modellling nrg compensation*/ /*Q29*/

@@ -1611,10 +1619,8 @@ void ivas_dirac_dec_output_synthesis_process_slot_fx(
                        {
                            IF( reference_power[k + ( ch_idx + 1 ) * num_freq_bands] == 0 )
                            {
                                b = MAXVAL_WORD16; /*Q(-9)*/
                                move16();
                                b_exp = 40;
                                move16();
                                b = BASOP_Util_Divide3232_Scale( reference_power[k + num_freq_bands], 232831 /* EPSILON in exp 63 */, &b_exp );
                                b_exp = add( b_exp, sub( sub( 31, q_reference_power ), 63 ) );
                            }
                            ELSE
                            {