Commit 7b097e4a authored by Fabian Bauer's avatar Fabian Bauer
Browse files

Merge branch 'main' of ssh://forge.3gpp.org:29419/sa4/audio/ivas-basop into...

Merge branch 'main' of ssh://forge.3gpp.org:29419/sa4/audio/ivas-basop into 1439-complexity-overhead-stereo-to-stereo-32kbps-fb-float-vs-basop-nonBE
parents f3335754 98e28d13
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5664,7 +5664,7 @@ void generate_masking_noise_dirac_ivas_fx(
        scale_fx = L_shl( scale_fx, q_shift ); /*q_scale+q_shift*/
        q_scale = add( q_scale, q_shift );
        scale_fx = Mpy_32_32( scale_fx, Mpy_32_16_1( L_mult( h_cldfb->scale, h_cldfb->scale ), CLDFB_SCALING ) ); // Q = q_scale + 2 * Q8 - 34
        q_scale = sub( add( q_scale, 2 * Q8 ), 31 );
        q_scale = sub( add( q_scale, 2 * Q8 ), 31 + 3 );
        ptr_level_fx = hFdCngCom->cngNoiseLevel + sub( hFdCngCom->stopFFTbin, hFdCngCom->startBand ); /*Q31 - hFdCngCom->cngNoiseLevelExp*/
        q_ptr_level = sub( 31, hFdCngCom->cngNoiseLevelExp );

@@ -5676,7 +5676,7 @@ void generate_masking_noise_dirac_ivas_fx(
            scale_fx = L_shl( scale_fx, q_shift ); /*q_scale+q_shift*/
            q_scale = add( q_scale, q_shift );
            num = Mpy_32_32( scale_fx, *ptr_level_fx );         /*q_num*/
            q_num = sub( add( q_scale, q_ptr_level ), 31 );
            q_num = sub( add( q_scale, q_ptr_level ), 31 - 1 ); // num = ( scale * *ptr_level ) * 0.5f
            exp = sub( 31, q_num );
            num = Sqrt32( num, &exp ); /*Q31 - exp*/
            /* Real part in CLDFB band */
+3 −0
Original line number Diff line number Diff line
@@ -758,6 +758,9 @@ static void ivas_dirac_dec_binaural_internal_fx(
                                                          ( 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,
                                                          0, &q_cldfb[1][slot] );

                    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 ) ) );

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