Gnash  0.8.10
GnashVaapiImage.h
Go to the documentation of this file.
00001 // GnashVaapiImage.h: GnashImage class used with VA API
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 
00021 #ifndef GNASH_GNASHVAAPIIMAGE_H
00022 #define GNASH_GNASHVAAPIIMAGE_H
00023 
00024 #include <boost/shared_ptr.hpp>
00025 
00026 #include "GnashImage.h"
00027 #include "dsodefs.h"
00028 
00029 namespace gnash {
00030 
00031 // Forward declarations
00032 class VaapiSurface;
00033 class VaapiSurfaceProxy;
00034 
00036 class DSOEXPORT GnashVaapiImage : public image::GnashImage
00037 {
00038     boost::shared_ptr<VaapiSurface> _surface;
00039     boost::uint64_t _creation_time;
00040 
00042     bool transfer();
00043 
00044 public:
00045     GnashVaapiImage(boost::shared_ptr<VaapiSurface> surface,
00046             image::ImageType type);
00047     GnashVaapiImage(const GnashVaapiImage& o);
00048     ~GnashVaapiImage();
00049 
00050     virtual void update(boost::shared_ptr<VaapiSurface> surface);
00051     virtual void update(boost::uint8_t* data);
00052     virtual void update(const image::GnashImage& from);
00053 
00055     //
00057     boost::shared_ptr<VaapiSurface> surface() const
00058         { return _surface; }
00059 
00061     //
00063     //
00065     virtual iterator begin();
00066 
00068     //
00070     virtual const_iterator begin() const;
00071 };
00072 
00073 } // gnash namespace
00074 
00075 #endif // GNASH_GNASHVAAPIIMAGE_H
00076 
00077 // local Variables:
00078 // mode: C++
00079 // indent-tabs-mode: t
00080 // End: