xref: /aosp_15_r20/external/libxaac/encoder/ixheaace_common_rom.h (revision 15dc779a375ca8b5125643b829a8aa4b70d7f451)
1*15dc779aSAndroid Build Coastguard Worker /******************************************************************************
2*15dc779aSAndroid Build Coastguard Worker  *                                                                            *
3*15dc779aSAndroid Build Coastguard Worker  * Copyright (C) 2023 The Android Open Source Project
4*15dc779aSAndroid Build Coastguard Worker  *
5*15dc779aSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
6*15dc779aSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
7*15dc779aSAndroid Build Coastguard Worker  * You may obtain a copy of the License at:
8*15dc779aSAndroid Build Coastguard Worker  *
9*15dc779aSAndroid Build Coastguard Worker  * http://www.apache.org/licenses/LICENSE-2.0
10*15dc779aSAndroid Build Coastguard Worker  *
11*15dc779aSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
12*15dc779aSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
13*15dc779aSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*15dc779aSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
15*15dc779aSAndroid Build Coastguard Worker  * limitations under the License.
16*15dc779aSAndroid Build Coastguard Worker  *
17*15dc779aSAndroid Build Coastguard Worker  *****************************************************************************
18*15dc779aSAndroid Build Coastguard Worker  * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
19*15dc779aSAndroid Build Coastguard Worker  */
20*15dc779aSAndroid Build Coastguard Worker 
21*15dc779aSAndroid Build Coastguard Worker #pragma once
22*15dc779aSAndroid Build Coastguard Worker 
23*15dc779aSAndroid Build Coastguard Worker typedef struct {
24*15dc779aSAndroid Build Coastguard Worker   const WORD32 sqrt_tab[513];
25*15dc779aSAndroid Build Coastguard Worker   const WORD32 sine_array[3];
26*15dc779aSAndroid Build Coastguard Worker   const WORD32 cosine_array[3];
27*15dc779aSAndroid Build Coastguard Worker   const FLOAT32 sin_arr[3];
28*15dc779aSAndroid Build Coastguard Worker   const FLOAT32 cos_arr[3];
29*15dc779aSAndroid Build Coastguard Worker   const WORD32 power_of_2_table_pos[256];
30*15dc779aSAndroid Build Coastguard Worker   const WORD32 power_of_2_table_neg[256];
31*15dc779aSAndroid Build Coastguard Worker   const WORD32 log_natural_Q25[128];
32*15dc779aSAndroid Build Coastguard Worker   const WORD32 sfb_width_pow_point_25_Q28[25];
33*15dc779aSAndroid Build Coastguard Worker   const short ia_enhaacplus_enc_w1024[768];
34*15dc779aSAndroid Build Coastguard Worker } ixheaace_common_tables;
35*15dc779aSAndroid Build Coastguard Worker 
36*15dc779aSAndroid Build Coastguard Worker extern const ixheaace_common_tables ia_enhaacplus_enc_common_tab;
37*15dc779aSAndroid Build Coastguard Worker 
38*15dc779aSAndroid Build Coastguard Worker typedef struct {
39*15dc779aSAndroid Build Coastguard Worker   ixheaace_common_tables *pstr_common_tab;
40*15dc779aSAndroid Build Coastguard Worker } ixheaace_comm_tables;
41*15dc779aSAndroid Build Coastguard Worker 
42*15dc779aSAndroid Build Coastguard Worker extern const FLOAT64 ia_enhaacplus_enc_twiddle_table_3pr[1155];
43*15dc779aSAndroid Build Coastguard Worker 
44*15dc779aSAndroid Build Coastguard Worker extern const FLOAT64 ia_enhaacplus_enc_twiddle_table_3pi[1155];
45*15dc779aSAndroid Build Coastguard Worker 
46*15dc779aSAndroid Build Coastguard Worker extern const FLOAT64 ia_enhaacplus_enc_twiddle_table_fft_32x32[514];
47*15dc779aSAndroid Build Coastguard Worker 
48*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ia_enhaacplus_enc_fft240_table1[240];
49*15dc779aSAndroid Build Coastguard Worker 
50*15dc779aSAndroid Build Coastguard Worker extern const WORD32 ia_enhaacplus_enc_fft240_table2[240];
51*15dc779aSAndroid Build Coastguard Worker 
52*15dc779aSAndroid Build Coastguard Worker extern const UWORD32 ia_sampl_freq_table[16];
53*15dc779aSAndroid Build Coastguard Worker 
54*15dc779aSAndroid Build Coastguard Worker extern const UWORD32 ia_usac_sampl_freq_table[32];
55