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_PVC_DEC_H 21 #define IXHEAACD_PVC_DEC_H 22 23 typedef struct { 24 UWORD8 pvc_mode; 25 UWORD8 div_mode; 26 UWORD8 ns_mode; 27 UWORD8 num_time_slots; 28 UWORD8 nb_high; 29 UWORD8 nb_high_per_grp; 30 UWORD8 prev_pvc_flg; 31 UWORD8 prev_pvc_mode; 32 UWORD8 pvc_rate; 33 UWORD8 prev_pvc_rate; 34 WORD16 dummy; 35 36 UWORD16 pvc_id[PVC_NUM_TIME_SLOTS]; 37 UWORD16 prev_pvc_id; 38 WORD8 *p_pred_coeff_tab_1; 39 WORD8 *p_pred_coeff_tab_2; 40 UWORD8 *p_pvc_id_boundary; 41 WORD16 prev_first_bnd_idx; 42 WORD32 prev_sbr_mode; 43 FLOAT32 *p_smth_wind_coeff; 44 FLOAT32 *p_q_fac; 45 FLOAT32 esg[2 * PVC_NUM_TIME_SLOTS - 1][3]; 46 FLOAT32 smooth_esg_arr[PVC_NUM_TIME_SLOTS * 3]; 47 FLOAT32 sbr_range_esg_arr[PVC_NUM_TIME_SLOTS * 8]; 48 49 } ia_pvc_data_struct; 50 51 WORD32 ixheaacd_pvc_process(ia_pvc_data_struct *ptr_pvc_data, 52 WORD16 first_bnd_idx, WORD32 first_pvc_timelost, 53 FLOAT32 *a_qmfl, FLOAT32 *a_qmfh); 54 55 #endif /* IXHEAACD_PVC_DEC_H */ 56