Home | History | Annotate | Download | only in decoder
      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_COMMON_ROM_H
     21 #define IXHEAACD_COMMON_ROM_H
     22 
     23 #define LOG_2_TABLE_SIZE 65
     24 #define INV_TABLE_SIZE 256
     25 #define SQRT_TABLE_SIZE 256
     26 
     27 typedef struct {
     28   const WORD16 trig_data[513];
     29   const WORD16 sine_table8_16[8];
     30   const WORD16 log_dual_is_table[LOG_2_TABLE_SIZE];
     31 
     32   const WORD32 down_mix_martix[4][2][8];
     33   const WORD32 cc_gain_scale[4];
     34 
     35   WORD16 inv_table[INV_TABLE_SIZE];
     36   const WORD16 sqrt_table[SQRT_TABLE_SIZE + 1];
     37 
     38   WORD32 dummy;
     39   WORD32 start_band[10][16];
     40   WORD32 stop_band[10][16];
     41   WORD32 stop_freq_table_fs40k_2[14];
     42   WORD32 stop_freq_table_fs40k_4[14];
     43 } ixheaacd_misc_tables;
     44 
     45 extern const ixheaacd_misc_tables ixheaacd_str_fft_n_transcendent_tables;
     46 
     47 #endif
     48