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
00021 #ifndef GNASH_GNASHVAAPIIMAGEPROXY_H
00022 #define GNASH_GNASHVAAPIIMAGEPROXY_H
00023
00024 #include <boost/shared_ptr.hpp>
00025
00026 namespace gnash {
00027
00028
00029 class GnashVaapiImage;
00030 class VaapiSurface;
00031
00034 class DSOEXPORT GnashVaapiImageProxy
00035 {
00036
00037
00038
00039 boost::shared_ptr<VaapiSurface> _surface;
00040
00042 const int _x;
00043
00045 const int _y;
00046
00048 const size_t _width;
00049
00051 const size_t _height;
00052
00053 public:
00054 GnashVaapiImageProxy(GnashVaapiImage *image, int x, int y, size_t w, size_t h)
00055 : _surface(image->surface()), _x(x), _y(y), _width(w), _height(h)
00056 { }
00057
00058 GnashVaapiImageProxy(const GnashVaapiImageProxy& o)
00059 : _surface(o.surface())
00060 , _x(o.x()), _y(o.y()), _width(o.width()), _height(o.height())
00061 { }
00062
00064
00066 boost::shared_ptr<VaapiSurface> surface() const
00067 { return _surface; }
00068
00070
00072 int x() const { return _x; }
00073
00075
00077 int y() const { return _y; }
00078
00080
00082 size_t width() const { return _width; }
00083
00085
00087 size_t height() const { return _height; }
00088 };
00089
00090 }
00091
00092 #endif // end of GNASH_GNASHVAAPIIMAGEPROXY_H
00093
00094
00095
00096
00097
00098