Gnash
0.8.11dev
|
VA API global context. More...
#include <VaapiGlobalContext.h>
Public Member Functions | |
VaapiGlobalContext (std::auto_ptr< VaapiDisplay > display) | |
~VaapiGlobalContext () | |
bool | hasProfile (VAProfile profile) const |
Check VA profile is supported. More... | |
const VAImageFormat * | getImageFormat (VaapiImageFormat format) const |
Get the VA image format matching format. More... | |
std::vector< VaapiImageFormat > | getImageFormats () const |
Get the list of supported image formats. More... | |
std::vector< VaapiImageFormat > | getSubpictureFormats () const |
Get the list of supported subpicture formats. More... | |
VADisplay | display () const |
Get the VA display. More... | |
Static Public Member Functions | |
static VaapiGlobalContext * | get () |
Get the unique global VA context. More... | |
VA API global context.
gnash::VaapiGlobalContext::VaapiGlobalContext | ( | std::auto_ptr< VaapiDisplay > | display) |
References GNASH_REPORT_FUNCTION.
Referenced by get().
gnash::VaapiGlobalContext::~VaapiGlobalContext | ( | ) |
|
inline |
Get the VA display.
Referenced by gnash::VaapiSurface::associateSubpicture(), gnash::VaapiSurface::clear(), gnash::VaapiSurface::deassociateSubpicture(), gnash::media::ffmpeg::VaapiContextFfmpeg::initDecoder(), gnash::VaapiImage::map(), gnash::GtkAggVaapiGlue::render(), and gnash::VaapiImage::unmap().
|
static |
Get the unique global VA context.
A wrapper around a VaapiGlobalContext to ensure it's free'd on destruction.
References GNASH_REPORT_FUNCTION, LOG_ONCE, gnash::vaapi_set_is_enabled(), and VaapiGlobalContext().
Referenced by gnash::VaapiSurface::associateSubpicture(), gnash::VaapiSurface::clear(), gnash::GtkAggVaapiGlue::createRenderHandler(), gnash::VaapiSurface::deassociateSubpicture(), gnash::GtkAggVaapiGlue::init(), gnash::media::ffmpeg::VaapiContextFfmpeg::initDecoder(), gnash::VaapiImage::map(), gnash::GtkAggVaapiGlue::render(), and gnash::VaapiImage::unmap().
const VAImageFormat * gnash::VaapiGlobalContext::getImageFormat | ( | VaapiImageFormat | format) | const |
Get the VA image format matching format.
References gnash::key::i, and vaapi_get_image_format().
std::vector< VaapiImageFormat > gnash::VaapiGlobalContext::getImageFormats | ( | ) | const |
Get the list of supported image formats.
std::vector< VaapiImageFormat > gnash::VaapiGlobalContext::getSubpictureFormats | ( | ) | const |
Get the list of supported subpicture formats.
Referenced by gnash::GtkAggVaapiGlue::createRenderHandler().
bool gnash::VaapiGlobalContext::hasProfile | ( | VAProfile | profile) | const |
Check VA profile is supported.
References gnash::key::i.