Gnash  0.8.10
Public Member Functions | Static Public Member Functions
gnash::VaapiGlobalContext Class Reference

VA API global context. More...

#include <VaapiGlobalContext.h>

List of all members.

Public Member Functions

 VaapiGlobalContext (std::auto_ptr< VaapiDisplay > display)
 ~VaapiGlobalContext ()
bool hasProfile (VAProfile profile) const
 Check VA profile is supported.
const VAImageFormat * getImageFormat (VaapiImageFormat format) const
 Get the VA image format matching format.
std::vector< VaapiImageFormatgetImageFormats () const
 Get the list of supported image formats.
std::vector< VaapiImageFormatgetSubpictureFormats () const
 Get the list of supported subpicture formats.
VADisplay display () const
 Get the VA display.

Static Public Member Functions

static VaapiGlobalContextget ()
 Get the unique global VA context.

Detailed Description

VA API global context.


Constructor & Destructor Documentation

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

References GNASH_REPORT_FUNCTION.

Referenced by get().

gnash::VaapiGlobalContext::~VaapiGlobalContext ( )

Member Function Documentation

VADisplay gnash::VaapiGlobalContext::display ( ) const [inline]
VaapiGlobalContext * gnash::VaapiGlobalContext::get ( ) [static]

Get the unique global VA context.

A wrapper around a VaapiGlobalContext to ensure it's free'd on destruction.

Returns:
The global VA context

References LOG_ONCE, GNASH_REPORT_FUNCTION, VaapiGlobalContext(), and gnash::vaapi_set_is_enabled().

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

Get the VA image format matching format.

Returns:
The VA image format

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

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

Get the list of supported image formats.

Returns:
The list of image formats
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().

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: