Loading apps/decoder.c +0 −45 Original line number Original line Diff line number Diff line Loading @@ -82,9 +82,7 @@ static #ifdef VARIABLE_SPEED_DECODING #ifdef VARIABLE_SPEED_DECODING #define VARIABLE_SPEED_FETCH_FRAMESIZE_MS 20 #define VARIABLE_SPEED_FETCH_FRAMESIZE_MS 20 #endif #endif #ifdef JBM_TSM_ON_TCS #define JBM_FRONTEND_FETCH_FRAMESIZE_MS 20 #define JBM_FRONTEND_FETCH_FRAMESIZE_MS 20 #endif typedef struct typedef struct { { Loading Loading @@ -136,12 +134,10 @@ typedef struct char *tsmScaleFileName; char *tsmScaleFileName; uint16_t tsmScale; uint16_t tsmScale; #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION uint16_t frontendFetchSizeMs; uint16_t frontendFetchSizeMs; #endif #endif #endif #endif #endif } DecArguments; } DecArguments; Loading Loading @@ -389,7 +385,6 @@ int main( goto cleanup; goto cleanup; } } #ifdef JBM_TSM_ON_TCS /*------------------------------------------------------------------------------------------* /*------------------------------------------------------------------------------------------* * Configure VoIP mode * Configure VoIP mode *------------------------------------------------------------------------------------------*/ *------------------------------------------------------------------------------------------*/ Loading @@ -414,7 +409,6 @@ int main( } } #endif #endif #endif #endif #endif #ifdef DEBUGGING #ifdef DEBUGGING /*-----------------------------------------------------------------* /*-----------------------------------------------------------------* Loading Loading @@ -642,17 +636,6 @@ int main( if ( arg.voipMode ) if ( arg.voipMode ) { { #ifndef JBM_TSM_ON_TCS #ifdef VARIABLE_SPEED_DECODING if ( ( error = IVAS_DEC_EnableVoIP( hIvasDec, IVAS_DEC_VOIP_MODE_VOIP, 100, 60, arg.inputFormat ) ) != IVAS_ERR_OK ) #else if ( ( error = IVAS_DEC_EnableVoIP( hIvasDec, 60, arg.inputFormat ) ) != IVAS_ERR_OK ) #endif { fprintf( stderr, "\nCould not enable VOIP: %s\n\n", IVAS_DEC_GetErrorMessage( error ) ); goto cleanup; } #endif error = decodeVoIP( arg, hBsReader, hIvasDec ); error = decodeVoIP( arg, hBsReader, hIvasDec ); } } #ifdef VARIABLE_SPEED_DECODING #ifdef VARIABLE_SPEED_DECODING Loading Loading @@ -905,11 +888,9 @@ static bool parseCmdlIVAS_dec( arg->tsmScaleFileEnabled = false; arg->tsmScaleFileEnabled = false; arg->tsmScaleFileName = NULL; arg->tsmScaleFileName = NULL; #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION arg->frontendFetchSizeMs = JBM_FRONTEND_FETCH_FRAMESIZE_MS; arg->frontendFetchSizeMs = JBM_FRONTEND_FETCH_FRAMESIZE_MS; #endif #endif #endif #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION arg->noBadFrameDelay = false; arg->noBadFrameDelay = false; #endif #endif Loading Loading @@ -1078,7 +1059,6 @@ static bool parseCmdlIVAS_dec( } } } } #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION else if ( strcmp( argv_to_upper, "-VOIP_FRAMESIZE" ) == 0 ) else if ( strcmp( argv_to_upper, "-VOIP_FRAMESIZE" ) == 0 ) { { Loading @@ -1099,7 +1079,6 @@ static bool parseCmdlIVAS_dec( } } } } #endif #endif #endif #endif /* #ifdef DEBUGGING */ #endif /* #ifdef DEBUGGING */ else if ( strcmp( argv_to_upper, "-MIME" ) == 0 ) else if ( strcmp( argv_to_upper, "-MIME" ) == 0 ) Loading Loading @@ -1388,11 +1367,9 @@ static void usage_dec( void ) fprintf( stdout, "-VS fac : Variable Speed mode: change speed of playout fac as integer in percent.\n" ); fprintf( stdout, "-VS fac : Variable Speed mode: change speed of playout fac as integer in percent.\n" ); fprintf( stdout, " 50 <= fac <= 150; fac<100 faster, fac>100 slower\n" ); fprintf( stdout, " 50 <= fac <= 150; fac<100 faster, fac>100 slower\n" ); #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION fprintf( stdout, "-VOIP_framesize : VoIP mode: acoustic frontend fetch frame size (must be multiples of 5!)\n" ); fprintf( stdout, "-VOIP_framesize : VoIP mode: acoustic frontend fetch frame size (must be multiples of 5!)\n" ); #endif #endif #endif #endif #endif fprintf( stdout, "-fec_cfg_file : Optimal channel aware configuration computed by the JBM \n" ); fprintf( stdout, "-fec_cfg_file : Optimal channel aware configuration computed by the JBM \n" ); fprintf( stdout, " as described in Section 6.3.1 of TS26.448. The output is \n" ); fprintf( stdout, " as described in Section 6.3.1 of TS26.448. The output is \n" ); Loading Loading @@ -2077,10 +2054,8 @@ static ivas_error decodeVoIP( uint32_t nextPacketRcvTime_ms = 0; uint32_t nextPacketRcvTime_ms = 0; uint32_t systemTime_ms = 0; uint32_t systemTime_ms = 0; #ifdef JBM_TSM_ON_TCS uint32_t systemTimeInc_ms = (uint32_t) JBM_FRONTEND_FETCH_FRAMESIZE_MS; uint32_t systemTimeInc_ms = (uint32_t) JBM_FRONTEND_FETCH_FRAMESIZE_MS; int32_t nFramesWritten = 0; int32_t nFramesWritten = 0; #endif int32_t nFramesFed = 0; int32_t nFramesFed = 0; Loading Loading @@ -2216,26 +2191,18 @@ static ivas_error decodeVoIP( * Main receiving/decoding loop * Main receiving/decoding loop *------------------------------------------------------------------------------------------*/ *------------------------------------------------------------------------------------------*/ #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION systemTimeInc_ms = arg.frontendFetchSizeMs; systemTimeInc_ms = arg.frontendFetchSizeMs; #endif #endif #endif while ( 1 ) while ( 1 ) { { int16_t nOutSamples = 0; int16_t nOutSamples = 0; #if defined( JBM_TSM_ON_TCS ) || defined( VARIABLE_SPEED_DECODING ) uint16_t nSamplesAvailableNext = 0; uint16_t nSamplesAvailableNext = 0; #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION nOutSamples = (int16_t) ( arg.output_Fs / 1000 * arg.frontendFetchSizeMs ); nOutSamples = (int16_t) ( arg.output_Fs / 1000 * arg.frontendFetchSizeMs ); #else #else nOutSamples = (int16_t) ( arg.output_Fs / 1000 * JBM_FRONTEND_FETCH_FRAMESIZE_MS ); nOutSamples = (int16_t) ( arg.output_Fs / 1000 * JBM_FRONTEND_FETCH_FRAMESIZE_MS ); #endif #else nOutSamples = (int16_t) ( arg.output_Fs / 50 ); #endif #endif /* read all packets with a receive time smaller than the system time */ /* read all packets with a receive time smaller than the system time */ while ( nextPacketRcvTime_ms <= systemTime_ms ) while ( nextPacketRcvTime_ms <= systemTime_ms ) Loading Loading @@ -2280,12 +2247,8 @@ static ivas_error decodeVoIP( /* we are finished when all packets have been received and jitter buffer is empty */ /* we are finished when all packets have been received and jitter buffer is empty */ /* also stop when the input file contains less than two frames, because JBM cannot calculate a delay value and won't start decoding */ /* also stop when the input file contains less than two frames, because JBM cannot calculate a delay value and won't start decoding */ #ifdef JBM_TSM_ON_TCS /* last clause should make sure that for BE tests we end up with the same number of samples...*/ /* last clause should make sure that for BE tests we end up with the same number of samples...*/ if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec, nOutSamples ) || nFramesFed < 2 ) ) if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec, nOutSamples ) || nFramesFed < 2 ) ) #else if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec ) || nFramesFed < 2 ) ) #endif { { break; break; } } Loading @@ -2293,10 +2256,8 @@ static ivas_error decodeVoIP( /* decode and get samples */ /* decode and get samples */ if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, pcmBuf, systemTime_ms if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, pcmBuf, systemTime_ms #if defined( JBM_TSM_ON_TCS ) || defined( VARIABLE_SPEED_DECODING ) , , &nSamplesAvailableNext &nSamplesAvailableNext #endif #ifdef SUPPORT_JBM_TRACEFILE #ifdef SUPPORT_JBM_TRACEFILE , , writeJbmTraceFileFrameWrapper, writeJbmTraceFileFrameWrapper, Loading Loading @@ -2386,7 +2347,6 @@ static ivas_error decodeVoIP( delayNumSamples -= nOutSamples; delayNumSamples -= nOutSamples; } } #ifdef JBM_TSM_ON_TCS /* Write ISM metadata to external file(s) */ /* Write ISM metadata to external file(s) */ if ( decodedGoodFrame && arg.outputFormat == IVAS_DEC_OUTPUT_EXT ) if ( decodedGoodFrame && arg.outputFormat == IVAS_DEC_OUTPUT_EXT ) { { Loading Loading @@ -2433,7 +2393,6 @@ static ivas_error decodeVoIP( } } } } } } #endif } } if ( !arg.quietModeEnabled ) if ( !arg.quietModeEnabled ) Loading @@ -2442,12 +2401,8 @@ static ivas_error decodeVoIP( } } frame++; frame++; #ifdef JBM_TSM_ON_TCS systemTime_ms += systemTimeInc_ms; systemTime_ms += systemTimeInc_ms; nFramesWritten++; nFramesWritten++; #else systemTime_ms += 20; #endif #ifdef WMOPS #ifdef WMOPS update_mem(); update_mem(); Loading lib_com/fd_cng_com.c +0 −2 Original line number Original line Diff line number Diff line Loading @@ -941,7 +941,6 @@ void SynthesisSTFT( } } #ifdef JBM_TSM_ON_TCS /*------------------------------------------------------------------- /*------------------------------------------------------------------- * SynthesisSTFT_dirac() * SynthesisSTFT_dirac() * * Loading Loading @@ -1007,7 +1006,6 @@ void SynthesisSTFT_dirac( return; return; } } #endif /*------------------------------------------------------------------- /*------------------------------------------------------------------- Loading lib_com/ivas_cnst.h +0 −6 Original line number Original line Diff line number Diff line Loading @@ -203,7 +203,6 @@ typedef enum #define IVAS_NUM_SUPPORTED_FS 3 /* number of supported sampling-rates in IVAS */ #define IVAS_NUM_SUPPORTED_FS 3 /* number of supported sampling-rates in IVAS */ #ifdef JBM_TSM_ON_TCS #define CLDFB_SLOT_NS 1250000L /* 1.25ms: CLDFB slot length */ #define CLDFB_SLOT_NS 1250000L /* 1.25ms: CLDFB slot length */ #define MAX_JBM_SUBFRAMES_5MS 8 #define MAX_JBM_SUBFRAMES_5MS 8 #define DEFAULT_JBM_SUBFRAMES_5MS 4 #define DEFAULT_JBM_SUBFRAMES_5MS 4 Loading @@ -221,7 +220,6 @@ typedef enum TC_BUFFER_MODE_RENDERER, TC_BUFFER_MODE_RENDERER, TC_BUFFER_MODE_BUFFER TC_BUFFER_MODE_BUFFER } TC_BUFFER_MODE; } TC_BUFFER_MODE; #endif /*----------------------------------------------------------------------------------* /*----------------------------------------------------------------------------------* * IVAS Bitrates * IVAS Bitrates Loading Loading @@ -1393,11 +1391,7 @@ typedef enum #define PARAM_MC_REG_GHAT (0.001f) /* Regularization factor for mixing matrix calculation */ #define PARAM_MC_REG_GHAT (0.001f) /* Regularization factor for mixing matrix calculation */ #define PARAM_MC_MAX_PARAMETER_BANDS 20 /* Maximum number of parameter bands */ #define PARAM_MC_MAX_PARAMETER_BANDS 20 /* Maximum number of parameter bands */ #define PARAM_MC_MAX_PARAMETER_BANDS_RES 14 /* Maximum number of parameter bands with decorrelation */ #define PARAM_MC_MAX_PARAMETER_BANDS_RES 14 /* Maximum number of parameter bands with decorrelation */ #ifdef JBM_TSM_ON_TCS #define PARAM_MC_MAX_NSLOTS MAX_JBM_CLDFB_TIMESLOTS /* Maximum number of CLDFB slots in a frame */ #define PARAM_MC_MAX_NSLOTS MAX_JBM_CLDFB_TIMESLOTS /* Maximum number of CLDFB slots in a frame */ #else #define PARAM_MC_MAX_NSLOTS 16 /* Maximum number of CLDFB slots in a frame */ #endif #define PARAM_MC_MAX_NSLOTS_IN_SUBFRAME 4 /* Maximum number of CLDFB slots in a subframe */ #define PARAM_MC_MAX_NSLOTS_IN_SUBFRAME 4 /* Maximum number of CLDFB slots in a subframe */ #define PARAM_MC_NSUBFRAMES_DEC 4 /* Number of subframes for the synthesis in the decoder */ #define PARAM_MC_NSUBFRAMES_DEC 4 /* Number of subframes for the synthesis in the decoder */ #define PARAM_MC_MAX_BANDS_IN_PARAMETER_BAND 30 /* Maximum number of CLDFB frequency bands within a parameter band */ #define PARAM_MC_MAX_BANDS_IN_PARAMETER_BAND 30 /* Maximum number of CLDFB frequency bands within a parameter band */ Loading Loading
apps/decoder.c +0 −45 Original line number Original line Diff line number Diff line Loading @@ -82,9 +82,7 @@ static #ifdef VARIABLE_SPEED_DECODING #ifdef VARIABLE_SPEED_DECODING #define VARIABLE_SPEED_FETCH_FRAMESIZE_MS 20 #define VARIABLE_SPEED_FETCH_FRAMESIZE_MS 20 #endif #endif #ifdef JBM_TSM_ON_TCS #define JBM_FRONTEND_FETCH_FRAMESIZE_MS 20 #define JBM_FRONTEND_FETCH_FRAMESIZE_MS 20 #endif typedef struct typedef struct { { Loading Loading @@ -136,12 +134,10 @@ typedef struct char *tsmScaleFileName; char *tsmScaleFileName; uint16_t tsmScale; uint16_t tsmScale; #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION uint16_t frontendFetchSizeMs; uint16_t frontendFetchSizeMs; #endif #endif #endif #endif #endif } DecArguments; } DecArguments; Loading Loading @@ -389,7 +385,6 @@ int main( goto cleanup; goto cleanup; } } #ifdef JBM_TSM_ON_TCS /*------------------------------------------------------------------------------------------* /*------------------------------------------------------------------------------------------* * Configure VoIP mode * Configure VoIP mode *------------------------------------------------------------------------------------------*/ *------------------------------------------------------------------------------------------*/ Loading @@ -414,7 +409,6 @@ int main( } } #endif #endif #endif #endif #endif #ifdef DEBUGGING #ifdef DEBUGGING /*-----------------------------------------------------------------* /*-----------------------------------------------------------------* Loading Loading @@ -642,17 +636,6 @@ int main( if ( arg.voipMode ) if ( arg.voipMode ) { { #ifndef JBM_TSM_ON_TCS #ifdef VARIABLE_SPEED_DECODING if ( ( error = IVAS_DEC_EnableVoIP( hIvasDec, IVAS_DEC_VOIP_MODE_VOIP, 100, 60, arg.inputFormat ) ) != IVAS_ERR_OK ) #else if ( ( error = IVAS_DEC_EnableVoIP( hIvasDec, 60, arg.inputFormat ) ) != IVAS_ERR_OK ) #endif { fprintf( stderr, "\nCould not enable VOIP: %s\n\n", IVAS_DEC_GetErrorMessage( error ) ); goto cleanup; } #endif error = decodeVoIP( arg, hBsReader, hIvasDec ); error = decodeVoIP( arg, hBsReader, hIvasDec ); } } #ifdef VARIABLE_SPEED_DECODING #ifdef VARIABLE_SPEED_DECODING Loading Loading @@ -905,11 +888,9 @@ static bool parseCmdlIVAS_dec( arg->tsmScaleFileEnabled = false; arg->tsmScaleFileEnabled = false; arg->tsmScaleFileName = NULL; arg->tsmScaleFileName = NULL; #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION arg->frontendFetchSizeMs = JBM_FRONTEND_FETCH_FRAMESIZE_MS; arg->frontendFetchSizeMs = JBM_FRONTEND_FETCH_FRAMESIZE_MS; #endif #endif #endif #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION arg->noBadFrameDelay = false; arg->noBadFrameDelay = false; #endif #endif Loading Loading @@ -1078,7 +1059,6 @@ static bool parseCmdlIVAS_dec( } } } } #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION else if ( strcmp( argv_to_upper, "-VOIP_FRAMESIZE" ) == 0 ) else if ( strcmp( argv_to_upper, "-VOIP_FRAMESIZE" ) == 0 ) { { Loading @@ -1099,7 +1079,6 @@ static bool parseCmdlIVAS_dec( } } } } #endif #endif #endif #endif /* #ifdef DEBUGGING */ #endif /* #ifdef DEBUGGING */ else if ( strcmp( argv_to_upper, "-MIME" ) == 0 ) else if ( strcmp( argv_to_upper, "-MIME" ) == 0 ) Loading Loading @@ -1388,11 +1367,9 @@ static void usage_dec( void ) fprintf( stdout, "-VS fac : Variable Speed mode: change speed of playout fac as integer in percent.\n" ); fprintf( stdout, "-VS fac : Variable Speed mode: change speed of playout fac as integer in percent.\n" ); fprintf( stdout, " 50 <= fac <= 150; fac<100 faster, fac>100 slower\n" ); fprintf( stdout, " 50 <= fac <= 150; fac<100 faster, fac>100 slower\n" ); #endif #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION fprintf( stdout, "-VOIP_framesize : VoIP mode: acoustic frontend fetch frame size (must be multiples of 5!)\n" ); fprintf( stdout, "-VOIP_framesize : VoIP mode: acoustic frontend fetch frame size (must be multiples of 5!)\n" ); #endif #endif #endif #endif #endif fprintf( stdout, "-fec_cfg_file : Optimal channel aware configuration computed by the JBM \n" ); fprintf( stdout, "-fec_cfg_file : Optimal channel aware configuration computed by the JBM \n" ); fprintf( stdout, " as described in Section 6.3.1 of TS26.448. The output is \n" ); fprintf( stdout, " as described in Section 6.3.1 of TS26.448. The output is \n" ); Loading Loading @@ -2077,10 +2054,8 @@ static ivas_error decodeVoIP( uint32_t nextPacketRcvTime_ms = 0; uint32_t nextPacketRcvTime_ms = 0; uint32_t systemTime_ms = 0; uint32_t systemTime_ms = 0; #ifdef JBM_TSM_ON_TCS uint32_t systemTimeInc_ms = (uint32_t) JBM_FRONTEND_FETCH_FRAMESIZE_MS; uint32_t systemTimeInc_ms = (uint32_t) JBM_FRONTEND_FETCH_FRAMESIZE_MS; int32_t nFramesWritten = 0; int32_t nFramesWritten = 0; #endif int32_t nFramesFed = 0; int32_t nFramesFed = 0; Loading Loading @@ -2216,26 +2191,18 @@ static ivas_error decodeVoIP( * Main receiving/decoding loop * Main receiving/decoding loop *------------------------------------------------------------------------------------------*/ *------------------------------------------------------------------------------------------*/ #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION systemTimeInc_ms = arg.frontendFetchSizeMs; systemTimeInc_ms = arg.frontendFetchSizeMs; #endif #endif #endif while ( 1 ) while ( 1 ) { { int16_t nOutSamples = 0; int16_t nOutSamples = 0; #if defined( JBM_TSM_ON_TCS ) || defined( VARIABLE_SPEED_DECODING ) uint16_t nSamplesAvailableNext = 0; uint16_t nSamplesAvailableNext = 0; #endif #ifdef JBM_TSM_ON_TCS #ifdef DEBUG_JBM_CMD_OPTION #ifdef DEBUG_JBM_CMD_OPTION nOutSamples = (int16_t) ( arg.output_Fs / 1000 * arg.frontendFetchSizeMs ); nOutSamples = (int16_t) ( arg.output_Fs / 1000 * arg.frontendFetchSizeMs ); #else #else nOutSamples = (int16_t) ( arg.output_Fs / 1000 * JBM_FRONTEND_FETCH_FRAMESIZE_MS ); nOutSamples = (int16_t) ( arg.output_Fs / 1000 * JBM_FRONTEND_FETCH_FRAMESIZE_MS ); #endif #else nOutSamples = (int16_t) ( arg.output_Fs / 50 ); #endif #endif /* read all packets with a receive time smaller than the system time */ /* read all packets with a receive time smaller than the system time */ while ( nextPacketRcvTime_ms <= systemTime_ms ) while ( nextPacketRcvTime_ms <= systemTime_ms ) Loading Loading @@ -2280,12 +2247,8 @@ static ivas_error decodeVoIP( /* we are finished when all packets have been received and jitter buffer is empty */ /* we are finished when all packets have been received and jitter buffer is empty */ /* also stop when the input file contains less than two frames, because JBM cannot calculate a delay value and won't start decoding */ /* also stop when the input file contains less than two frames, because JBM cannot calculate a delay value and won't start decoding */ #ifdef JBM_TSM_ON_TCS /* last clause should make sure that for BE tests we end up with the same number of samples...*/ /* last clause should make sure that for BE tests we end up with the same number of samples...*/ if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec, nOutSamples ) || nFramesFed < 2 ) ) if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec, nOutSamples ) || nFramesFed < 2 ) ) #else if ( nextPacketRcvTime_ms == (uint32_t) ( -1 ) && ( IVAS_DEC_VoIP_IsEmpty( hIvasDec ) || nFramesFed < 2 ) ) #endif { { break; break; } } Loading @@ -2293,10 +2256,8 @@ static ivas_error decodeVoIP( /* decode and get samples */ /* decode and get samples */ if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, pcmBuf, systemTime_ms if ( ( error = IVAS_DEC_VoIP_GetSamples( hIvasDec, nOutSamples, pcmBuf, systemTime_ms #if defined( JBM_TSM_ON_TCS ) || defined( VARIABLE_SPEED_DECODING ) , , &nSamplesAvailableNext &nSamplesAvailableNext #endif #ifdef SUPPORT_JBM_TRACEFILE #ifdef SUPPORT_JBM_TRACEFILE , , writeJbmTraceFileFrameWrapper, writeJbmTraceFileFrameWrapper, Loading Loading @@ -2386,7 +2347,6 @@ static ivas_error decodeVoIP( delayNumSamples -= nOutSamples; delayNumSamples -= nOutSamples; } } #ifdef JBM_TSM_ON_TCS /* Write ISM metadata to external file(s) */ /* Write ISM metadata to external file(s) */ if ( decodedGoodFrame && arg.outputFormat == IVAS_DEC_OUTPUT_EXT ) if ( decodedGoodFrame && arg.outputFormat == IVAS_DEC_OUTPUT_EXT ) { { Loading Loading @@ -2433,7 +2393,6 @@ static ivas_error decodeVoIP( } } } } } } #endif } } if ( !arg.quietModeEnabled ) if ( !arg.quietModeEnabled ) Loading @@ -2442,12 +2401,8 @@ static ivas_error decodeVoIP( } } frame++; frame++; #ifdef JBM_TSM_ON_TCS systemTime_ms += systemTimeInc_ms; systemTime_ms += systemTimeInc_ms; nFramesWritten++; nFramesWritten++; #else systemTime_ms += 20; #endif #ifdef WMOPS #ifdef WMOPS update_mem(); update_mem(); Loading
lib_com/fd_cng_com.c +0 −2 Original line number Original line Diff line number Diff line Loading @@ -941,7 +941,6 @@ void SynthesisSTFT( } } #ifdef JBM_TSM_ON_TCS /*------------------------------------------------------------------- /*------------------------------------------------------------------- * SynthesisSTFT_dirac() * SynthesisSTFT_dirac() * * Loading Loading @@ -1007,7 +1006,6 @@ void SynthesisSTFT_dirac( return; return; } } #endif /*------------------------------------------------------------------- /*------------------------------------------------------------------- Loading
lib_com/ivas_cnst.h +0 −6 Original line number Original line Diff line number Diff line Loading @@ -203,7 +203,6 @@ typedef enum #define IVAS_NUM_SUPPORTED_FS 3 /* number of supported sampling-rates in IVAS */ #define IVAS_NUM_SUPPORTED_FS 3 /* number of supported sampling-rates in IVAS */ #ifdef JBM_TSM_ON_TCS #define CLDFB_SLOT_NS 1250000L /* 1.25ms: CLDFB slot length */ #define CLDFB_SLOT_NS 1250000L /* 1.25ms: CLDFB slot length */ #define MAX_JBM_SUBFRAMES_5MS 8 #define MAX_JBM_SUBFRAMES_5MS 8 #define DEFAULT_JBM_SUBFRAMES_5MS 4 #define DEFAULT_JBM_SUBFRAMES_5MS 4 Loading @@ -221,7 +220,6 @@ typedef enum TC_BUFFER_MODE_RENDERER, TC_BUFFER_MODE_RENDERER, TC_BUFFER_MODE_BUFFER TC_BUFFER_MODE_BUFFER } TC_BUFFER_MODE; } TC_BUFFER_MODE; #endif /*----------------------------------------------------------------------------------* /*----------------------------------------------------------------------------------* * IVAS Bitrates * IVAS Bitrates Loading Loading @@ -1393,11 +1391,7 @@ typedef enum #define PARAM_MC_REG_GHAT (0.001f) /* Regularization factor for mixing matrix calculation */ #define PARAM_MC_REG_GHAT (0.001f) /* Regularization factor for mixing matrix calculation */ #define PARAM_MC_MAX_PARAMETER_BANDS 20 /* Maximum number of parameter bands */ #define PARAM_MC_MAX_PARAMETER_BANDS 20 /* Maximum number of parameter bands */ #define PARAM_MC_MAX_PARAMETER_BANDS_RES 14 /* Maximum number of parameter bands with decorrelation */ #define PARAM_MC_MAX_PARAMETER_BANDS_RES 14 /* Maximum number of parameter bands with decorrelation */ #ifdef JBM_TSM_ON_TCS #define PARAM_MC_MAX_NSLOTS MAX_JBM_CLDFB_TIMESLOTS /* Maximum number of CLDFB slots in a frame */ #define PARAM_MC_MAX_NSLOTS MAX_JBM_CLDFB_TIMESLOTS /* Maximum number of CLDFB slots in a frame */ #else #define PARAM_MC_MAX_NSLOTS 16 /* Maximum number of CLDFB slots in a frame */ #endif #define PARAM_MC_MAX_NSLOTS_IN_SUBFRAME 4 /* Maximum number of CLDFB slots in a subframe */ #define PARAM_MC_MAX_NSLOTS_IN_SUBFRAME 4 /* Maximum number of CLDFB slots in a subframe */ #define PARAM_MC_NSUBFRAMES_DEC 4 /* Number of subframes for the synthesis in the decoder */ #define PARAM_MC_NSUBFRAMES_DEC 4 /* Number of subframes for the synthesis in the decoder */ #define PARAM_MC_MAX_BANDS_IN_PARAMETER_BAND 30 /* Maximum number of CLDFB frequency bands within a parameter band */ #define PARAM_MC_MAX_BANDS_IN_PARAMETER_BAND 30 /* Maximum number of CLDFB frequency bands within a parameter band */ Loading