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 WORD32 b_dmx_align; 24 WORD32 b_minimize_delay; 25 WORD32 b_sac_time_alignment_dynamic_out; 26 27 WORD32 num_qmf_len; 28 WORD32 num_frame_len; 29 WORD32 n_surround_delay; 30 WORD32 n_arb_dmx_delay; 31 WORD32 n_limiter_delay; 32 WORD32 num_core_coder_delay; 33 WORD32 num_sac_stream_mux_delay; 34 WORD32 n_sac_time_alignment; 35 } ixheaace_mps_delay_config; 36 37 struct ixheaace_mps_delay { 38 ixheaace_mps_delay_config delay_config; 39 WORD32 num_dmx_align_buffer; 40 WORD32 num_surround_analysis_buffer; 41 WORD32 num_arb_dmx_analysis_buffer; 42 WORD32 num_output_audio_buffer; 43 WORD32 num_bitstream_frame_buffer; 44 WORD32 num_output_audio_qmf_frame_buffer; 45 WORD32 num_discard_out_frames; 46 WORD32 num_bitstream_frame_buffer_size; 47 WORD32 num_info_dmx_delay; 48 WORD32 num_info_codec_delay; 49 WORD32 num_info_decoder_delay; 50 }; 51 52 typedef struct ixheaace_mps_delay ixheaace_mps_delay, *ixheaace_mps_pstr_delay; 53 54 VOID ixheaace_mps_212_delay_sub_calculate_buffer_delays(ixheaace_mps_pstr_delay pstr_delay); 55