Gnash 0.8.9

VideoConverterGst.h

Go to the documentation of this file.
00001 //   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
00002 // 
00003 // This program is free software; you can redistribute it and/or modify
00004 // it under the terms of the GNU General Public License as published by
00005 // the Free Software Foundation; either version 3 of the License, or
00006 // (at your option) any later version.
00007 // 
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 
00017 
00018 #ifndef GNASH_VIDEOCONVERTERGST_H
00019 #define GNASH_VIDEOCONVERTERGST_H
00020 
00021 #include "VideoConverter.h"
00022 #include "swfdec_codec_gst.h"
00023 
00024 #include <gst/gst.h>
00025 
00026 namespace gnash {
00027 namespace media {
00028 namespace gst {
00029 
00031 
00032 class VideoConverterGst : public VideoConverter {
00033 
00034 public:
00035     VideoConverterGst(ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat);
00036     
00037     ~VideoConverterGst();
00038   
00039     std::auto_ptr<ImgBuf> convert(const ImgBuf& src);
00040     
00041     bool init(const ImgBuf& src);
00042   
00043 private:
00044     SwfdecGstDecoder _decoder;
00045 };
00046 
00047 } // gnash.media.gst namespace
00048 } // gnash.media namespace 
00049 } // gnash namespace
00050 
00051 #endif // __VIDEOCONVERTERGST_H__