Commit bfbcef66 authored by emerit's avatar emerit
Browse files

Merge branch 'main' into update_crend_v2

parents 9f41b84a 24cb7eef
Loading
Loading
Loading
Loading
+19 −2
Original line number Diff line number Diff line
@@ -1253,8 +1253,25 @@ voip-be-on-merge-request:
  - unzip artifacts.zip || true # this may fail on first run, when there are no artifacts there and the zip file is actually just "404"-html
  - ls
  - public_dir="$CI_JOB_NAME-public"

  # if is needed to catch case when no artifact is there (first run), similarly as above
  - if [[ -d $public_dir ]]; then mv $public_dir/* wmops/;  fi
  - if [[ -d $public_dir ]]; then
  -   mv $public_dir/* wmops/
  # check here if we have the split-by-levels files present - if not, fake them up with the existing global one
  # this is needed for the first run with split graphs on a branch where the global version did run previously
  # NOTE: checking only for level_1 file here as this should already be sufficient
  # NOTE2: also not chechking for RAM for same reason
  -   wmops_all_global="wmops/log_wmops_all.txt"
  -   ram_all_global="wmops/log_ram_all.txt"
  -   if [ -f "${wmops_all_global}" ] && [ ! -f "wmops/log_wmops_all_level_1.txt" ]; then
  -     declare -a suffixes=("level_1" "level_2" "level_3" "rate_sw")
  -     for suffix in "${suffixes[@]}"; do
  -       cp ${wmops_all_global} wmops/log_wmops_all_${suffix}.txt
  -       cp ${ram_all_global} wmops/log_ram_all_${suffix}.txt
  -     done
  -   fi
  - fi

  - ls wmops
  - rm artifacts.zip
  - rm -rf $public_dir
@@ -1271,7 +1288,7 @@ voip-be-on-merge-request:
  &complexity-measurements-prepare-artifacts # prepare artifacts -> move to public directory
  - public_dir="$CI_JOB_NAME-public"
  - mkdir $public_dir
  - mv -f wmops/log_*_all.txt ./*.js ${public_dir}/
  - mv -f wmops/log_*_all*.txt ./*.js ${public_dir}/
  # move logfiles for links
  - mkdir $public_dir/logs
  # first move logs
+2 −2
Original line number Diff line number Diff line
@@ -528,8 +528,8 @@ static void init_sig_buffers_ivas_fx( Encoder_State *st, const Word16 L_frame_ol

            Copy( st->old_wsp_fx, st->buf_wspeech_enc + st->L_frame + L_SUBFR - L_WSP_MEM, L_WSP_MEM );
            // Copy_Scale_sig( st->old_wsp_fx, st->buf_wspeech_enc + st->L_frame + L_SUBFR - L_WSP_MEM, L_WSP_MEM, sub( st->prev_Q_new, st->prev_Q_old ) );

            /*Resamp buffers needed only for ACELP*/
            st->exp_buf_wspeech_enc = st->exp_old_wsp;
            move16(); /*Resamp buffers needed only for ACELP*/
            IF( EQ_16( st->L_frame, L_FRAME16k ) )
            {
                lerp( st->buf_wspeech_enc + st->L_frame + L_SUBFR - L_WSP_MEM, st->buf_wspeech_enc + st->L_frame + L_SUBFR - 310, 310, L_WSP_MEM );
+2 −0
Original line number Diff line number Diff line
@@ -571,6 +571,8 @@ ivas_error pre_proc_ivas_fx(
    st->q_inp = -1;
    move16();
    Scale_sig( st->buf_wspeech_enc, L_FRAME16k + L_SUBFR + L_FRAME16k + L_NEXT_MAX_16k + 320, sub( Q_old_inp_16k, sub( Q15, st->exp_buf_wspeech_enc ) ) ); /* Q15 - Q_old_inp_16k */
    st->mem_wsp_enc = shl( st->mem_wsp_enc, sub( Q_old_inp_16k, sub( Q15, st->exp_buf_wspeech_enc ) ) );                                                   // Q_old_inp_16k
    move16();
    st->exp_buf_wspeech_enc = sub( Q15, Q_old_inp_16k );
    move16();
    Word16 Q_old_inp_128k = *Q_new;
+6 −1
Original line number Diff line number Diff line
@@ -1643,6 +1643,8 @@ ivas_error pre_proc_front_ivas_fx(
                st->exp_mem_preemph_enc = sub( Q15, Q_old_inp_16k );
                move16();
                Scale_sig( st->buf_wspeech_enc, L_FRAME16k + L_SUBFR + L_FRAME16k + L_NEXT_MAX_16k + 320, sub( Q_old_inp_16k, sub( Q15, st->exp_buf_wspeech_enc ) ) ); /* Q15 - Q_old_inp_16k */
                st->mem_wsp_enc = shl( st->mem_wsp_enc, sub( Q_old_inp_16k, sub( Q15, st->exp_buf_wspeech_enc ) ) );                                                   // Q_old_inp_16k
                move16();
                st->exp_buf_wspeech_enc = sub( Q15, Q_old_inp_16k );
                move16();
                Scale_sig( st->buf_speech_enc_pe, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k, sub( Q_old_inp_16k, sub( Q15, st->exp_buf_speech_enc_pe ) ) ); /* Q15 - Q_old_inp_16k */
@@ -1666,7 +1668,7 @@ ivas_error pre_proc_front_ivas_fx(
                *epsP_fx_q = add( Q_r[0], 1 );
                move16();

                st->mem_wsp_enc = shr_r( st->mem_wsp_enc, *Q_new ); // Q_new - 1 -> Q-1
                st->mem_wsp_enc = shl( st->mem_wsp_enc, sub( 0, sub( Q15, st->exp_buf_wspeech_enc ) ) ); // Q0
                move16();

                *Q_new = add( *Q_new, Q_to_be_looked_into ); // actual Q_new
@@ -1676,6 +1678,9 @@ ivas_error pre_proc_front_ivas_fx(
                Scale_sig( st->buf_speech_enc, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k, sub( 0, sub( Q15, st->exp_buf_speech_enc ) ) ); /* Q0 */
                st->exp_buf_speech_enc = Q15;
                move16();
                Scale_sig( st->buf_wspeech_enc, L_FRAME16k + L_SUBFR + L_FRAME16k + L_NEXT_MAX_16k + 320, sub( 0, sub( Q15, st->exp_buf_wspeech_enc ) ) ); /* Q0 */
                st->exp_buf_wspeech_enc = Q15;
                move16();
                smc_dec = ivas_acelp_tcx20_switching_fx( st, st->speech_enc, 0, st->wspeech_enc, non_staX_fx, pitch_fr_fx, voicing_fr_fx, currFlatness_fx, lsp_mid_fx, stab_fac_fx, res_cod_SNR_M_fx, res_cod_SNR_M_fx_e, flag_16k_smc ); /* Q0 */
            }
            ELSE
+1 −5
Original line number Diff line number Diff line
@@ -727,10 +727,6 @@ void stereo_tcx_core_enc(
            move16();
        }
    }
    st->q_Bin_E = Q_new + Q_SCALE - 2;
    move16();
    st->q_Bin_E_old = Q_new + Q_SCALE - 2;
    move16();
    Scale_sig( st->synth, st->L_frame, -Q_new );
    IF( st->tcxonly == 0 )
    {
@@ -875,7 +871,7 @@ Word16 ivas_acelp_tcx20_switching_fx(
#ifdef MSAN_FIX
        FOR( i = 0; i < st->hTcxCfg->tcx_mdct_window_length / 2; i++ )
        {
            window_fx[st->hTcxCfg->tcx_mdct_window_length / 2 - 1 - i] = st->hTcxCfg->tcx_mdct_window[i].v.re; // Q15
            window_fx[st->hTcxCfg->tcx_mdct_window_length - 1 - i] = st->hTcxCfg->tcx_mdct_window[i].v.re; // Q15
            move16();
            window_fx[i] = st->hTcxCfg->tcx_mdct_window[i].v.im; // Q15
            move16();