Commit 5f67b402 authored by vaclav's avatar vaclav
Browse files

fix compilation when DEBUGGINH is activated and...

fix compilation when DEBUGGINH is activated and NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX deactivated
parent 15a7c10f
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -195,8 +195,10 @@ int main(
#ifdef DEBUG_SBA
    int16_t numTransportChannels = 1;
#endif
#ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX
    int32_t cnt_frames_limited, noClipping;
#endif
#endif

#ifdef DEBUGGING
    dbgargs( &argc, argv );
@@ -793,6 +795,7 @@ int main(
    }

#ifdef DEBUGGING
#ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX
    if ( ( cnt_frames_limited = IVAS_ENC_GetCntFramesLimited( hIvasEnc ) ) > 0 )
    {
        fprintf( stdout, "\nLimiter applied in %d frames.\n\n", cnt_frames_limited );
@@ -801,6 +804,7 @@ int main(
    {
        fprintf( stdout, "Clipping (saturation) detected: %d samples clipped!!!\n\n", noClipping );
    }
#endif

    print_snr();
#endif
+2 −0
Original line number Diff line number Diff line
@@ -2419,6 +2419,7 @@ static void init_encoder_config(
}

#ifdef DEBUGGING
#ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX

/*---------------------------------------------------------------------*
 * IVAS_ENC_GetCntFramesLimited()
@@ -2453,3 +2454,4 @@ int32_t IVAS_ENC_GetNoCLipping(
    return hIvasEnc->st_ivas->noClipping;
}
#endif
#endif
+2 −0
Original line number Diff line number Diff line
@@ -384,6 +384,7 @@ void IVAS_ENC_PrintDisclaimer(
);

#ifdef DEBUGGING
#ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX
int32_t IVAS_ENC_GetCntFramesLimited(
    IVAS_ENC_HANDLE hIvasEnc                        /* i  : IVAS encoder handle                                                                                 */
);
@@ -392,6 +393,7 @@ int32_t IVAS_ENC_GetNoCLipping(
    IVAS_ENC_HANDLE hIvasEnc                        /* i  : IVAS encoder handle                                                                                 */
);
#endif
#endif
/* clang-format on */

#endif /* LIB_ENC_H */