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