Gnash 0.8.9

AudioDecoder.h

Go to the documentation of this file.
00001 // AudioDecoder.h: Audio decoding base class.
00002 // 
00003 //   Copyright (C) 2007, 2008, 2009, 2010, 2011 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 #ifndef GNASH_AUDIODECODER_H
00020 #define GNASH_AUDIODECODER_H
00021 
00022 #include <boost/cstdint.hpp> // for C99 int types
00023 
00024 // Forward declarations
00025 namespace gnash {
00026         namespace media {
00027                 class EncodedAudioFrame;
00028         }
00029 }
00030 
00031 namespace gnash {
00032 namespace media {
00033 
00035 class AudioDecoder {
00036         
00037 public:
00038 
00039         AudioDecoder() {}
00040 
00041         // virtual classes need a virtual destructor !
00042         virtual ~AudioDecoder() {}
00043 
00045         //
00067         virtual boost::uint8_t* decode(const boost::uint8_t* input,
00068         boost::uint32_t inputSize, boost::uint32_t& outputSize,
00069         boost::uint32_t& decodedData, bool parse);
00070 
00072         //
00084         virtual boost::uint8_t* decode(const EncodedAudioFrame& input,
00085                                        boost::uint32_t& outputSize);
00086 
00087 };
00088 
00089 inline boost::uint8_t*
00090 AudioDecoder::decode(const boost::uint8_t*, boost::uint32_t, boost::uint32_t&,
00091         boost::uint32_t&, bool)
00092 {
00093     return 0;
00094 }
00095 
00096 inline boost::uint8_t*
00097 AudioDecoder::decode(const EncodedAudioFrame&, boost::uint32_t&)
00098 {
00099     return 0;
00100 }
00101         
00102 } // gnash.media namespace 
00103 } // gnash namespace
00104 
00105 #endif