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_EC_STRUCT_DEF_H 21 #define IXHEAACD_EC_STRUCT_DEF_H 22 23 typedef struct { 24 WORD32 num_sfb_long; 25 WORD32 num_sfb_short; 26 WORD16 *ptr_sfb_long; 27 WORD16 *ptr_sfb_short; 28 } ia_ec_sfb_str; 29 30 typedef struct { 31 WORD32 prev_sfb_nrg[MAX_SFB_EC]; 32 WORD32 pres_sfb_nrg[MAX_SFB_EC]; 33 WORD32 spec_coeff[BLOCK_LEN_LONG]; 34 } ia_ec_scratch_str; 35 36 typedef struct { 37 WORD32 spectral_coeff[BLOCK_LEN_LONG]; 38 WORD16 q_spec_coeff[MAX_SPEC_SCALE_LEN_EC]; 39 WORD32 prev_frame_ok[2]; 40 UWORD8 win_shape; 41 UWORD8 win_shape_prev; 42 WORD32 win_seq; 43 WORD32 td_frame_prev; 44 WORD32 fac_data_present; 45 UWORD8 prev_win_group_len; 46 WORD32 conceal_state; 47 WORD32 prev_core_mode; 48 WORD32 fade_idx; 49 FLOAT32 lsf4[ORDER]; 50 ia_ec_sfb_str str_ec_sfb; 51 ia_ec_scratch_str *pstr_ec_scratch; 52 ia_ec_scratch_str str_ec_scratch; 53 } ia_ec_state_str; 54 55 #endif /* IXHEAACD_EC_STRUCT_DEF_H */ 56