• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

AudioDecoder.h

Go to the documentation of this file.
00001 // AudioDecoder.h: Audio decoding base class.
00002 // 
00003 //   Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 
00020 #ifndef GNASH_AUDIODECODER_H
00021 #define GNASH_AUDIODECODER_H
00022 
00023 #include <boost/cstdint.hpp> // for C99 int types
00024 
00025 // Forward declarations
00026 namespace gnash {
00027         namespace media {
00028                 class EncodedAudioFrame;
00029         }
00030 }
00031 
00032 namespace gnash {
00033 namespace media {
00034 
00036 class AudioDecoder {
00037         
00038 public:
00039 
00040         AudioDecoder() {}
00041 
00042         // virtual classes need a virtual destructor !
00043         virtual ~AudioDecoder() {}
00044 
00046         //
00068         virtual boost::uint8_t* decode(const boost::uint8_t* input,
00069         boost::uint32_t inputSize, boost::uint32_t& outputSize,
00070         boost::uint32_t& decodedData, bool parse);
00071 
00073         //
00085         virtual boost::uint8_t* decode(const EncodedAudioFrame& input,
00086                                        boost::uint32_t& outputSize);
00087 
00088 };
00089 
00090 inline boost::uint8_t*
00091 AudioDecoder::decode(const boost::uint8_t*, boost::uint32_t, boost::uint32_t&,
00092         boost::uint32_t&, bool)
00093 { return 0; }
00094 
00095 inline boost::uint8_t*
00096 AudioDecoder::decode(const EncodedAudioFrame&, boost::uint32_t&)
00097 { return 0; }
00098         
00099 } // gnash.media namespace 
00100 } // gnash namespace
00101 
00102 #endif // __AUDIODECODER_H__

Generated on Fri Mar 16 2012 15:46:08 for Gnash by  doxygen 1.7.1