• 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 image::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,
00043             image::ImageType type);
00044     GnashVaapiImage(const GnashVaapiImage& o);
00045     ~GnashVaapiImage();
00046 
00047     virtual void update(boost::shared_ptr<VaapiSurface> surface);
00048     virtual void update(boost::uint8_t* data);
00049     virtual void update(const image::GnashImage& from);
00050 
00052     //
00054     boost::shared_ptr<VaapiSurface> surface() const
00055         { return _surface; }
00056 
00058     //
00060     //
00062     virtual iterator begin();
00063 
00065     //
00067     virtual const_iterator begin() const;
00068 };
00069 
00070 } // gnash namespace
00071 
00072 #endif // GNASH_GNASHVAAPIIMAGE_H
00073 
00074 // local Variables:
00075 // mode: C++
00076 // indent-tabs-mode: t
00077 // End:

Generated on Thu Sep 2 2010 for Gnash by  doxygen 1.7.1