Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GNASH_VAAPISURFACEGLX_H
00021 #define GNASH_VAAPISURFACEGLX_H
00022
00023 #include "vaapi_common.h"
00024 #include "VaapiSurface.h"
00025 #include <GL/gl.h>
00026
00027 namespace gnash {
00028
00030 class VaapiSurfaceGLX {
00031 std::auto_ptr<VaapiSurfaceImplBase> _impl;
00032
00033 public:
00034 VaapiSurfaceGLX(GLenum target, GLuint texture);
00035
00037 void *get() const { return reinterpret_cast<void *>(_impl->surface()); }
00038
00040 unsigned int width() const { return _impl->width(); }
00041
00043 unsigned int height() const { return _impl->height(); }
00044
00046 bool update(boost::shared_ptr<VaapiSurface> surface);
00047 };
00048
00049 }
00050
00051 #endif // GNASH_VAAPISURFACEGLX_H
00052
00053
00054
00055
00056
00057