Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ #define HARM_FD_BWE /* VA: harmonize core-coder FD BWE function duplications */ #define FIX_2411_Harmonize_TNSANALYSIS_DETECTTNSFILT /* FhG: basop issue 2411: harmonize TNSAnalysis*_fx(), DetectTnsFilt*_fx()*/ #define HARMONIZE_READ_DECODE_TNS /* FhG basop 2389: Harm between two pairs of functions. */ #define FIX_OUTPUT_FRAME /* VA: harmonize "output_frame" parameter usage to correspond to FLP */ /* #################### End BE switches ################################## */ Loading lib_dec/amr_wb_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -136,8 +136,12 @@ ivas_error amr_wb_dec_fx( move16(); st_fx->coder_type = GENERIC; move16(); #ifdef FIX_OUTPUT_FRAME output_frame = extract_l( Mult_32_16( st_fx->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); #else output_frame = st_fx->output_frame_fx; /*Q0*/ move16(); /* frame length of the input signal */ #endif st_fx->bpf_off = 0; move16(); Loading lib_dec/core_dec_init_fx.c +10 −0 Original line number Diff line number Diff line Loading @@ -736,7 +736,11 @@ void open_decoder_LPD_fx( test(); IF( EQ_16( st->core, ACELP_CORE ) && EQ_16( st->last_core, HQ_CORE ) ) { #ifdef FIX_OUTPUT_FRAME frame_ener_fx( st->hTcxDec->L_frameTCX, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #else frame_ener_fx( st->output_frame_fx, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #endif } } ELSE Loading Loading @@ -1171,8 +1175,10 @@ void open_decoder_LPD_ivas_fx( { st->hTcxDec->L_frameTCX = extract_l( Mult_32_16( st->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); move16(); #ifndef FIX_OUTPUT_FRAME st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); #endif if ( st->ini_frame == 0 ) { st->L_frameTCX_past = st->hTcxDec->L_frameTCX; Loading Loading @@ -1795,9 +1801,13 @@ void open_decoder_LPD_ivas_fx( test(); IF( st->core == ACELP_CORE && EQ_16( st->last_core, HQ_CORE ) ) { #ifdef FIX_OUTPUT_FRAME frame_ener_fx( st->hTcxDec->L_frameTCX, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #else st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); frame_ener_fx( st->output_frame_fx, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #endif } } ELSE Loading lib_dec/core_dec_switch_fx.c +2 −0 Original line number Diff line number Diff line Loading @@ -338,8 +338,10 @@ void mode_switch_decoder_LPD_ivas_fx( { st->hTcxDec->L_frameTCX = extract_l( Mult_32_16( st->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); /* Q0 */ move16(); #ifndef FIX_OUTPUT_FRAME st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); #endif } IF( st->hTcxCfg != NULL ) Loading lib_dec/evs_dec_fx.c +5 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,11 @@ ivas_error evs_dec_fx( move16(); } #ifdef FIX_OUTPUT_FRAME output_frame = extract_l( Mult_32_16( st_fx->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); #else output_frame = st_fx->output_frame_fx; /*Q0*/ #endif move16(); core_switching_flag = 0; Loading Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,7 @@ #define HARM_FD_BWE /* VA: harmonize core-coder FD BWE function duplications */ #define FIX_2411_Harmonize_TNSANALYSIS_DETECTTNSFILT /* FhG: basop issue 2411: harmonize TNSAnalysis*_fx(), DetectTnsFilt*_fx()*/ #define HARMONIZE_READ_DECODE_TNS /* FhG basop 2389: Harm between two pairs of functions. */ #define FIX_OUTPUT_FRAME /* VA: harmonize "output_frame" parameter usage to correspond to FLP */ /* #################### End BE switches ################################## */ Loading
lib_dec/amr_wb_dec_fx.c +4 −0 Original line number Diff line number Diff line Loading @@ -136,8 +136,12 @@ ivas_error amr_wb_dec_fx( move16(); st_fx->coder_type = GENERIC; move16(); #ifdef FIX_OUTPUT_FRAME output_frame = extract_l( Mult_32_16( st_fx->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); #else output_frame = st_fx->output_frame_fx; /*Q0*/ move16(); /* frame length of the input signal */ #endif st_fx->bpf_off = 0; move16(); Loading
lib_dec/core_dec_init_fx.c +10 −0 Original line number Diff line number Diff line Loading @@ -736,7 +736,11 @@ void open_decoder_LPD_fx( test(); IF( EQ_16( st->core, ACELP_CORE ) && EQ_16( st->last_core, HQ_CORE ) ) { #ifdef FIX_OUTPUT_FRAME frame_ener_fx( st->hTcxDec->L_frameTCX, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #else frame_ener_fx( st->output_frame_fx, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #endif } } ELSE Loading Loading @@ -1171,8 +1175,10 @@ void open_decoder_LPD_ivas_fx( { st->hTcxDec->L_frameTCX = extract_l( Mult_32_16( st->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); move16(); #ifndef FIX_OUTPUT_FRAME st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); #endif if ( st->ini_frame == 0 ) { st->L_frameTCX_past = st->hTcxDec->L_frameTCX; Loading Loading @@ -1795,9 +1801,13 @@ void open_decoder_LPD_ivas_fx( test(); IF( st->core == ACELP_CORE && EQ_16( st->last_core, HQ_CORE ) ) { #ifdef FIX_OUTPUT_FRAME frame_ener_fx( st->hTcxDec->L_frameTCX, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #else st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); frame_ener_fx( st->output_frame_fx, UNVOICED_CLAS, st->previoussynth_fx, -1, &st->enr_old_fx, 1, 0, 0, 0 ); #endif } } ELSE Loading
lib_dec/core_dec_switch_fx.c +2 −0 Original line number Diff line number Diff line Loading @@ -338,8 +338,10 @@ void mode_switch_decoder_LPD_ivas_fx( { st->hTcxDec->L_frameTCX = extract_l( Mult_32_16( st->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); /* Q0 */ move16(); #ifndef FIX_OUTPUT_FRAME st->output_frame_fx = st->hTcxDec->L_frameTCX; /* Q0 */ move16(); #endif } IF( st->hTcxCfg != NULL ) Loading
lib_dec/evs_dec_fx.c +5 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,11 @@ ivas_error evs_dec_fx( move16(); } #ifdef FIX_OUTPUT_FRAME output_frame = extract_l( Mult_32_16( st_fx->output_Fs, INV_FRAME_PER_SEC_Q15 ) ); #else output_frame = st_fx->output_frame_fx; /*Q0*/ #endif move16(); core_switching_flag = 0; Loading