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

VA context abstraction. More...

#include <VaapiContext.h>

Public Member Functions

 VaapiContext (VAProfile profile, VAEntrypoint entrypoint)
 
 ~VaapiContext ()
 
bool initDecoder (unsigned int width, unsigned int height)
 Initialize VA decoder for the specified picture dimensions. More...
 
VAContextID get () const
 Return VA context. More...
 
std::shared_ptr< VaapiSurfaceacquireSurface ()
 Get a free surface. More...
 
void releaseSurface (std::shared_ptr< VaapiSurface > surface)
 Release surface. More...
 
void setData (std::unique_ptr< VaapiContextData > user_data)
 Set user data. More...
 
VaapiContextDatagetData () const
 Get user data. More...
 

Detailed Description

VA context abstraction.

Constructor & Destructor Documentation

§ VaapiContext()

gnash::VaapiContext::VaapiContext ( VAProfile  profile,
VAEntrypoint  entrypoint 
)

§ ~VaapiContext()

gnash::VaapiContext::~VaapiContext ( )

Member Function Documentation

§ acquireSurface()

std::shared_ptr< VaapiSurface > gnash::VaapiContext::acquireSurface ( )

Get a free surface.

References gnash::log_debug().

§ get()

VAContextID gnash::VaapiContext::get ( ) const
inline

Return VA context.

§ getData()

VaapiContextData* gnash::VaapiContext::getData ( ) const
inline

Get user data.

Referenced by gnash::GtkAggVaapiGlue::beforeRendering().

§ initDecoder()

bool gnash::VaapiContext::initDecoder ( unsigned int  width,
unsigned int  height 
)

Initialize VA decoder for the specified picture dimensions.

References GNASH_REPORT_FUNCTION.

§ releaseSurface()

void gnash::VaapiContext::releaseSurface ( std::shared_ptr< VaapiSurface surface)

Release surface.

References gnash::log_debug().

§ setData()

void gnash::VaapiContext::setData ( std::unique_ptr< VaapiContextData user_data)
inline

Set user data.

Referenced by gnash::GtkAggVaapiGlue::beforeRendering().


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