Gnash
0.8.10
|
00001 // MediaHandlerGst.h: GST media handler, for Gnash 00002 // 00003 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 00004 // Free Software Foundation, Inc. 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with this program; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 #ifndef GNASH_MEDIAHANDLERGST_H 00021 #define GNASH_MEDIAHANDLERGST_H 00022 00023 #include "MediaHandler.h" 00024 00025 #include <vector> 00026 #include <memory> 00027 00028 namespace gnash { 00029 namespace media { 00030 00032 namespace gst { 00033 00035 // 00042 class MediaHandlerGst : public MediaHandler 00043 { 00044 public: 00045 00046 virtual std::string description() const; 00047 00048 virtual std::auto_ptr<MediaParser> 00049 createMediaParser(std::auto_ptr<IOChannel> stream); 00050 00051 virtual std::auto_ptr<VideoDecoder> 00052 createVideoDecoder(const VideoInfo& info); 00053 00054 virtual std::auto_ptr<AudioDecoder> 00055 createAudioDecoder(const AudioInfo& info); 00056 00057 virtual std::auto_ptr<VideoConverter> 00058 createVideoConverter(ImgBuf::Type4CC srcFormat, 00059 ImgBuf::Type4CC dstFormat); 00060 00061 virtual VideoInput* getVideoInput(size_t index); 00062 00063 virtual AudioInput* getAudioInput(size_t index); 00064 00065 virtual void cameraNames(std::vector<std::string>& names) const; 00066 }; 00067 00068 00069 00070 } // gnash.media.gst namespace 00071 } // gnash.media namespace 00072 } // namespace gnash 00073 00074 #endif