00001 /***************************************************************** 00002 | 00003 | Melo - Common Definitions 00004 | 00005 | Copyright 2004-2006 Axiomatic Systems LLC 00006 | 00007 | This file is part of Melo (Melo AAC Decoder). 00008 | 00009 | Unless you have obtained Melo under a difference license, 00010 | this version of Melo is Melo|GPL. 00011 | Melo|GPL is free software; you can redistribute it and/or modify 00012 | it under the terms of the GNU General Public License as published by 00013 | the Free Software Foundation; either version 2, or (at your option) 00014 | any later version. 00015 | 00016 | Melo|GPL is distributed in the hope that it will be useful, 00017 | but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 | GNU General Public License for more details. 00020 | 00021 | You should have received a copy of the GNU General Public License 00022 | along with Melo|GPL; see the file COPYING. If not, write to the 00023 | Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 00024 | 02111-1307, USA. 00025 | 00026 ****************************************************************/ 00031 #ifndef _MLO_DEFS_H_ 00032 #define _MLO_DEFS_H_ 00033 00034 /*---------------------------------------------------------------------- 00035 | constants 00036 +---------------------------------------------------------------------*/ 00037 #ifndef __cplusplus 00038 #ifndef NULL 00039 #define NULL ((void*)0) 00040 #endif 00041 #endif /* __cplusplus */ 00042 00043 /* Fixed frame length */ 00044 enum { MLO_DEFS_FRAME_LEN_LONG = 1024 }; 00045 enum { MLO_DEFS_FRAME_LEN_SHORT = MLO_DEFS_FRAME_LEN_LONG / 8 }; 00046 00047 /* Maximum number of windows and window groups */ 00048 enum { MLO_DEFS_MAX_NBR_WINDOWS = 8 }; 00049 enum { MLO_DEFS_MAX_NBR_WIN_GRP = MLO_DEFS_MAX_NBR_WINDOWS }; 00050 00051 /* Maximum number of Scale Window Bands (related to MLO_IcsInfo data) */ 00052 enum { MLO_DEFS_MAX_NUM_SWB = 51 }; 00053 00054 /* Maximum number of channels that can be supported by the decoder */ 00055 enum { MLO_DEFS_MAX_CHN = 32 }; 00056 00057 /* Numeric constants */ 00058 #define MLO_DEFS_PI (3.1415926535897932384626433832795) 00059 #define MLO_DEFS_SQRT2 (1.41421356237309514547462185873883) 00060 00061 00062 00063 #endif /* _MLO_DEFS_H_ */