Home | History | Annotate | Download | only in drc_src
      1 /******************************************************************************
      2  *
      3  * Copyright (C) 2018 The Android Open Source Project
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at:
      8  *
      9  * http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  *
     17  *****************************************************************************
     18  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
     19 */
     20 #ifndef IMPD_DRC_DEC_H
     21 #define IMPD_DRC_DEC_H
     22 
     23 WORD32 impd_init_drc_params(WORD32 frame_size, WORD32 sample_rate,
     24                             WORD32 gain_delay_samples, WORD32 delay_mode,
     25                             WORD32 sub_band_domain_mode,
     26                             ia_drc_params_struct* ia_drc_params_struct);
     27 
     28 WORD32 impd_init_selected_drc_set(
     29     ia_drc_config* drc_config, ia_drc_params_struct* ia_drc_params_struct,
     30     ia_parametric_drc_params_struct* p_parametricdrc_params,
     31     WORD32 audio_num_chan, WORD32 drc_set_id_selected,
     32     WORD32 downmix_id_selected, ia_filter_banks_struct* ia_filter_banks_struct,
     33     ia_overlap_params_struct* pstr_overlap_params
     34 
     35     ,
     36     shape_filter_block* shape_filter_block);
     37 
     38 WORD32 impd_apply_gains_and_add(
     39     ia_drc_instructions_struct* pstr_drc_instruction_arr,
     40     const WORD32 drc_instructions_index,
     41     ia_drc_params_struct* ia_drc_params_struct,
     42     ia_gain_buffer_struct* pstr_gain_buf,
     43     shape_filter_block shape_filter_block[], FLOAT32* deinterleaved_audio[],
     44 
     45     FLOAT32* channel_audio[], WORD32 impd_apply_gains);
     46 
     47 #endif
     48