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 SC 29 Software Copyright Licencing Disclaimer:
     20 
     21 This software module was originally developed by
     22   Coding Technologies
     23 
     24 and edited by
     25   -
     26 
     27 in the course of development of the ISO/IEC 13818-7 and ISO/IEC 14496-3
     28 standards for reference purposes and its performance may not have been
     29 optimized. This software module is an implementation of one or more tools as
     30 specified by the ISO/IEC 13818-7 and ISO/IEC 14496-3 standards.
     31 ISO/IEC gives users free license to this software module or modifications
     32 thereof for use in products claiming conformance to audiovisual and
     33 image-coding related ITU Recommendations and/or ISO/IEC International
     34 Standards. ISO/IEC gives users the same free license to this software module or
     35 modifications thereof for research purposes and further ISO/IEC standardisation.
     36 Those intending to use this software module in products are advised that its
     37 use may infringe existing patents. ISO/IEC have no liability for use of this
     38 software module or modifications thereof. Copyright is not released for
     39 products that do not conform to audiovisual and image-coding related ITU
     40 Recommendations and/or ISO/IEC International Standards.
     41 The original developer retains full right to modify and use the code for its
     42 own purpose, assign or donate the code to a third party and to inhibit third
     43 parties from using the code for products that do not conform to audiovisual and
     44 image-coding related ITU Recommendations and/or ISO/IEC International Standards.
     45 This copyright notice must be included in all copies or derivative works.
     46 Copyright (c) ISO/IEC 2003.
     47 *******************************************************************************/
     48 /*
     49 */
     50 #ifndef PS_CONSTANTS_H
     51 #define PS_CONSTANTS_H
     52 
     53 
     54 #define NO_SUB_QMF_CHANNELS         12
     55 #define NO_QMF_CHANNELS_IN_HYBRID   3
     56 #define NO_QMF_CHANNELS             64
     57 #define NO_ALLPASS_CHANNELS         23
     58 #define NO_DELAY_CHANNELS           (NO_QMF_CHANNELS-NO_ALLPASS_CHANNELS)
     59 #define DELAY_ALLPASS               2
     60 #define SHORT_DELAY_START           12
     61 #define SHORT_DELAY                 1
     62 #define LONG_DELAY                  14
     63 #define NO_QMF_ALLPASS_CHANNELS    (NO_ALLPASS_CHANNELS-NO_QMF_CHANNELS_IN_HYBRID)
     64 #define NO_QMF_ICC_CHANNELS        (NO_QMF_ALLPASS_CHANNELS+NO_DELAY_CHANNELS)
     65 #define HYBRIDGROUPS                8
     66 #define DECAY_CUTOFF                3
     67 #define NO_SERIAL_ALLPASS_LINKS     3
     68 #define MAX_NO_PS_ENV               5
     69 #define NEGATE_IPD_MASK                 ( 0x00001000 )
     70 #define NO_BINS                         ( 20 )
     71 #define NO_HI_RES_BINS                  ( 34 )
     72 #define NO_LOW_RES_BINS                 ( NO_IID_BINS / 2 )
     73 #define NO_IID_BINS                     ( NO_BINS )
     74 #define NO_ICC_BINS                     ( NO_BINS )
     75 #define NO_LOW_RES_IID_BINS             ( NO_LOW_RES_BINS )
     76 #define NO_LOW_RES_ICC_BINS             ( NO_LOW_RES_BINS )
     77 #define SUBQMF_GROUPS                   ( 10 )
     78 #define QMF_GROUPS                      ( 12 )
     79 #define NO_IID_GROUPS                   ( SUBQMF_GROUPS + QMF_GROUPS )
     80 #define NO_IID_STEPS                    ( 7 )
     81 #define NO_IID_STEPS_FINE               ( 15 )
     82 #define NO_ICC_STEPS                    ( 8 )
     83 #define NO_IID_LEVELS                   ( 2 * NO_IID_STEPS + 1 )
     84 #define NO_IID_LEVELS_FINE              ( 2 * NO_IID_STEPS_FINE + 1 )
     85 #define NO_ICC_LEVELS                   ( NO_ICC_STEPS )
     86 
     87 
     88 
     89 #endif      /*  PS_CONSTANTS_H */
     90