Gnash  0.8.11dev
Public Member Functions | Friends | List of all members
gnash::VaapiSurface Class Reference

VA surface abstraction. More...

#include <VaapiSurface.h>

Public Member Functions

 VaapiSurface (unsigned int width, unsigned int height)
 
VaapiContextgetContext () 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
 

Detailed Description

VA surface abstraction.

Constructor & Destructor Documentation

§ VaapiSurface()

gnash::VaapiSurface::VaapiSurface ( unsigned int  width,
unsigned int  height 
)

Member Function Documentation

§ associateSubpicture()

bool gnash::VaapiSurface::associateSubpicture ( std::shared_ptr< VaapiSubpicture subpicture,
VaapiRectangle const &  src_rect,
VaapiRectangle const &  dst_rect 
)

§ clear()

void gnash::VaapiSurface::clear ( )

§ deassociateSubpicture()

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().

§ get()

VASurfaceID gnash::VaapiSurface::get ( ) const
inline

Return VA surface id.

§ getContext()

VaapiContext* gnash::VaapiSurface::getContext ( ) const
inline

Return parent VA context.

§ height()

unsigned int gnash::VaapiSurface::height ( ) const
inline

Get surface height.

References gnash::fontlib::clear().

Referenced by clear().

§ width()

unsigned int gnash::VaapiSurface::width ( ) const
inline

Get surface width.

Referenced by clear().

Friends And Related Function Documentation

§ VaapiContext

friend class VaapiContext
friend

The documentation for this class was generated from the following files: