Commit 506aaf1b authored by multrus's avatar multrus
Browse files

restore EVS BE

parent d289fa9e
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3934,6 +3934,9 @@ void ProcessIGF_fx(
{
    Word16 igfGridIdx, isIndepFlag, bsBits, pBsStart, curr_order;
    Word16 predictionGain;
#ifdef FIX_2346_DUPLICATED_IGF_FUNCTIONS
    Word32 tns_predictionGain;
#endif
    Word16 A[ITF_MAX_FILTER_ORDER + 1];
    Word16 q_A;

@@ -4001,7 +4004,12 @@ void ProcessIGF_fx(
#endif

    test();
#ifdef FIX_2346_DUPLICATED_IGF_FUNCTIONS
    tns_predictionGain = L_deposit_l( hIGFEnc->tns_predictionGain ); // todo: mul, 2026-03-12: check, why this is in Q23
    IF( LT_32( tns_predictionGain, ONE_POINT_ONE_FIVE_Q23 ) && LT_16( predictionGain, ONE_POINT_ONE_FIVE_Q7 ) )
#else
    IF( LT_16( hIGFEnc->tns_predictionGain, ONE_POINT_ONE_FIVE_Q7 ) && LT_16( predictionGain, ONE_POINT_ONE_FIVE_Q7 ) )
#endif
    {
        hIGFEnc->flatteningTrigger = 1;
        move16();