Commit 34e5db39 authored by multrus's avatar multrus
Browse files

[cleanup] accept BE_FIX_887_GCC_WARNING_ARRAY_SIZE

parent 7abcc8a4
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -189,17 +189,10 @@ ivas_error pre_proc_front_ivas(
    const float tdm_lsp_new_PCh[M],                             /* i  : unq. LSPs of primary channel               */
    const float currFlatness,                                   /* i  : flatness parameter                         */
    const int16_t tdm_ratio_idx,                                /* i  : Current Ratio_L index                      */ 
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    float fr_bands_LR[][2 * NB_BANDS],                          /* i  : energy in frequency bands                  */
    const float Etot_LR[],                                      /* i  : total energy Left & Right channel          */
    float lf_E_LR[][2 * VOIC_BINS],                             /* i  : per bin spectrum energy in lf, LR channels */
    const int16_t localVAD_HE_SAD_LR[],                         /* i  : HE-SAD flag without hangover, LR channels  */
#else
    float fr_bands_LR[CPE_CHANNELS][2 * NB_BANDS],              /* i  : energy in frequency bands                  */
    const float Etot_LR[CPE_CHANNELS],                          /* i  : total energy Left & Right channel          */
    float lf_E_LR[CPE_CHANNELS][2 * VOIC_BINS],                 /* i  : per bin spectrum energy in lf, LR channels */
    const int16_t localVAD_HE_SAD_LR[CPE_CHANNELS],             /* i  : HE-SAD flag without hangover, LR channels  */
#endif
    float band_energies_LR[2 * NB_BANDS],                       /* o  : energy in critical bands without minimum noise floor E_MIN      */
    const int16_t flag_16k_smc,                                 /* i  : flag to indicate if the OL SMC is run at 16 kHz */
    const int16_t front_vad_flag,                               /* i  : front-VAD flag to overwrite VAD decision   */
@@ -997,11 +990,7 @@ ivas_error ivas_ism_metadata_dec_create(

ivas_error ivas_ism_enc(
    Encoder_Struct *st_ivas,                                    /* i/o: IVAS encoder structure                      */
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    float *data[],                                             /* i  : input signal [channels][samples]            */
#else
    float *data[MAX_NUM_OBJECTS],                               /* i  : input signal                                */
#endif
    const int16_t input_frame,                                  /* i  : input frame length per channel              */
    int16_t *nb_bits_metadata,                                  /* i  : number of metadata bits                     */
    const int16_t flag_omasa_ener_brate                         /* i  : less bitrate for objects in OMASA flag      */
+0 −1
Original line number Diff line number Diff line
@@ -150,7 +150,6 @@
/*#define FIX_I4_OL_PITCH*/                             /* fix open-loop pitch used for EVS core switching */
/*#define SPLIT_REND_WITH_HEAD_ROT  */                  /* Dlb,FhG: Split Rendering contributions 21 and 35 */

#define BE_FIX_887_GCC_WARNING_ARRAY_SIZE               /* VoiceAge: Issue 887: change array size definition to avoid warning with gcc 11.4.0 */
#define FIX_247_EXTERNAL_RENDERER_COMMAND_LINE          /* VA: issue 247: harmonize command-line options names of external renderer with the decoder */
#define FIX_643_PCA_OPTION                              /* VA: issue 643: rename PCA bypass command-line option */

+0 −9
Original line number Diff line number Diff line
@@ -3249,19 +3249,10 @@ void long_enr(
    const float Etot,              /* i  : total channel energy                     */
    const int16_t localVAD_HE_SAD, /* i  : HE-SAD flag without hangover             */
    const int16_t high_lpn_flag,   /* i  : sp/mus LPN flag                          */
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    FRONT_VAD_ENC_HANDLE hFrontVad[], /* i/o: front-VAD handles                        */
#else
    FRONT_VAD_ENC_HANDLE hFrontVad[CPE_CHANNELS],   /* i/o: front-VAD handles                        */
#endif
    const int16_t n_chan, /* i  : number of channels                       */
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    const int16_t localVAD_HE_SAD_LR[], /* i  : HE-SAD flag without hangover LR channels */
    const float Etot_LR[]               /* i  : total channel energy LR channels         */
#else
    const int16_t localVAD_HE_SAD_LR[CPE_CHANNELS], /* i  : HE-SAD flag without hangover LR channels */
    const float Etot_LR[CPE_CHANNELS]               /* i  : total channel energy LR channels         */
#endif
);

void noise_est_pre(
+0 −7
Original line number Diff line number Diff line
@@ -98,17 +98,10 @@ ivas_error pre_proc_front_ivas(
    const float tdm_lsp_new_PCh[M],                            /* i  : unq. LSPs of primary channel            */
    const float currFlatness,                                  /* i  : flatness parameter                      */
    const int16_t tdm_ratio_idx,                               /* i  : Current Ratio_L index                   */
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    float fr_bands_LR[][2 * NB_BANDS],  /* i  : energy in frequency bands               */
    const float Etot_LR[],              /* i  : total energy Left & Right channel       */
    float lf_E_LR[][2 * VOIC_BINS],     /* i  : per bin spectrum energy in lf, LR channels */
    const int16_t localVAD_HE_SAD_LR[], /* i  : HE-SAD flag without hangover, LR channels  */
#else
    float fr_bands_LR[CPE_CHANNELS][2 * NB_BANDS],  /* i  : energy in frequency bands               */
    const float Etot_LR[CPE_CHANNELS],              /* i  : total energy Left & Right channel       */
    float lf_E_LR[CPE_CHANNELS][2 * VOIC_BINS],     /* i  : per bin spectrum energy in lf, LR channels */
    const int16_t localVAD_HE_SAD_LR[CPE_CHANNELS], /* i  : HE-SAD flag without hangover, LR channels  */
#endif
    float band_energies_LR[2 * NB_BANDS], /* o  : energy in critical bands without minimum noise floor E_MIN */
    const int16_t flag_16k_smc,           /* i  : flag to indicate if the OL SMC is run at 16 kHz */
    const int16_t front_vad_flag,         /* i  : front-VAD flag to overwrite VAD decision */
+0 −4
Original line number Diff line number Diff line
@@ -50,11 +50,7 @@

ivas_error ivas_ism_enc(
    Encoder_Struct *st_ivas, /* i/o: IVAS encoder structure          */
#ifdef BE_FIX_887_GCC_WARNING_ARRAY_SIZE
    float *data[], /* i  : input signal [channels][samples] */
#else
    float *data[MAX_NUM_OBJECTS], /* i  : input signal                    */
#endif
    const int16_t input_frame,          /* i  : input frame length per channel  */
    int16_t *nb_bits_metadata,          /* i  : number of metadata bits         */
    const int16_t flag_omasa_ener_brate /* i  : less bitrate for objects in OMASA flag */
Loading