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_mps_struct mps_encoder_instance; 24*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_space_structure mp4_space_encoder_instance; 25*15dc779aSAndroid Build Coastguard Worker UWORD8 parameter_band_2_hybrid_band_offset[MAX_HYBRID_BAND_OFFSET]; 26*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_pstr_qmf_filter_bank pstr_qmf_filter_bank[IXHEAACE_MPS_MAX_INPUT_CHANNELS]; 27*15dc779aSAndroid Build Coastguard Worker UWORD8 ssc[MAX_SSC_BYTES]; 28*15dc779aSAndroid Build Coastguard Worker FLOAT32 frame_window_ana_flt[MAX_NUM_PARAMS][MAX_ANA_TIME_SLOT]; 29*15dc779aSAndroid Build Coastguard Worker WORD32 n_output_bits[MAX_BITSTREAM_DELAY]; 30*15dc779aSAndroid Build Coastguard Worker 31*15dc779aSAndroid Build Coastguard Worker FLOAT32 ptr_filter_states[IXHEAACE_MPS_MAX_INPUT_CHANNELS][2 * 5 * MAX_QMF_BANDS]; 32*15dc779aSAndroid Build Coastguard Worker 33*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_qmf_filter_bank qmf_filter_bank[IXHEAACE_MPS_MAX_INPUT_CHANNELS]; 34*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_space_tree spacce_tree; 35*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_tto_box tto_box; 36*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_onset_detect onset_detect[IXHEAACE_MPS_MAX_INPUT_CHANNELS]; 37*15dc779aSAndroid Build Coastguard Worker FLOAT32 energy_hist_float[IXHEAACE_MPS_MAX_INPUT_CHANNELS][16 + MAX_FRAME_TIME_SLOT]; 38*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_static_gain_config static_gain_config; 39*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_static_gain static_gain; 40*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_frame_win frame_window; 41*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_delay delay; 42*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_enhanced_time_domain_dmx enhanced_time_dmx; 43*15dc779aSAndroid Build Coastguard Worker FLOAT32 sinus_window_flt[4 * (MPS_MAX_FRAME_LENGTH + 1)]; 44*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_bsf_instance bitstream; 45*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_dc_filter dc_filter[IXHEAACE_MPS_MAX_INPUT_CHANNELS]; 46*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_enc_config_setup setup; 47*15dc779aSAndroid Build Coastguard Worker } ixheaace_mps_212_memory_struct; 48*15dc779aSAndroid Build Coastguard Worker 49*15dc779aSAndroid Build Coastguard Worker typedef struct { 50*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_sac_enc spatial_enc_instance; 51*15dc779aSAndroid Build Coastguard Worker ixheaace_mps_sac_bsf_instance bsf_memory_instance; 52*15dc779aSAndroid Build Coastguard Worker } ixheaace_mps_515_memory_struct; 53