|
Gnash
0.8.10
|
VA image abstraction. More...
#include <VaapiImage.h>
Public Member Functions | |
| VaapiImage (unsigned int width, unsigned int height, VaapiImageFormat format=VAAPI_IMAGE_RGB32) | |
| ~VaapiImage () | |
| VAImageID | get () const |
| Get VA image ID. | |
| VaapiImageFormat | format () const |
| Get image format. | |
| unsigned int | width () const |
| Get image width. | |
| unsigned int | height () const |
| Get image height. | |
| bool | isMapped () const |
| Check whether the VA image is mapped. | |
| bool | map () |
| Map image data. | |
| bool | unmap () |
| Unmap image data. | |
| unsigned int | getPlaneCount () const |
| Get number of planes. | |
| boost::uint8_t * | getPlane (int plane) const |
| Get pixels for the specified plane. | |
| unsigned int | getPitch (int plane) const |
| Get scanline pitch for the specified plane. | |
VA image abstraction.
| gnash::VaapiImage::VaapiImage | ( | unsigned int | width, |
| unsigned int | height, | ||
| VaapiImageFormat | format = VAAPI_IMAGE_RGB32 |
||
| ) |
References _, gnash::string_of_FOURCC(), and format().
| gnash::VaapiImage::~VaapiImage | ( | ) |
References GNASH_REPORT_FUNCTION.
| VaapiImageFormat gnash::VaapiImage::format | ( | ) | const [inline] |
| VAImageID gnash::VaapiImage::get | ( | ) | const [inline] |
| unsigned int gnash::VaapiImage::getPitch | ( | int | plane | ) | const |
Get scanline pitch for the specified plane.
References isMapped().
Referenced by gnash::VaapiSurface::clear().
| boost::uint8_t * gnash::VaapiImage::getPlane | ( | int | plane | ) | const |
Get pixels for the specified plane.
References isMapped().
Referenced by gnash::VaapiSurface::clear().
| unsigned int gnash::VaapiImage::getPlaneCount | ( | ) | const [inline] |
Get number of planes.
References _image.
| unsigned int gnash::VaapiImage::height | ( | ) | const [inline] |
| bool gnash::VaapiImage::isMapped | ( | ) | const [inline] |
Check whether the VA image is mapped.
Referenced by map(), unmap(), getPlane(), and getPitch().
| bool gnash::VaapiImage::map | ( | ) |
Map image data.
References isMapped(), get(), gnash::VaapiGlobalContext::display(), and gnash::vaapi_check_status().
Referenced by gnash::VaapiSurface::clear().
| bool gnash::VaapiImage::unmap | ( | ) |
Unmap image data.
References isMapped(), get(), gnash::VaapiGlobalContext::display(), and gnash::vaapi_check_status().
Referenced by gnash::VaapiSurface::clear().
| unsigned int gnash::VaapiImage::width | ( | ) | const [inline] |
1.7.5