MloSamplingFreq.h

00001 /*****************************************************************
00002 |
00003 |    Copyright 2004-2006 Axiomatic Systems LLC
00004 |
00005 |    This file is part of Melo (Melo AAC Decoder).
00006 |
00007 |    Unless you have obtained Melo under a difference license,
00008 |    this version of Melo is Melo|GPL.
00009 |    Melo|GPL is free software; you can redistribute it and/or modify
00010 |    it under the terms of the GNU General Public License as published by
00011 |    the Free Software Foundation; either version 2, or (at your option)
00012 |    any later version.
00013 |
00014 |    Melo|GPL is distributed in the hope that it will be useful,
00015 |    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 |    GNU General Public License for more details.
00018 |
00019 |    You should have received a copy of the GNU General Public License
00020 |    along with Melo|GPL; see the file COPYING.  If not, write to the
00021 |    Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
00022 |    02111-1307, USA.
00023 |
00024  ****************************************************************/
00025 
00026 #ifndef _MLO_SAMPLING_FREQ_H_
00027 #define _MLO_SAMPLING_FREQ_H_
00028 
00029 /*----------------------------------------------------------------------
00030 |    include
00031 +---------------------------------------------------------------------*/
00032 #include "MloConfig.h"
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif /* __cplusplus */
00037 
00038 
00039 /* 1.6.3.4, Table 1.16 */
00040 typedef enum MLO_SamplingFreq_Index
00041 {
00042    MLO_SAMPLING_FREQ_INDEX_INVALID = -1,
00043 
00044    MLO_SAMPLING_FREQ_96000,
00045    MLO_SAMPLING_FREQ_88200,
00046    MLO_SAMPLING_FREQ_64000,
00047    MLO_SAMPLING_FREQ_48000,
00048    MLO_SAMPLING_FREQ_44100,
00049    MLO_SAMPLING_FREQ_32000,
00050    MLO_SAMPLING_FREQ_24000,
00051    MLO_SAMPLING_FREQ_22050,
00052    MLO_SAMPLING_FREQ_16000,
00053    MLO_SAMPLING_FREQ_12000,
00054    MLO_SAMPLING_FREQ_11025,
00055    MLO_SAMPLING_FREQ_8000,
00056    MLO_SAMPLING_FREQ_7350,
00057 
00058    MLO_SAMPLING_FREQ_INDEX_NBR_SUPPORTED = 12,   /* 7350 Hz is not supported by some parts of the specs */
00059    MLO_SAMPLING_FREQ_INDEX_NBR_VALID = 13,
00060    MLO_SAMPLING_FREQ_INDEX_RESERVED = MLO_SAMPLING_FREQ_INDEX_NBR_VALID,
00061    MLO_SAMPLING_FREQ_INDEX_ESCAPE = 15,
00062 
00063    MLO_SAMPLING_FREQ_INDEX_NBR_ELT
00064 }  MLO_SamplingFreq_Index;
00065 
00066 
00067 
00068 extern const MLO_UInt32 
00069 MLO_SamplingFreq_table [MLO_SAMPLING_FREQ_INDEX_NBR_ELT];
00070 
00071 
00072 #ifdef __cplusplus
00073 }
00074 #endif /* __cplusplus */
00075 
00076 
00077 #endif /* _MLO_SAMPLING_FREQ_H_ */