• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef IXHEAACD_MPS_RES_ROM_H
21 #define IXHEAACD_MPS_RES_ROM_H
22 
23 typedef struct {
24   WORD32 pow_table_q17[129];
25   WORD32 scale_table[4];
26   WORD32 scale_table_960[4];
27   WORD8 tns_max_bands_tbl[12][2];
28   WORD16 tns_coeff3_16[8];
29   WORD16 tns_coeff4_16[16];
30 } ia_mps_dec_res_block_tables_struct;
31 
32 extern const ia_mps_dec_res_block_tables_struct ixheaacd_mps_dec_res_block_tables;
33 
34 typedef struct {
35   WORD8 sfb_96_1024[42 + 1];
36   WORD8 sfb_96_128[13 + 1];
37   WORD8 sfb_64_1024[48 + 1];
38   WORD8 sfb_48_1024[50 + 1];
39   WORD8 sfb_48_128[15 + 1];
40   WORD8 sfb_32_1024[52 + 1];
41   WORD8 sfb_24_1024[48 + 1];
42   WORD8 sfb_24_128[16 + 1];
43   WORD8 sfb_16_1024[44 + 1];
44   WORD8 sfb_16_128[16 + 1];
45   WORD8 sfb_8_1024[41 + 1];
46   WORD8 sfb_8_128[16 + 1];
47   WORD8 sfb_96_960[40 + 1];
48   WORD8 sfb_96_120[12 + 1];
49   WORD8 sfb_64_960[46 + 1];
50   WORD8 sfb_48_960[49 + 1];
51   WORD8 sfb_48_120[14 + 1];
52   WORD8 sfb_24_960[46 + 1];
53   WORD8 sfb_24_120[15 + 1];
54   WORD8 sfb_16_960[42 + 1];
55   WORD8 sfb_16_120[15 + 1];
56   WORD8 sfb_8_960[40 + 1];
57   WORD8 sfb_8_120[15 + 1];
58 
59   UWORD16 huffman_code_book_1[108];
60   UWORD16 huffman_code_book_2[110];
61   UWORD16 huffman_code_book_3[136];
62   UWORD16 huffman_code_book_4[116];
63   UWORD16 huffman_code_book_5[126];
64   UWORD16 huffman_code_book_6[120];
65   UWORD16 huffman_code_book_7[112];
66   UWORD16 huffman_code_book_8[92];
67   UWORD16 huffman_code_book_9[236];
68   UWORD16 huffman_code_book_10[218];
69   UWORD16 huffman_codebook_11[344];
70   UWORD16 huffman_code_book_scl[273];
71 
72 } ia_mps_dec_res_huffmann_tables_struct;
73 
74 extern const ia_mps_dec_res_huffmann_tables_struct ixheaacd_mps_dec_res_huffmann_tables;
75 
76 typedef struct {
77   ia_mps_dec_res_block_tables_struct *res_block_tables_ptr;
78   ia_mps_dec_res_huffmann_tables_struct *res_huffmann_tables_ptr;
79   WORD8 *scale_factor_bands_long[24];
80   WORD8 *scale_factor_bands_short[24];
81   WORD16 *sfb_index_long;
82   WORD16 *sfb_index_short;
83   WORD8 *sfb_index_long_width;
84   WORD8 *sfb_index_short_width;
85   UWORD16 *code_book[13];
86 
87 } ia_mps_dec_residual_aac_tables_struct;
88 
89 #endif /* IXHEAACD_MPS_RES_ROM_H */
90