• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *                                                                            *
3  * Copyright (C) 2018 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 #ifndef IXHEAACD_ADTS_H
21 #define IXHEAACD_ADTS_H
22 
23 typedef struct {
24   WORD16 sync_word;
25   WORD32 id;
26   WORD32 layer;
27   WORD32 protection_absent;
28   WORD32 profile;
29   WORD32 samp_freq_index;
30   WORD32 channel_configuration;
31   WORD16 aac_frame_length;
32   WORD32 no_raw_data_blocks;
33   WORD32 crc_check;
34 } ia_adts_header_struct;
35 
36 WORD32 ixheaacd_find_syncword(ia_adts_header_struct *adts,
37                               struct ia_bit_buf_struct *it_bit_buff);
38 
39 WORD32 ixheaacd_adtsframe(ia_adts_header_struct *adts,
40                           struct ia_bit_buf_struct *it_bit_buff);
41 
42 WORD32 ixheaacd_check_if_adts(ia_adts_header_struct *adts,
43                               struct ia_bit_buf_struct *it_bit_buff,
44                               WORD32 usr_max_ch);
45 
46 #endif /* IXHEAACD_ADTS_H */
47