Home | History | Annotate | Download | only in aacdec
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 /*
     19 
     20  Filename: s_hybrid.h
     21  Funtions:
     22 
     23 ------------------------------------------------------------------------------
     24  REVISION HISTORY
     25 
     26 
     27  Who:                                   Date: MM/DD/YYYY
     28  Description:
     29 ------------------------------------------------------------------------------
     30 
     31 
     32 ----------------------------------------------------------------------------
     33 ; CONTINUE ONLY IF NOT ALREADY DEFINED
     34 ----------------------------------------------------------------------------*/
     35 #ifndef S_HYBRID_H
     36 #define S_HYBRID_H
     37 
     38 /*----------------------------------------------------------------------------
     39 ; INCLUDES
     40 ----------------------------------------------------------------------------*/
     41 
     42 #include    "ps_constants.h"
     43 #include    "pv_audio_type_defs.h"
     44 
     45 /*----------------------------------------------------------------------------
     46 ; MACROS
     47 ; Define module specific macros here
     48 ----------------------------------------------------------------------------*/
     49 
     50 /*----------------------------------------------------------------------------
     51 ; DEFINES
     52 ; Include all pre-processor statements here.
     53 ----------------------------------------------------------------------------*/
     54 #define HYBRID_FILTER_LENGTH        13
     55 #define HYBRID_FILTER_LENGTH_m_1    12
     56 #define HYBRID_FILTER_DELAY         6
     57 
     58 /*----------------------------------------------------------------------------
     59 ; EXTERNAL VARIABLES REFERENCES
     60 ; Declare variables used in this module but defined elsewhere
     61 ----------------------------------------------------------------------------*/
     62 
     63 /*----------------------------------------------------------------------------
     64 ; SIMPLE TYPEDEF'S
     65 ----------------------------------------------------------------------------*/
     66 
     67 /*----------------------------------------------------------------------------
     68 ; ENUMERATED TYPEDEF'S
     69 ----------------------------------------------------------------------------*/
     70 typedef enum
     71 {
     72 
     73     HYBRID_2_REAL = 2,
     74     HYBRID_4_CPLX = 4,
     75     HYBRID_8_CPLX = 8
     76 
     77 } HYBRID_RES;
     78 
     79 /*----------------------------------------------------------------------------
     80 ; STRUCTURES TYPEDEF'S
     81 ----------------------------------------------------------------------------*/
     82 typedef struct
     83 {
     84     Int32   nQmfBands;
     85     Int32   *pResolution;
     86     Int32   qmfBufferMove;
     87 
     88     Int32 **mQmfBufferReal;
     89     Int32 **mQmfBufferImag;
     90     Int32 *mTempReal;
     91     Int32 *mTempImag;
     92 
     93 
     94 } HYBRID;
     95 
     96 /*----------------------------------------------------------------------------
     97 ; END
     98 ----------------------------------------------------------------------------*/
     99 
    100 #endif      /*  S_HYBRID_H */
    101