Commit 57b3bbc7 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 13

parent 08abc566
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ void encod_unvoiced_ivas_fx(
    Word16 y1[L_SUBFR];      /* Filtered adaptive excitation                   */
    Word16 code2[L_SUBFR];   /* Gaussian excitation                            */
    Word16 y22[L_SUBFR];     /* Filtered Gaussian excitation                   */
    Word16 prm_t[2 * NPRM_DIV], *prm = prm_t;
    //Word16 prm_t[2 * NPRM_DIV], *prm = prm_t;
    const Word16 *p_Aw_fx, *p_Aq_fx; /* pointer to LP filter coeff. vector */
    Word32 norm_gain_code_fx;
    ACELP_config *acelp_cfg;
@@ -306,6 +306,7 @@ void encod_unvoiced_ivas_fx(
#else
    Word16 i_subfr, Q_xn, Q_new_p5, tmp2, j, i;
    Word16 index, i_subfr_idx;
    Word16 unbits_PI;
#endif
    acelp_cfg = &( st_fx->acelp_cfg );
    SC_VBR_ENC_HANDLE hSC_VBR = st_fx->hSC_VBR;
@@ -386,7 +387,10 @@ void encod_unvoiced_ivas_fx(
             *                 Encode the algebraic innovation                      *
             *----------------------------------------------------------------------*/

            E_ACELP_innovative_codebook_fx( exc_fx, *pt_pitch_fx, 0, 1, gain_pit_fx, hLPDmem->tilt_code, acelp_cfg, i_subfr, p_Aq_fx, h1_fx, xn_fx, cn_fx, y1, y2_fx, (Word8) st_fx->acelp_autocorr, &prm, code_fx, shift, st_fx->L_frame, st_fx->last_L_frame, st_fx->total_brate );
            //E_ACELP_innovative_codebook_ivas_fx( exc_fx, *pt_pitch_fx, 0, 1, gain_pit_fx, hLPDmem->tilt_code, acelp_cfg, i_subfr, p_Aq_fx, h1_fx, xn_fx, cn_fx, y1, y2_fx, (Word8) st_fx->acelp_autocorr, &prm, code_fx, shift, st_fx->L_frame, st_fx->last_L_frame, st_fx->total_brate, st_fx->element_mode );
            inov_encode_ivas_fx(st_fx, st_fx->core_brate, 0, L_FRAME, st_fx->last_L_frame,
                UNVOICED, st_fx->bwidth, st_fx->sharpFlag, i_subfr, -1, p_Aq_fx,
                gain_pit_fx, cn_fx, exc_fx, h1_fx, hLPDmem->tilt_code, *pt_pitch_fx, xn_fx, code_fx, y2_fx, &unbits_PI, L_SUBFR, shift, Q_new);

            E_ACELP_xy2_corr( xn_fx, y1, y2_fx, &g_corr, L_SUBFR, Q_xn );