Commit 6b8d8319 authored by Jan Kiene's avatar Jan Kiene
Browse files

port MR 2302 from float

parent 8e74100b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5380,7 +5380,7 @@ void evs_dec_previewFrame(

    return;
}

#ifndef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG

void dtx_read_padding_bits(
    DEC_CORE_HANDLE st,
@@ -5396,3 +5396,4 @@ void dtx_read_padding_bits(

    return;
}
#endif
+5 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
    EVS Codec 3GPP TS26.443 Nov 04, 2021. Version 12.14.0 / 13.10.0 / 14.6.0 / 15.4.0 / 16.3.0
  ====================================================================================*/

#include "ivas_cnst.h"
#include <assert.h>
#include <stdint.h>
#include "options.h"
@@ -140,7 +141,11 @@ void initFdCngCom(
    hFdCngCom->msMinBufferPtr = 0;
    set_f( hFdCngCom->msAlphaCor, 0.3f, 2 );

#ifdef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG
    set_f( hFdCngCom->coherence, 0.5f, MDCT_ST_DTX_NUM_COHERENCE_BANDS );
#else
    hFdCngCom->coherence = 0.5f;
#endif

    return;
}
+5 −0
Original line number Diff line number Diff line
@@ -852,6 +852,11 @@ enum fea_names
#define MDCT_ST_PLC_FADEOUT_TO_ZERO_LEN         20
#define MDCT_ST_PLC_FADEOUT_DELAY_4_LSP_FADE    3

#ifdef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG
#define MDCT_ST_DTX_NUM_COHERENCE_BANDS         5
#define MDCT_ST_DTX_FIRST_BAND_OFFSET           2
#endif

typedef enum {
    NOISE_GEN_MODE_UNDEF = -1,
    EQUAL_CORES = 0,
+2 −1
Original line number Diff line number Diff line
@@ -799,11 +799,12 @@ Word16 matrix_product_q30_fx(
    Word32 *Z_fx          /* o  : resulting matrix after the matrix multiplication                                       Q30*/
);

#ifndef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG
void dtx_read_padding_bits(
    DEC_CORE_HANDLE st,
    const int16_t num_bits 
);

#endif
void ivas_apply_non_diegetic_panning( 
    float *input_f,                                             /* i  : non-diegetic object                                         */
    float *output_f[],                                          /* o  : core-coder transport mono channel/stereo output             */
+6 −0
Original line number Diff line number Diff line
@@ -793,6 +793,12 @@ const float nf_tw_smoothing_coeffs[N_LTP_GAIN_MEMS] =
    0.4f,0.2f,0.2f,0.2f
};
#ifdef NONBE_MDCT_ST_DTX_FIX_SUBOPT_SPATIAL_CNG
const int16_t mdct_stereo_dtx_coherence_bandlengths[MDCT_ST_DTX_NUM_COHERENCE_BANDS] = {
    6, /* 8 - MDCT_ST_DTX_FIRST_BAND_OFFSET */ 8, 16, 16, 80
};
#endif
/*----------------------------------------------------------------------------------*
 * Stereo DTX tables
Loading