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