Commit 9d5836e7 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 1

parent df29c171
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
 *-------------------------------------------------------------------*/

/*! r: index of next coefficient */
#ifndef IVAS_FLOAT_FIXED
int16_t get_next_coeff_mapped_ivas(
    int16_t ii[2],            /* i/o: coefficient indexes       */
    int32_t *pp,              /* o  : peak(1)/hole(0) indicator */
@@ -64,6 +65,28 @@ int16_t get_next_coeff_mapped_ivas(

    return hm_cfg->indexBuffer[*idx];
}
#else
Word16 get_next_coeff_mapped_ivas(
    Word16 ii[2],            /* i/o: coefficient indexes       */
    Word32 *pp,              /* o  : peak(1)/hole(0) indicator */
    Word16 *idx,             /* o  : index in unmapped domain  */
    CONTEXT_HM_CONFIG *hm_cfg /* i  : HM configuration          */
)
{
    UWord32 p;

    p = s_and( sub( ii[1], hm_cfg->numPeakIndices ), sub( hm_cfg->indexBuffer[ii[1]], hm_cfg->indexBuffer[ii[0]] ) );
    p >>= sub( sizeof( p ) * 8, 1 );
    *pp = p;
    move32();
    *idx = ii[p];
    move16();
    ii[p] = add( ii[p], 1 );
    move16();

    return hm_cfg->indexBuffer[*idx];
}
#endif


/*-------------------------------------------------------------------*
+2 −2
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ void powfp_odd2_evs(
 * and decoder remain synchronized.
 *-------------------------------------------------------------------------*/

void tcx_arith_scale_envelope_flt(
void tcx_arith_scale_envelope_ivas(
    const Word16 L_spec_core,    /* i  : number of lines to scale    Q0 */
    Word16 L_frame,              /* i  : number of lines             Q0 */
    const Word32 env[],          /* i  : unscaled envelope           Q16 */
@@ -518,7 +518,7 @@ void tcx_arith_scale_envelope_flt(
 * and decoder remain synchronized.
 *-------------------------------------------------------------------------*/

void tcx_arith_render_envelope_flt(
void tcx_arith_render_envelope_ivas(
    const Word16 A_ind[],     /* i  : LPC coefficients of signal envelope        */
    const Word16 L_frame,     /* i  : number of spectral lines                   */
    const Word16 L_spec,      /* i  : length of the coded spectrum               */
+137 −137

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -1919,6 +1919,7 @@ typedef enum _DCTTYPE
#define N_SMC_MIXTURES                      6                       /* number of mixtures */
#define N_PCA_COEF                          12                      /* number of PCA components */
#define SMC_ST_MEAN_FACT                    0.5                     /* forgetting factor of short-term IIR mean filter */
#define SMC_ST_MEAN_RSHIFT_FACT_FX            1                     /* SMC_ST_MEAN_FACT equivalent right shift factor */

#define M_LSP_SPMUS                         6                       /* number of LSPs used in speech/music classifier */
#define NB_BANDS_SPMUS                      15
+153 −57

File changed.

Preview size limit exceeded, changes collapsed.

Loading