Commit 83c367f3 authored by vaclav's avatar vaclav
Browse files

revision of *_close() functions

parent cd731c72
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -174,8 +174,7 @@ ivas_error ivas_fb_set_cfg(
ivas_error ivas_FB_mixer_open(
    IVAS_FB_MIXER_HANDLE *hFbMixer_out, /* i/o: FB mixer handle           */
    const int32_t sampling_rate,        /* i  : sampling rate             */
    IVAS_FB_CFG *fb_cfg                 /* i  : FB config. handle         */
    ,
    IVAS_FB_CFG *fb_cfg,                /* i  : FB config. handle         */
    const int16_t spar_reconfig_flag    /* i  : SPAR reconfiguration flag */
)
{
@@ -361,8 +360,7 @@ ivas_error ivas_FB_mixer_open(

void ivas_FB_mixer_close(
    IVAS_FB_MIXER_HANDLE *hFbMixer_in, /* i/o: FB mixer handle              */
    const int32_t sampling_rate        /* i  : sampling rate in Hz          */
    ,
    const int32_t sampling_rate,       /* i  : sampling rate in Hz          */
    const int16_t spar_reconfig_flag   /* i  : SPAR reconfiguration flag    */
)
{
+0 −1
Original line number Diff line number Diff line
@@ -141,7 +141,6 @@ void ivas_param_mc_metadata_open(
        ivas_param_mc_default_icc_map( hMetadataPMC->icc_mapping_conf, hMetadataPMC->icc_mapping[i] );
    }


    /* init remaining flags and indices */
    hMetadataPMC->param_frame_idx = 0;
    hMetadataPMC->flag_use_adaptive_icc_map = 0;
+21 −26
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ void destroy_cpe_enc(
);

void ivas_mct_enc_close(
    MCT_ENC_HANDLE hMCT                                         /* i/o: MCT encoder structure                   */
    MCT_ENC_HANDLE *hMCT                                        /* i/o: MCT encoder structure                   */
);

ivas_error ivas_corecoder_enc_reconfig(
@@ -289,7 +289,7 @@ ivas_error stereo_dmx_evs_init_encoder(
);

void stereo_dmx_evs_close_encoder(
    STEREO_DMX_EVS_ENC_HANDLE hStereoDmxEVS                     /* i/o: Stereo downmix for EVS encoder handle   */
    STEREO_DMX_EVS_ENC_HANDLE *hStereoDmxEVS                    /* i/o: Stereo downmix for EVS encoder handle   */
);

ivas_error ivas_dec(
@@ -499,8 +499,7 @@ void stereo_tcx_core_dec(
    const int16_t last_element_mode,                            /* i  : last element mode                       */
    const int16_t flag_sec_CNA,                                 /* i  : CNA flag for secondary channel          */
    STEREO_CNG_DEC_HANDLE hStereoCng,                           /* i  : Stereo CNG handle                       */
    const int16_t nchan_out                                     /* i  : number of output channels               */
    ,
    const int16_t nchan_out,                                    /* i  : number of output channels               */
    const IVAS_FORMAT ivas_format,                              /* i  : IVAS format                             */
    const ISM_MODE ism_mode                                     /* i  : ISM mode (only needed if format is ISM) */
);
@@ -860,7 +859,7 @@ void ivas_param_ism_enc(
);

void ivas_param_ism_enc_close(
    DIRAC_ENC_HANDLE hDirAC,                                    /* i/o: encoder DirAC handle                        */
    DIRAC_ENC_HANDLE *hDirAC,                                   /* i/o: encoder DirAC handle                        */
    const int32_t input_Fs                                      /* i  : input sampling_rate                         */
);

@@ -888,7 +887,7 @@ ivas_error ivas_param_ism_dec_open(
);

void ivas_param_ism_dec_close(
    DIRAC_DEC_HANDLE hDirAC,                                    /* i/o: decoder DirAC handle                        */
    DIRAC_DEC_HANDLE *hDirAC,                                   /* i/o: decoder DirAC handle                        */
    const AUDIO_CONFIG output_config                            /* i  : output audio configuration                  */
);

@@ -3244,7 +3243,7 @@ ivas_error ivas_dirac_enc_reconfigure(
);

void ivas_dirac_enc_close(
    DIRAC_ENC_HANDLE hDirAC,                                    /* i/o: encoder DirAC handle                    */
    DIRAC_ENC_HANDLE *hDirAC,                                   /* i/o: encoder DirAC handle                    */
    const int32_t input_Fs                                      /* i  : input sampling_rate                     */
);

@@ -3296,7 +3295,7 @@ ivas_error ivas_dirac_dec_config(
);

void ivas_dirac_dec_close(
    DIRAC_DEC_HANDLE hDirAC                                     /* i/o: decoder DirAC handle                    */
    DIRAC_DEC_HANDLE *hDirAC                                    /* i/o: decoder DirAC handle                    */
);

void ivas_dirac_dec_read_BS(
@@ -3524,7 +3523,7 @@ ivas_error ivas_param_mc_enc_reconfig(
);

void ivas_param_mc_enc_close(
    PARAM_MC_ENC_HANDLE hParamMC,                               /* i/o: Parametric MC encoder handle                        */
    PARAM_MC_ENC_HANDLE *hParamMC,                              /* i/o: Parametric MC encoder handle                        */
    const int32_t input_Fs                                      /* i  : input sampling rate                                 */
);

@@ -3758,10 +3757,10 @@ ivas_error ivas_spar_enc_open(
);

void ivas_spar_enc_close(
    SPAR_ENC_HANDLE hSpar,                                      /* i/o: SPAR encoder handle                     */
    SPAR_ENC_HANDLE *hSpar,                                     /* i/o: SPAR encoder handle                     */
    const int32_t input_Fs,                                     /* i  : input sampling rate                     */
    const int16_t nchan_inp                                     /* i  : number of input channels                */
   ,const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag               */
    const int16_t nchan_inp,                                    /* i  : number of input channels                */
    const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag               */
);

ivas_error ivas_spar_enc(
@@ -3773,15 +3772,13 @@ ivas_error ivas_spar_enc(
);

ivas_error ivas_spar_dec_open(
    Decoder_Struct *st_ivas                                     /* i/o: IVAS decoder handle                     */
    ,
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder handle                     */
    const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag               */
);

void ivas_spar_dec_close(
    SPAR_DEC_HANDLE hSpar,                                      /* i/o: SPAR decoder handle                     */
    const int32_t output_Fs                                     /* i  : output sampling rate                    */
    ,
    SPAR_DEC_HANDLE *hSpar,                                     /* i/o: SPAR decoder handle                     */
    const int32_t output_Fs,                                    /* i  : output sampling rate                    */
    const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag               */
);

@@ -4429,7 +4426,7 @@ ivas_error ivas_masa_dec_open(
);

void ivas_masa_dec_close(
    MASA_DECODER_HANDLE hMasa                                   /* i/o: MASA metadata structure                         */
    MASA_DECODER_HANDLE *hMasa                                  /* i/o: MASA metadata structure                         */
);

ivas_error ivas_masa_decode(
@@ -4447,7 +4444,7 @@ ivas_error ivas_masa_enc_open(
);

void ivas_masa_enc_close(
    MASA_ENCODER_HANDLE hMasa                                  /* i/o: MASA metadata structure                         */
    MASA_ENCODER_HANDLE *hMasa                                 /* i/o: MASA metadata structure                         */
 #ifndef FIX_350_MASA_DELAY_COMP
    ,
    const int16_t nchan_transport,                              /* i  : Number of transport channels                    */
@@ -4735,7 +4732,7 @@ ivas_error ivas_mcmasa_enc_open(
);

void ivas_mcmasa_enc_close(
    MCMASA_ENC_HANDLE hMcMasa,                                  /* i/o: encoder McMASA handle                           */
    MCMASA_ENC_HANDLE *hMcMasa,                                 /* i/o: encoder McMASA handle                           */
    const int32_t input_Fs                                      /* i  : input sampling rate                             */
);

@@ -4858,7 +4855,7 @@ ivas_error ivas_create_lfe_enc(
);

void ivas_lfe_enc_close( 
    LFE_ENC_HANDLE hLFE                                         /* i/o: LFE encoder handle                      */
    LFE_ENC_HANDLE *hLFE                                        /* i/o: LFE encoder handle                      */
);

void ivas_lfe_enc(
@@ -4875,7 +4872,7 @@ ivas_error ivas_create_lfe_dec(
);

void ivas_lfe_dec_close( 
    LFE_DEC_HANDLE hLFE                                         /* i/o: LFE encoder handle                      */
    LFE_DEC_HANDLE *hLFE                                        /* i/o: LFE encoder handle                      */
);

void ivas_lfe_dec(
@@ -4950,15 +4947,13 @@ ivas_error ivas_fb_set_cfg(
ivas_error ivas_FB_mixer_open( 
    IVAS_FB_MIXER_HANDLE *hFbMixer,                             /* i/o: FB mixer handle                             */
    const int32_t sampling_rate,                                /* i  : sampling rate                               */
    IVAS_FB_CFG *fb_cfg                                         /* i  : FB config. handle                           */
    ,
    IVAS_FB_CFG *fb_cfg,                                        /* i  : FB config. handle                           */
    const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag                   */
);

void ivas_FB_mixer_close( 
    IVAS_FB_MIXER_HANDLE *hFbMixer,                             /* i/o: FB mixer handle                             */
    const int32_t sampling_rate                                 /* i  : sampling rate in Hz                         */
    ,
    const int32_t sampling_rate,                                /* i  : sampling rate in Hz                         */
    const int16_t spar_reconfig_flag                            /* i  : SPAR reconfiguration flag                   */
);

+6 −8
Original line number Diff line number Diff line
@@ -2228,8 +2228,7 @@ ivas_error init_encoder(
    const int16_t idchan,            /* i  : channel ID                             */
    const int16_t var_SID_rate_flag, /* i  : flag for variable SID update rate      */
    const int16_t interval_SID,      /* i  : interval for SID update                */
    const int16_t vad_only_flag      /* i  : flag to indicate front-VAD structure   */
    ,
    const int16_t vad_only_flag,     /* i  : flag to indicate front-VAD structure   */
    const ISM_MODE ism_mode          /* i  : ISM mode                               */
);

@@ -8521,8 +8520,7 @@ void generate_comfort_noise_dec(
void generate_comfort_noise_dec_hf(
    float **bufferReal,          /* o  : Real part of input bands                                */
    float **bufferImag,          /* o  : Imaginary part of input bands                           */
    HANDLE_FD_CNG_COM hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables   */
    ,
    HANDLE_FD_CNG_COM hFdCngCom, /* i/o: FD_CNG structure containing all buffers and variables   */
    const int16_t cng_flag       /*i  : CNG Flag                                                 */
);

+4 −5
Original line number Diff line number Diff line
@@ -1330,8 +1330,7 @@ void generate_comfort_noise_dec(
void generate_comfort_noise_dec_hf(
    float **bufferReal,          /* o  : Real part of input bands      */
    float **bufferImag,          /* o  : Imaginary part of input bands */
    HANDLE_FD_CNG_COM hFdCngCom /* i/o: FD_CNG structure containing all buffers and variables   */
    ,
    HANDLE_FD_CNG_COM hFdCngCom, /* i/o: FD_CNG structure containing all buffers and variables   */
    const int16_t cng_coh_flag   /* i  : CNG Flag for coherence handling */
)
{
Loading