MloHuffman.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 /*
00027 Huffman decoding
00028 
00029 Ref:
00030 */
00031 
00032 #ifndef _MLO_HUFFMAN_H_
00033 #define _MLO_HUFFMAN_H_
00034 
00035 
00036 
00037 /*----------------------------------------------------------------------
00038 |       Includes
00039 +---------------------------------------------------------------------*/
00040 
00041 
00042 
00043 #include "MloBitStream.h"
00044 #include "MloHcb.h"
00045 #include "MloTypes.h"
00046 
00047 
00048 
00049 /*----------------------------------------------------------------------
00050 |       Constants
00051 +---------------------------------------------------------------------*/
00052 
00053 
00054 
00055 #define  MLO_ERROR_UNEXPECTED_CB_TYPE  (MLO_ERROR_BASE_HUFFMAN-0)
00056 
00057 
00058 
00059 /*----------------------------------------------------------------------
00060 |       Function prototypes
00061 +---------------------------------------------------------------------*/
00062 
00063 
00064 
00065 #ifdef __cplusplus
00066 extern "C" {
00067 #endif /* __cplusplus */
00068 
00069 
00070 
00071 MLO_Result  MLO_Huffman_decode_spectral_data (MLO_Int16 data_ptr [], MLO_BitStream *bit_ptr, MLO_Hcb hcb);
00072 
00073 
00074 
00075 #ifdef __cplusplus
00076 }
00077 #endif /* __cplusplus */
00078 
00079 
00080 
00081 #endif /* _MLO_HUFFMAN_H_ */