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

VA API global context. More...

#include <VaapiGlobalContext.h>

Public Member Functions

 VaapiGlobalContext (std::unique_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< VaapiImageFormatgetImageFormats () const
 Get the list of supported image formats. More...
 
std::vector< VaapiImageFormatgetSubpictureFormats () const
 Get the list of supported subpicture formats. More...
 
VADisplay display () const
 Get the VA display. More...
 

Static Public Member Functions

static VaapiGlobalContextget ()
 Get the unique global VA context. More...
 

Detailed Description

VA API global context.

Constructor & Destructor Documentation

§ VaapiGlobalContext()

gnash::VaapiGlobalContext::VaapiGlobalContext ( std::unique_ptr< VaapiDisplay display)

References GNASH_REPORT_FUNCTION.

Referenced by get().

§ ~VaapiGlobalContext()

gnash::VaapiGlobalContext::~VaapiGlobalContext ( )

Member Function Documentation

§ display()

VADisplay gnash::VaapiGlobalContext::display ( ) const
inline

§ get()

VaapiGlobalContext * gnash::VaapiGlobalContext::get ( )
static

§ getImageFormat()

const VAImageFormat * gnash::VaapiGlobalContext::getImageFormat ( VaapiImageFormat  format) const

Get the VA image format matching format.

Returns
The VA image format

References gnash::key::i, vaapi_get_image_format(), and VAAPI_IMAGE_NONE.

Referenced by gnash::VaapiImage::~VaapiImage().

§ getImageFormats()

std::vector< VaapiImageFormat > gnash::VaapiGlobalContext::getImageFormats ( ) const

Get the list of supported image formats.

Returns
The list of image formats

§ getSubpictureFormats()

std::vector< VaapiImageFormat > gnash::VaapiGlobalContext::getSubpictureFormats ( ) const

Get the list of supported subpicture formats.

Returns
The list of subpicture formats

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

§ hasProfile()

bool gnash::VaapiGlobalContext::hasProfile ( VAProfile  profile) const

Check VA profile is supported.

References gnash::key::i.


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