• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

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 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 
00020 #ifndef GNASH_GNASHVAAPIIMAGE_H
00021 #define GNASH_GNASHVAAPIIMAGE_H
00022 
00023 #include "GnashImage.h"
00024 #include <boost/shared_ptr.hpp>
00025 
00026 namespace gnash {
00027 
00028 // Forward declarations
00029 class VaapiSurface;
00030 class VaapiSurfaceProxy;
00031 
00033 class DSOEXPORT GnashVaapiImage : public GnashImage
00034 {
00035     boost::shared_ptr<VaapiSurface> _surface;
00036     boost::uint64_t _creation_time;
00037 
00039     bool transfer();
00040 
00041 public:
00042     GnashVaapiImage(boost::shared_ptr<VaapiSurface> surface, ImageType type);
00043     GnashVaapiImage(const GnashVaapiImage& o);
00044     ~GnashVaapiImage();
00045 
00046     virtual void update(boost::shared_ptr<VaapiSurface> surface);
00047     virtual void update(boost::uint8_t* data);
00048     virtual void update(const GnashImage& from);
00049 
00051     //
00053     boost::shared_ptr<VaapiSurface> surface() const
00054         { return _surface; }
00055 
00057     //
00059     //
00061     virtual iterator begin();
00062 
00064     //
00066     virtual const_iterator begin() const;
00067 };
00068 
00069 } // gnash namespace
00070 
00071 #endif // GNASH_GNASHVAAPIIMAGE_H
00072 
00073 // local Variables:
00074 // mode: C++
00075 // indent-tabs-mode: t
00076 // End:

Generated on Fri Mar 16 2012 15:46:10 for Gnash by  doxygen 1.7.1