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_HYBRID_H
     21 #define IXHEAACD_HYBRID_H
     22 
     23 #define HYBRID_FILTER_LENGTH 13
     24 #define HYBRID_FILTER_DELAY 6
     25 #define NO_QMF_CHANNELS_IN_HYBRID 3
     26 #define NO_HYBRID_CHANNELS_LOW 2
     27 #define NO_HYBRID_CHANNELS_HIGH 8
     28 
     29 typedef struct {
     30   const WORD16 *ptr_resol;
     31   WORD8 ptr_qmf_buf;
     32   WORD32 *ptr_work_re;
     33   WORD32 *ptr_work_im;
     34   WORD32 *ptr_qmf_buf_re[NO_QMF_CHANNELS_IN_HYBRID];
     35   WORD32 *ptr_qmf_buf_im[NO_QMF_CHANNELS_IN_HYBRID];
     36   WORD32 *ptr_temp_re;
     37   WORD32 *ptr_temp_im;
     38 } ia_hybrid_struct;
     39 
     40 VOID ixheaacd_hybrid_analysis(const WORD32 *ptr_qmf_real, WORD32 *ptr_hyb_real,
     41                               WORD32 *ptr_hyb_imag,
     42                               ia_hybrid_struct *ptr_hybrid, WORD16 scale,
     43                               ia_sbr_tables_struct *sbr_tables_ptr);
     44 
     45 #endif /* IXHEAACD_HYBRID_H */
     46