Go to the documentation of this file.
20 #ifndef GNASH_VAAPIIMAGE_H
21 #define GNASH_VAAPIIMAGE_H
37 class SwsContextWrapper;
44 std::uint8_t * _image_data;
47 bool create(
unsigned int width,
unsigned int height);
59 VAImageID
get()
const {
return _image.image_id; }
65 unsigned int width()
const {
return _image.width; }
68 unsigned int height()
const {
return _image.height; }
71 bool isMapped()
const {
return _image_data != NULL; }
83 std::uint8_t *getPlane(
int plane)
const;
86 unsigned int getPitch(
int plane)
const;
91 #endif // GNASH_VAAPIIMAGE_H
unsigned int width() const
Get image width.
Definition: VaapiImage.h:65
@ height
Definition: klash_part.cpp:329
VA API global context.
Definition: VaapiGlobalContext.h:33
unsigned int getPitch(int plane) const
Get scanline pitch for the specified plane.
Definition: VaapiImage.cpp:166
const VAImageFormat * getImageFormat(VaapiImageFormat format) const
Get the VA image format matching format.
Definition: VaapiGlobalContext.cpp:96
VADisplay display() const
Get the VA display.
Definition: VaapiGlobalContext.h:71
bool unmap()
Unmap image data.
Definition: VaapiImage.cpp:134
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define _(String)
Definition: log.h:44
bool isMapped() const
Check whether the VA image is mapped.
Definition: VaapiImage.h:71
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
#define GNASH_REPORT_FUNCTION
Definition: log.h:452
static VaapiGlobalContext * get()
Get the unique global VA context.
Definition: VaapiGlobalContext.cpp:130
unsigned int height() const
Get image height.
Definition: VaapiImage.h:68
~VaapiImage()
Definition: VaapiImage.cpp:51
const char * string_of_FOURCC(std::uint32_t fourcc)
Return a string representation of a FOURCC.
Definition: vaapi_utils.cpp:61
VaapiImage(unsigned int width, unsigned int height, VaapiImageFormat format=VAAPI_IMAGE_RGB32)
Definition: VaapiImage.cpp:32
bool vaapi_check_status(VAStatus status, const char *msg)
Check VA status for success or print out an error.
Definition: vaapi_utils.cpp:51
VA image abstraction.
Definition: VaapiImage.h:41
unsigned int getPlaneCount() const
Get number of planes.
Definition: VaapiImage.h:80
VaapiImageFormat format() const
Get image format.
Definition: VaapiImage.h:62
VAImageID get() const
Get VA image ID.
Definition: VaapiImage.h:59
bool map()
Map image data.
Definition: VaapiImage.cpp:109
#define DSOEXPORT
Definition: dsodefs.h:55
VA exception abstraction.
Definition: VaapiException.h:29
@ width
Definition: klash_part.cpp:329
std::uint8_t * getPlane(int plane) const
Get pixels for the specified plane.
Definition: VaapiImage.cpp:156