Home | History | Annotate | Download | only in drc_src
      1 /******************************************************************************
      2  *
      3  * Copyright (C) 2015 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_UNI_BITSTREAM_DEC_API_H
     21 #define IMPD_DRC_UNI_BITSTREAM_DEC_API_H
     22 
     23 WORD32 impd_init_drc_bitstream_dec(
     24     ia_drc_bits_dec_struct* p_uni_drc_bs_dec_struct, WORD32 sample_rate,
     25     WORD32 frame_size, WORD32 delay_mode, WORD32 lfe_channel_map_count,
     26     WORD32* lfe_channel_map);
     27 
     28 WORD32 impd_process_drc_bitstream_dec(
     29     ia_drc_bits_dec_struct* p_uni_drc_bs_dec_struct,
     30     ia_bit_buf_struct* it_bit_buff, ia_drc_config* pstr_drc_config,
     31     ia_drc_loudness_info_set_struct* pstr_loudness_info,
     32     UWORD8* bitstream_config, WORD32 num_bytes, WORD32 num_bits_offset,
     33     WORD32* num_bits_read);
     34 
     35 WORD32 impd_process_drc_bitstream_dec_config(
     36     ia_drc_bits_dec_struct* p_uni_drc_bs_dec_struct,
     37     ia_bit_buf_struct* it_bit_buff, ia_drc_config* pstr_drc_config,
     38     UWORD8* bitstream_config, WORD32 num_bytes);
     39 
     40 WORD32 impd_process_drc_bitstream_dec_gain(
     41     ia_drc_bits_dec_struct* p_uni_drc_bs_dec_struct,
     42     ia_bit_buf_struct* it_bit_buff, ia_drc_config* pstr_drc_config,
     43     ia_drc_gain_struct* pstr_drc_gain, UWORD8* bitstream_gain, WORD32 num_bytes,
     44     WORD32 num_bits_offset, WORD32* num_bits_read);
     45 
     46 WORD32 impd_process_drc_bitstream_dec_loudness_info_set(
     47     ia_drc_bits_dec_struct* p_uni_drc_bs_dec_struct,
     48     ia_bit_buf_struct* it_bit_buff,
     49     ia_drc_loudness_info_set_struct* pstr_loudness_info,
     50     UWORD8* bitstream_loudness, WORD32 num_bytes_loudness);
     51 #endif
     52