Gnash
0.8.10
|
00001 // GnashVaapiTexture.h: GnashImage class used for VA/GLX rendering 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_GNASHVAAPITEXTURE_H 00022 #define GNASH_GNASHVAAPITEXTURE_H 00023 00024 #include "GnashTexture.h" 00025 00026 namespace gnash { 00027 00028 // Forward declarations 00029 class VaapiSurface; 00030 class VaapiSurfaceGLX; 00031 00033 class DSOEXPORT GnashVaapiTexture : public GnashTexture { 00034 std::auto_ptr<VaapiSurfaceGLX> _surface; 00035 00036 public: 00037 GnashVaapiTexture(unsigned int width, unsigned int height, 00038 image::ImageType type); 00039 ~GnashVaapiTexture(); 00040 00042 // 00047 void update(boost::shared_ptr<VaapiSurface> surface); 00048 }; 00049 00050 } // gnash namespace 00051 00052 #endif // end of GNASH_GNASHVAAPITEXTURE_H 00053 00054 00055 // local Variables: 00056 // mode: C++ 00057 // indent-tabs-mode: t 00058 // End: