Gnash 0.8.9
|
00001 // VideoDecoderHaiku.h: Video decoding using Haiku media kit 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_VIDEODECODERHAIKU_H 00020 #define GNASH_VIDEODECODERHAIKU_H 00021 00022 #include "GnashImage.h" 00023 #include "log.h" 00024 #include "VideoDecoder.h" 00025 #include "dsodefs.h" 00026 #include "MediaParser.h" // for videoCodecType enum 00027 00028 #include "adipe.h" 00029 00030 00031 00032 namespace gnash { 00033 namespace media { 00034 namespace haiku { 00035 00036 00038 class DSOEXPORT VideoDecoderHaiku : public VideoDecoder 00039 { 00040 public: 00041 //VideoDecoderGst(videoCodecType codec_type, int width, int height, 00042 // const boost::uint8_t* extradata, size_t extradatasize); 00043 //VideoDecoderGst(GstCaps* caps); 00044 VideoDecoderHaiku(const VideoInfo& info); 00045 ~VideoDecoderHaiku(); 00046 00047 void push(const EncodedVideoFrame& buffer); 00048 00049 std::auto_ptr<GnashImage> pop(); 00050 00051 bool peek(); 00052 00054 // 00056 int width() const; 00057 00059 // 00061 int height() const; 00062 00063 private: 00064 int _count; 00065 }; 00066 00067 00068 } // gnash.media.haiku namespace 00069 } // namespace media 00070 } // namespace gnash 00071 #endif // __VIDEODECODERHAIKU_H__