Loading apps/encoder.c +4 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading @@ -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 ); Loading @@ -801,6 +804,7 @@ int main( { fprintf( stdout, "Clipping (saturation) detected: %d samples clipped!!!\n\n", noClipping ); } #endif print_snr(); #endif Loading lib_enc/lib_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -2419,6 +2419,7 @@ static void init_encoder_config( } #ifdef DEBUGGING #ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX /*---------------------------------------------------------------------* * IVAS_ENC_GetCntFramesLimited() Loading Loading @@ -2453,3 +2454,4 @@ int32_t IVAS_ENC_GetNoCLipping( return hIvasEnc->st_ivas->noClipping; } #endif #endif lib_enc/lib_enc.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 */ ); Loading @@ -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 */ Loading
apps/encoder.c +4 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading @@ -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 ); Loading @@ -801,6 +804,7 @@ int main( { fprintf( stdout, "Clipping (saturation) detected: %d samples clipped!!!\n\n", noClipping ); } #endif print_snr(); #endif Loading
lib_enc/lib_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -2419,6 +2419,7 @@ static void init_encoder_config( } #ifdef DEBUGGING #ifdef NONBE_FIX_1165_APPLY_LIMITER_ON_ENCODER_DMX /*---------------------------------------------------------------------* * IVAS_ENC_GetCntFramesLimited() Loading Loading @@ -2453,3 +2454,4 @@ int32_t IVAS_ENC_GetNoCLipping( return hIvasEnc->st_ivas->noClipping; } #endif #endif
lib_enc/lib_enc.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 */ ); Loading @@ -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 */