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_GNASHVAAPIIMAGEPROXY_H
00021 #define GNASH_GNASHVAAPIIMAGEPROXY_H
00022
00023 #include <boost/shared_ptr.hpp>
00024
00025 namespace gnash {
00026
00027
00028 class GnashVaapiImage;
00029 class VaapiSurface;
00030
00033 class DSOEXPORT GnashVaapiImageProxy
00034 {
00035
00036
00037
00038 boost::shared_ptr<VaapiSurface> _surface;
00039
00041 const int _x;
00042
00044 const int _y;
00045
00047 const size_t _width;
00048
00050 const size_t _height;
00051
00052 public:
00053 GnashVaapiImageProxy(GnashVaapiImage *image, int x, int y, size_t w, size_t h)
00054 : _surface(image->surface()), _x(x), _y(y), _width(w), _height(h)
00055 { }
00056
00057 GnashVaapiImageProxy(const GnashVaapiImageProxy& o)
00058 : _surface(o.surface())
00059 , _x(o.x()), _y(o.y()), _width(o.width()), _height(o.height())
00060 { }
00061
00063
00065 boost::shared_ptr<VaapiSurface> surface() const
00066 { return _surface; }
00067
00069
00071 int x() const { return _x; }
00072
00074
00076 int y() const { return _y; }
00077
00079
00081 size_t width() const { return _width; }
00082
00084
00086 size_t height() const { return _height; }
00087 };
00088
00089 }
00090
00091 #endif // end of GNASH_GNASHVAAPIIMAGEPROXY_H
00092
00093
00094
00095
00096
00097