aboutsummaryrefslogtreecommitdiff
path: root/encoder/ixheaace_asc_write.h
blob: 32f4eb1e64a581c826cc854eca7426655808dbae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/******************************************************************************
 *                                                                            *
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *****************************************************************************
 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
 */

#pragma once

typedef struct {
  WORD32 audio_object_type;
  UWORD32 samp_freq_index;
  UWORD32 sampling_frequency;
  WORD32 core_sbr_framelength_index;
  UWORD32 channel_configuration;
  UWORD32 ext_audio_object_type;
  UWORD32 ext_samp_freq_index;
  UWORD32 ext_sampling_frequency;
  WORD32 num_audio_channels;
  WORD32 output_channel_pos[BS_MAX_NUM_OUT_CHANNELS];
  WORD32 sbr_present_flag;
  WORD32 cfg_ext_present;
  WORD32 ext_sync_word;
  ia_usac_config_struct str_usac_config;
  ia_aace_config_struct str_aac_config;
} ixheaace_audio_specific_config_struct;

WORD32 ixheaace_get_audiospecific_config_bytes(
    ia_bit_buf_struct *pstr_it_bit_buff,
    ixheaace_audio_specific_config_struct *pstr_audio_specific_config, WORD32 aot,
    WORD32 ccfl_idx);

WORD32 ixheaace_get_usac_config_bytes(
    ia_bit_buf_struct *pstr_it_bit_buff,
    ixheaace_audio_specific_config_struct *pstr_audio_specific_config, WORD32 ccfl_idx);