20 #ifndef GNASH_VAAPISURFACE_H
21 #define GNASH_VAAPISURFACE_H
32 class VaapiSubpicture;
57 uintptr_t
surface()
const {
return _surface; }
60 unsigned int width()
const {
return _width; }
63 unsigned int height()
const {
return _height; }
69 std::auto_ptr<VaapiSurfaceImplBase> _impl;
70 std::vector< boost::shared_ptr<VaapiSubpicture> > _subpictures;
76 void setContext(
VaapiContext *context) { _context = context; }
85 VASurfaceID
get()
const {
return static_cast<VASurfaceID
>(_impl->surface()); }
88 unsigned int width()
const {
return _impl->width(); }
91 unsigned int height()
const {
return _impl->height(); }
97 bool associateSubpicture(boost::shared_ptr<VaapiSubpicture> subpicture,
102 bool deassociateSubpicture(boost::shared_ptr<VaapiSubpicture> subpicture);
107 #endif // GNASH_VAAPISURFACE_H