Loading lib_enc/init_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -1602,6 +1602,8 @@ ivas_error init_encoder_ivas_fx( st->buf_speech_enc = st->hSignalBuf->buf_speech_enc; st->buf_wspeech_enc = st->hSignalBuf->buf_wspeech_enc; set32_fx( st->Bin_E_old_fx, 0, L_FFT / 2 ); st->q_Bin_E_old = Q31; set16_fx( st->hSignalBuf->buf_speech_enc, 0, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k ); st->exp_buf_speech_enc = 0; move16(); Loading lib_enc/ivas_corecoder_enc_reconfig.c +6 −6 Original line number Diff line number Diff line Loading @@ -674,8 +674,8 @@ ivas_error ivas_corecoder_enc_reconfig_fx( st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp = add( st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp, shift ); move16(); q_com_sce = s_min( q_com_sce, st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp ); shift = getScaleFactor16( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ) ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ), shift ); shift = getScaleFactor16( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame, shift ); st_ivas->hSCE[k]->hCoreCoder[0]->q_inp = add( st_ivas->hSCE[k]->hCoreCoder[0]->q_inp, shift ); move16(); q_com_sce = s_min( q_com_sce, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ); Loading @@ -694,8 +694,8 @@ ivas_error ivas_corecoder_enc_reconfig_fx( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp = add( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp, shift ); move16(); q_com_cpe = s_min( q_com_cpe, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ); shift = getScaleFactor16( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ) ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ), shift ); shift = getScaleFactor16( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame, shift ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp = add( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp, shift ); move16(); q_com_cpe = s_min( q_com_cpe, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp ); Loading @@ -711,7 +711,7 @@ ivas_error ivas_corecoder_enc_reconfig_fx( Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->old_input_signal_fx, input_frame, sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp ) ); st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp = q_com; move16(); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ), sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ) ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame, sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ) ); st_ivas->hSCE[k]->hCoreCoder[0]->q_inp = q_com; move16(); Copy_Scale_sig_16_32( st_ivas->hSCE[k]->hCoreCoder[0]->input_buff_fx, st_ivas->hSCE[k]->hCoreCoder[0]->input_buff32_fx, L_FRAME48k + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) + L_FRAME48k, add( Q6, q_com ) ); Loading @@ -729,7 +729,7 @@ ivas_error ivas_corecoder_enc_reconfig_fx( Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->old_input_signal_fx, input_frame, sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp = q_com; move16(); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ), sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame, sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp = q_com; move16(); Copy_Scale_sig_16_32( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_buff_fx, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_buff32_fx, L_FRAME48k + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) + L_FRAME48k, add( Q6, q_com ) ); Loading lib_enc/ivas_ism_dtx_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,8 @@ ivas_error ivas_ism_dtx_open( { set32_fx( hISMDTX->long_term_energy_stereo_dmx_enc_fx[i], 0, PARAM_ISM_HYS_BUF_SIZE ); } hISMDTX->long_term_energy_stereo_dmx_enc_e = 0; move16(); set16_fx( hISMDTX->coh_fx, 0, MAX_NUM_OBJECTS ); Loading Loading
lib_enc/init_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -1602,6 +1602,8 @@ ivas_error init_encoder_ivas_fx( st->buf_speech_enc = st->hSignalBuf->buf_speech_enc; st->buf_wspeech_enc = st->hSignalBuf->buf_wspeech_enc; set32_fx( st->Bin_E_old_fx, 0, L_FFT / 2 ); st->q_Bin_E_old = Q31; set16_fx( st->hSignalBuf->buf_speech_enc, 0, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k ); st->exp_buf_speech_enc = 0; move16(); Loading
lib_enc/ivas_corecoder_enc_reconfig.c +6 −6 Original line number Diff line number Diff line Loading @@ -674,8 +674,8 @@ ivas_error ivas_corecoder_enc_reconfig_fx( st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp = add( st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp, shift ); move16(); q_com_sce = s_min( q_com_sce, st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp ); shift = getScaleFactor16( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ) ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ), shift ); shift = getScaleFactor16( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame, shift ); st_ivas->hSCE[k]->hCoreCoder[0]->q_inp = add( st_ivas->hSCE[k]->hCoreCoder[0]->q_inp, shift ); move16(); q_com_sce = s_min( q_com_sce, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ); Loading @@ -694,8 +694,8 @@ ivas_error ivas_corecoder_enc_reconfig_fx( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp = add( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp, shift ); move16(); q_com_cpe = s_min( q_com_cpe, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ); shift = getScaleFactor16( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ) ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, add( input_frame, NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) ), shift ); shift = getScaleFactor16( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame, shift ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp = add( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp, shift ); move16(); q_com_cpe = s_min( q_com_cpe, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp ); Loading @@ -711,7 +711,7 @@ ivas_error ivas_corecoder_enc_reconfig_fx( Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->old_input_signal_fx, input_frame, sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp ) ); st_ivas->hSCE[k]->hCoreCoder[0]->q_old_inp = q_com; move16(); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ), sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ) ); Scale_sig( st_ivas->hSCE[k]->hCoreCoder[0]->input_fx, input_frame, sub( q_com, st_ivas->hSCE[k]->hCoreCoder[0]->q_inp ) ); st_ivas->hSCE[k]->hCoreCoder[0]->q_inp = q_com; move16(); Copy_Scale_sig_16_32( st_ivas->hSCE[k]->hCoreCoder[0]->input_buff_fx, st_ivas->hSCE[k]->hCoreCoder[0]->input_buff32_fx, L_FRAME48k + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) + L_FRAME48k, add( Q6, q_com ) ); Loading @@ -729,7 +729,7 @@ ivas_error ivas_corecoder_enc_reconfig_fx( Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->old_input_signal_fx, input_frame, sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp = q_com; move16(); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ), sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); Scale_sig( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_fx, input_frame, sub( q_com, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_old_inp ) ); st_ivas->hCPE[cpe_id]->hCoreCoder[n]->q_inp = q_com; move16(); Copy_Scale_sig_16_32( st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_buff_fx, st_ivas->hCPE[cpe_id]->hCoreCoder[n]->input_buff32_fx, L_FRAME48k + NS2SA( 48000, IVAS_FB_ENC_DELAY_NS ) + L_FRAME48k, add( Q6, q_com ) ); Loading
lib_enc/ivas_ism_dtx_enc.c +2 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,8 @@ ivas_error ivas_ism_dtx_open( { set32_fx( hISMDTX->long_term_energy_stereo_dmx_enc_fx[i], 0, PARAM_ISM_HYS_BUF_SIZE ); } hISMDTX->long_term_energy_stereo_dmx_enc_e = 0; move16(); set16_fx( hISMDTX->coh_fx, 0, MAX_NUM_OBJECTS ); Loading