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