Commit febbd71a authored by malenov's avatar malenov
Browse files

instrument also main AMR-WB encoder/decoder functions

parent 38d7b45a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -101,6 +101,8 @@ ivas_error amr_wb_dec(
    TCX_LTP_DEC_HANDLE hTcxLtpDec = st->hTcxLtpDec;
    ivas_error error;

    push_wmops( "amr_wb_dec" );

    error = IVAS_ERR_OK;

    /*------------------------------------------------------------------*
@@ -810,6 +812,7 @@ ivas_error amr_wb_dec(
    /* final output of synthesis signal */
    mvr2r( synth_out, output, output_frame );

    pop_wmops();

    return error;
}
+4 −0
Original line number Diff line number Diff line
@@ -88,10 +88,13 @@ ivas_error amr_wb_dec_fx(
    hTcxLtpDec = st_fx->hTcxLtpDec;
    hTcxDec = st_fx->hTcxDec;

    push_wmops( "amr_wb_dec_fx" );

    error = IVAS_ERR_OK;
    st_fx->idchan = 0;
    move16();
    move16();

    /*------------------------------------------------------------------*
     * Initialization
     *------------------------------------------------------------------*/
@@ -1111,6 +1114,7 @@ ivas_error amr_wb_dec_fx(
    /* final output of synthesis signal */
    syn_output_fx( st_fx->codec_mode, synth_out_fx, output_frame, output_sp, st_fx->Q_syn2 );

    pop_wmops();

    return error;
}
+3 −0
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@ void amr_wb_enc(

    LPD_state_HANDLE hLPDmem = st->hLPDmem;

    push_wmops( "amr_wb_enc" );

    /*------------------------------------------------------------------*
     * Initialization
     *------------------------------------------------------------------*/
@@ -518,6 +520,7 @@ void amr_wb_enc(
    /* update main codec paramaters */
    updt_enc_common( st );

    pop_wmops();

    return;
}
+4 −0
Original line number Diff line number Diff line
@@ -89,6 +89,8 @@ void amr_wb_enc_fx(
    TD_BWE_ENC_HANDLE hBWE_TD = st->hBWE_TD;
    FD_BWE_ENC_HANDLE hBWE_FD = st->hBWE_FD;

    push_wmops( "amr_wb_enc_fx" );

    /*------------------------------------------------------------------*
     * Initialization
     *------------------------------------------------------------------*/
@@ -609,6 +611,8 @@ void amr_wb_enc_fx(
    dbgwrite( &st->vad_flag, sizeof( short ), 1, input_frame, "res/vad_flag" );
#endif

    pop_wmops();

    return;
}
/*---------------------------------------------------------------------*