xref: /aosp_15_r20/external/libxaac/encoder/ixheaace_asc_write.h (revision 15dc779a375ca8b5125643b829a8aa4b70d7f451)
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 
23 typedef struct {
24   WORD32 audio_object_type;
25   UWORD32 samp_freq_index;
26   UWORD32 sampling_frequency;
27   WORD32 core_sbr_framelength_index;
28   UWORD32 channel_configuration;
29   UWORD32 ext_audio_object_type;
30   UWORD32 ext_samp_freq_index;
31   UWORD32 ext_sampling_frequency;
32   WORD32 num_audio_channels;
33   WORD32 output_channel_pos[BS_MAX_NUM_OUT_CHANNELS];
34   WORD32 sbr_present_flag;
35   WORD32 cfg_ext_present;
36   WORD32 ext_sync_word;
37   ia_usac_config_struct str_usac_config;
38   ia_aace_config_struct str_aac_config;
39 } ixheaace_audio_specific_config_struct;
40 
41 WORD32 ixheaace_get_audiospecific_config_bytes(
42     ia_bit_buf_struct *pstr_it_bit_buff,
43     ixheaace_audio_specific_config_struct *pstr_audio_specific_config, WORD32 aot,
44     WORD32 ccfl_idx);
45 
46 WORD32 ixheaace_get_usac_config_bytes(
47     ia_bit_buf_struct *pstr_it_bit_buff,
48     ixheaace_audio_specific_config_struct *pstr_audio_specific_config, WORD32 ccfl_idx);