Commit fdd8cd35 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

increase the guard bits for cldb synthesis

parent a98d5b23
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1846,8 +1846,11 @@ static void isar_rend_CldfbSplitPostRendProcessTdIn(
            ImagBuffer_fx[slot_idx] = Cldfb_ImagBuffer_Binaural_fx[ch_idx][slot_idx];
            scaleFactor = s_min( scaleFactor, s_min( getScaleFactor32( RealBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ), getScaleFactor32( ImagBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ) ) );
        }

#ifdef OPT_IVAS_FILTER_ROM
        scaleFactor = s_min( sub( scaleFactor, 6 ), Q24 ); // guarded bits
#else
        scaleFactor = s_min( sub( scaleFactor, 3 ), Q24 ); // guarded bits
#endif
        FOR( slot_idx = 0; slot_idx < CLDFB_NO_COL_MAX / MAX_PARAM_SPATIAL_SUBFRAMES; slot_idx++ )
        {
            Scale_sig32( RealBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX, scaleFactor );
@@ -1915,7 +1918,11 @@ void isar_rend_CldfbSplitPostRendProcess(
            scaleFactor = s_min( scaleFactor, s_min( getScaleFactor32( RealBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ), getScaleFactor32( ImagBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ) ) );
        }

#ifdef OPT_IVAS_FILTER_ROM
        scaleFactor = s_min( sub( scaleFactor, 6 ), Q24 ); // guarded bits
#else
        scaleFactor = s_min( sub( scaleFactor, 3 ), Q24 ); // guarded bits
#endif
        FOR( slot_idx = 0; slot_idx < CLDFB_NO_COL_MAX / MAX_PARAM_SPATIAL_SUBFRAMES; slot_idx++ )
        {
            Scale_sig32( RealBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX, scaleFactor );
+4 −0
Original line number Diff line number Diff line
@@ -1504,7 +1504,11 @@ static ivas_error renderSplitBinauralWithPostRot(

                        scaleFactor = s_min( scaleFactor, s_min( getScaleFactor32( RealBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ), getScaleFactor32( ImagBuffer_fx[slot_idx], CLDFB_NO_CHANNELS_MAX ) ) );
                    }
#ifdef OPT_IVAS_FILTER_ROM
                    scaleFactor = sub( scaleFactor, 6 ); // guarded bits
#else
                    scaleFactor = sub( scaleFactor, 3 ); // guarded bits
#endif

                    FOR( slot_idx = 0; slot_idx < CLDFB_NO_COL_MAX / MAX_PARAM_SPATIAL_SUBFRAMES; slot_idx++ )
                    {
+9 −1
Original line number Diff line number Diff line
@@ -444,7 +444,11 @@ ivas_error ISAR_PRE_REND_MultiBinToSplitBinaural(

                q_final = s_min( q1, q2 );
                q_final = s_min( add( Q_buff_re, q_final ), add( Q_buff_im, q_final ) );
#ifdef OPT_IVAS_FILTER_ROM
                q_final = sub( q_final, 6 ); // guard bits
#else
                q_final = sub( q_final, 3 ); // guard bits
#endif
                q_final = s_min( q_final, Q25 );

                FOR( ch = 0; ch < BINAURAL_CHANNELS; ch++ )
@@ -508,7 +512,11 @@ ivas_error ISAR_PRE_REND_MultiBinToSplitBinaural(
            }
            q_final = s_min( q1, q2 );
            q_final = s_min( add( Q_buff_re, q_final ), add( Q_buff_im, q_final ) );
#ifdef OPT_IVAS_FILTER_ROM
            q_final = sub( q_final, 6 ); // guard bits
#else
            q_final = sub( q_final, 3 );     // guard bits
#endif
            q_final = s_min( q_final, Q25 );
            FOR( j = 0; j < CLDFB_NO_COL_MAX; j++ )
            {