1*15dc779aSAndroid Build Coastguard Worker /****************************************************************************** 2*15dc779aSAndroid Build Coastguard Worker * * 3*15dc779aSAndroid Build Coastguard Worker * Copyright (C) 2023 The Android Open Source Project 4*15dc779aSAndroid Build Coastguard Worker * 5*15dc779aSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 6*15dc779aSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 7*15dc779aSAndroid Build Coastguard Worker * You may obtain a copy of the License at: 8*15dc779aSAndroid Build Coastguard Worker * 9*15dc779aSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 10*15dc779aSAndroid Build Coastguard Worker * 11*15dc779aSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 12*15dc779aSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 13*15dc779aSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*15dc779aSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 15*15dc779aSAndroid Build Coastguard Worker * limitations under the License. 16*15dc779aSAndroid Build Coastguard Worker * 17*15dc779aSAndroid Build Coastguard Worker ***************************************************************************** 18*15dc779aSAndroid Build Coastguard Worker * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19*15dc779aSAndroid Build Coastguard Worker */ 20*15dc779aSAndroid Build Coastguard Worker 21*15dc779aSAndroid Build Coastguard Worker #pragma once 22*15dc779aSAndroid Build Coastguard Worker typedef struct { 23*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_configuration_long psy_conf_long; 24*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_configuration_short psy_conf_short; 25*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_data *psy_data[IXHEAACE_MAX_CH_IN_BS_ELE]; 26*15dc779aSAndroid Build Coastguard Worker ixheaace_temporal_noise_shaping_data *temporal_noise_shaping_data[IXHEAACE_MAX_CH_IN_BS_ELE]; 27*15dc779aSAndroid Build Coastguard Worker FLOAT32 *p_scratch_tns_float; 28*15dc779aSAndroid Build Coastguard Worker } ixheaace_psy_kernel; 29*15dc779aSAndroid Build Coastguard Worker 30*15dc779aSAndroid Build Coastguard Worker WORD32 ia_enhaacplus_enc_psy_new(ixheaace_psy_kernel *pstr_h_psy, WORD32 num_chan, 31*15dc779aSAndroid Build Coastguard Worker WORD32 *ptr_shared_buffer_2, WORD32 frame_len_long); 32*15dc779aSAndroid Build Coastguard Worker 33*15dc779aSAndroid Build Coastguard Worker IA_ERRORCODE ia_enhaacplus_enc_psy_main_init(ixheaace_psy_kernel *pstr_h_psy, WORD32 sample_rate, 34*15dc779aSAndroid Build Coastguard Worker WORD32 bit_rate, WORD32 channels, WORD32 tns_mask, 35*15dc779aSAndroid Build Coastguard Worker WORD32 bandwidth, WORD32 aot, 36*15dc779aSAndroid Build Coastguard Worker ixheaace_aac_tables *pstr_aac_tables, 37*15dc779aSAndroid Build Coastguard Worker WORD32 frame_length); 38*15dc779aSAndroid Build Coastguard Worker 39*15dc779aSAndroid Build Coastguard Worker IA_ERRORCODE ia_enhaacplus_enc_psy_main( 40*15dc779aSAndroid Build Coastguard Worker WORD32 time_sn_stride, /* total number of channels */ 41*15dc779aSAndroid Build Coastguard Worker ixheaace_element_info *pstr_elem_info, const FLOAT32 *ptr_time_signal, WORD32 aot, 42*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_data **psy_data, 43*15dc779aSAndroid Build Coastguard Worker ixheaace_temporal_noise_shaping_data **tns_data, 44*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_configuration_long *pstr_psy_conf_long, 45*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_configuration_short *pstr_psy_conf_short, 46*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_out_channel **psy_out_ch, 47*15dc779aSAndroid Build Coastguard Worker ixheaace_psy_out_element *pstr_psy_out_element, FLOAT32 *ptr_scratch_tns, 48*15dc779aSAndroid Build Coastguard Worker FLOAT32 *ptr_shared_buffer1, WORD8 *ptr_shared_buffer5, ixheaace_aac_tables *pstr_aac_tables, 49*15dc779aSAndroid Build Coastguard Worker WORD32 frame_len_long); 50