20 #ifndef GNASH_VAAPIIMAGE_H
21 #define GNASH_VAAPIIMAGE_H
23 #include <boost/scoped_array.hpp>
38 class SwsContextWrapper;
45 boost::uint8_t * _image_data;
48 bool create(
unsigned int width,
unsigned int height);
60 VAImageID
get()
const {
return _image.image_id; }
72 bool isMapped()
const {
return _image_data != NULL; }
84 boost::uint8_t *getPlane(
int plane)
const;
87 unsigned int getPitch(
int plane)
const;
92 #endif // GNASH_VAAPIIMAGE_H
boost::scoped_ptr< image::GnashImage > _image
Definition: Renderer_cairo.cpp:210
Definition: klash_part.cpp:329
unsigned int getPlaneCount() const
Get number of planes.
Definition: VaapiImage.h:81
bool isMapped() const
Check whether the VA image is mapped.
Definition: VaapiImage.h:72
Definition: klash_part.cpp:329
#define DSOEXPORT
Definition: dsodefs.h:55
unsigned int width() const
Get image width.
Definition: VaapiImage.h:66
VA image abstraction.
Definition: VaapiImage.h:41
VaapiImageFormat format() const
Get image format.
Definition: VaapiImage.h:63
unsigned int height() const
Get image height.
Definition: VaapiImage.h:69
cairo_format_t _format
Definition: Renderer_cairo.cpp:215