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_ACELP_INFO_H 21 #define IXHEAACD_ACELP_INFO_H 22 23 typedef struct { 24 WORD32 acelp_core_mode; 25 WORD32 mod[NUM_FRAMES]; 26 27 WORD32 fac[NUM_FRAMES * FAC_LENGTH]; 28 WORD32 fac_data[FAC_LENGTH + 1]; 29 WORD32 mean_energy[NUM_FRAMES]; 30 WORD32 acb_index[NUM_SUBFR_SUPERFRAME]; 31 WORD32 noise_factor[NUM_FRAMES]; 32 WORD32 global_gain[NUM_FRAMES]; 33 WORD32 arith_reset_flag; 34 WORD32 x_tcx_invquant[LEN_SUPERFRAME]; 35 WORD32 tcx_lg[4 * NUM_FRAMES]; 36 WORD32 ltp_filtering_flag[NUM_SUBFR_SUPERFRAME]; 37 WORD32 icb_index[NUM_SUBFR_SUPERFRAME][8]; 38 WORD32 gains[NUM_SUBFR_SUPERFRAME]; 39 WORD32 mode_lpc[NUM_FRAMES]; 40 WORD32 lpc_first_approx_idx[110]; 41 FLOAT32 lsp_coeff[5][ORDER]; 42 FLOAT32 lsf_adaptive_mean_cand[ORDER]; 43 FLOAT32 lsf_adaptive_mean[ORDER]; 44 FLOAT32 lpc4_lsf[ORDER]; 45 } ia_td_frame_data_struct; 46 47 typedef struct { 48 WORD32 islong; 49 WORD32 max_win_len; 50 WORD32 samp_per_bk; 51 WORD32 sfb_per_bk; 52 WORD32 bins_per_sbk; 53 WORD32 sfb_per_sbk; 54 55 const WORD16 *ptr_sfb_tbl; 56 pWORD16 sfb_width; 57 WORD16 sfb_idx_tbl[125]; 58 WORD32 num_groups; 59 WORD16 group_len[8]; 60 61 } ia_sfb_info_struct; 62 63 #endif 64