|
Gnash
0.8.11dev
|
VA surface abstraction. More...
#include <VaapiSurface.h>
Public Member Functions | |
| VaapiSurface (unsigned int width, unsigned int height) | |
| VaapiContext * | getContext () const |
| Return parent VA context. More... | |
| VASurfaceID | get () const |
| Return VA surface id. More... | |
| unsigned int | width () const |
| Get surface width. More... | |
| unsigned int | height () const |
| Get surface height. More... | |
| void | clear () |
| Clear surface with black color. More... | |
| bool | associateSubpicture (std::shared_ptr< VaapiSubpicture > subpicture, VaapiRectangle const &src_rect, VaapiRectangle const &dst_rect) |
| Associate subpicture to the surface. More... | |
| bool | deassociateSubpicture (std::shared_ptr< VaapiSubpicture > subpicture) |
| Deassociate subpicture from the surface. More... | |
Friends | |
| class | VaapiContext |
VA surface abstraction.
| gnash::VaapiSurface::VaapiSurface | ( | unsigned int | width, |
| unsigned int | height | ||
| ) |
| bool gnash::VaapiSurface::associateSubpicture | ( | std::shared_ptr< VaapiSubpicture > | subpicture, |
| VaapiRectangle const & | src_rect, | ||
| VaapiRectangle const & | dst_rect | ||
| ) |
Associate subpicture to the surface.
References deassociateSubpicture(), gnash::VaapiGlobalContext::display(), gnash::VaapiGlobalContext::get(), and gnash::vaapi_check_status().
| void gnash::VaapiSurface::clear | ( | ) |
Clear surface with black color.
References gnash::key::a, gnash::key::b, gnash::VaapiGlobalContext::display(), gnash::VaapiGlobalContext::get(), gnash::VaapiImage::get(), gnash::VaapiImage::getPitch(), gnash::VaapiImage::getPlane(), gnash::VaapiImage::height(), height(), gnash::key::i, gnash::VaapiImage::map(), gnash::operator==(), gnash::VaapiImage::unmap(), gnash::vaapi_check_status(), VAAPI_IMAGE_NV12, gnash::VaapiImage::width(), width(), and gnash::key::Y.
| bool gnash::VaapiSurface::deassociateSubpicture | ( | std::shared_ptr< VaapiSubpicture > | subpicture | ) |
Deassociate subpicture from the surface.
References gnash::VaapiGlobalContext::display(), gnash::VaapiGlobalContext::get(), and gnash::vaapi_check_status().
Referenced by associateSubpicture().
|
inline |
Return VA surface id.
|
inline |
Return parent VA context.
|
inline |
|
inline |
Get surface width.
Referenced by clear().
|
friend |
1.8.11