Commit 412279d7 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

corrected the q_input in the input of generate_masking_noise_dirac_ivas_fx()

parent 758f3c34
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@
#define FIX1998_APA_EXEC_SCALING                             /* FhG: fix scaling of apa_exec_ivas_fx(); avoid continuously worse scaling with previous data */
#define FIX2007_BASSPSFILTER_OVERFLOW                        /* FhG: use saturing operator, to avoid overflow in bass_psfilter_fx() */

#define FIX_2009_HIGH_NOISE_FLOOR_FOR_FX_DEC                 /* FhG: Corrected the q_input in the input of generate_masking_noise_dirac_ivas_fx() */
/* #################### Start BASOP porting switches ############################ */

#define NONBE_1244_FIX_SWB_BWE_MEMORY                   /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */
+8 −0
Original line number Diff line number Diff line
@@ -817,7 +817,11 @@ static void ivas_dirac_dec_binaural_internal_fx(
                                                          slot,
                                                          st_ivas->hSCE[0]->hCoreCoder[0]->cna_dirac_flag && st_ivas->hSCE[0]->hCoreCoder[0]->flag_cna,
                                                          ( st_ivas->hSCE[0]->hCoreCoder[0]->core_brate == FRAME_NO_DATA || st_ivas->hSCE[0]->hCoreCoder[0]->core_brate == SID_2k40 ) && ( st_ivas->hSCE[0]->hCoreCoder[0]->cng_type == FD_CNG ) && st_ivas->hSCE[0]->hCoreCoder[0]->cng_sba_flag,
#ifdef FIX_2009_HIGH_NOISE_FLOOR_FOR_FX_DEC
                                                          st_ivas->hTcBuffer->q_tc_fx, &q_cldfb[2][slot] );
#else
                                                          11, &q_cldfb[2][slot] );
#endif

                    generate_masking_noise_dirac_ivas_fx( st_ivas->hSCE[0]->hCoreCoder[0]->hFdCngDec->hFdCngCom,
                                                          st_ivas->cldfbAnaDec[1], /*nothing will be analyzed, just get cnst*/
@@ -830,6 +834,10 @@ static void ivas_dirac_dec_binaural_internal_fx(

                    scale_sig32( Cldfb_RealBuffer_in_fx[1][slot], CLDFB_NO_CHANNELS_MAX, negate( add( sub( q_cldfb[1][slot], q_input ), 5 ) ) );
                    scale_sig32( Cldfb_ImagBuffer_in_fx[1][slot], CLDFB_NO_CHANNELS_MAX, negate( add( sub( q_cldfb[1][slot], q_input ), 5 ) ) );
#ifdef FIX_2009_HIGH_NOISE_FLOOR_FOR_FX_DEC
                    scale_sig32( Cldfb_RealBuffer_in_fx[2][slot], CLDFB_NO_CHANNELS_MAX, negate( add( sub( q_cldfb[2][slot], q_input ), 5 ) ) );
                    scale_sig32( Cldfb_ImagBuffer_in_fx[2][slot], CLDFB_NO_CHANNELS_MAX, negate( add( sub( q_cldfb[2][slot], q_input ), 5 ) ) );
#endif

                    /* LB: Copy first channel + LB-CNG to first and second channels with same scaling (dual-mono)*/
                    FOR( b = 0; b < numCoreBands; b++ )