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

VA image abstraction. More...

#include <VaapiImage.h>

Public Member Functions

 VaapiImage (unsigned int width, unsigned int height, VaapiImageFormat format=VAAPI_IMAGE_RGB32)
 
 ~VaapiImage ()
 
VAImageID get () const
 Get VA image ID. More...
 
VaapiImageFormat format () const
 Get image format. More...
 
unsigned int width () const
 Get image width. More...
 
unsigned int height () const
 Get image height. More...
 
bool isMapped () const
 Check whether the VA image is mapped. More...
 
bool map ()
 Map image data. More...
 
bool unmap ()
 Unmap image data. More...
 
unsigned int getPlaneCount () const
 Get number of planes. More...
 
std::uint8_t * getPlane (int plane) const
 Get pixels for the specified plane. More...
 
unsigned int getPitch (int plane) const
 Get scanline pitch for the specified plane. More...
 

Detailed Description

VA image abstraction.

Constructor & Destructor Documentation

§ VaapiImage()

gnash::VaapiImage::VaapiImage ( unsigned int  width,
unsigned int  height,
VaapiImageFormat  format = VAAPI_IMAGE_RGB32 
)

§ ~VaapiImage()

gnash::VaapiImage::~VaapiImage ( )

Member Function Documentation

§ format()

VaapiImageFormat gnash::VaapiImage::format ( ) const
inline

Get image format.

§ get()

VAImageID gnash::VaapiImage::get ( ) const
inline

Get VA image ID.

Referenced by gnash::VaapiSurface::clear().

§ getPitch()

unsigned int gnash::VaapiImage::getPitch ( int  plane) const

Get scanline pitch for the specified plane.

References isMapped().

Referenced by gnash::VaapiSurface::clear().

§ getPlane()

std::uint8_t * gnash::VaapiImage::getPlane ( int  plane) const

Get pixels for the specified plane.

References isMapped().

Referenced by gnash::VaapiSurface::clear().

§ getPlaneCount()

unsigned int gnash::VaapiImage::getPlaneCount ( ) const
inline

Get number of planes.

§ height()

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

Get image height.

Referenced by gnash::VaapiSurface::clear(), and ~VaapiImage().

§ isMapped()

bool gnash::VaapiImage::isMapped ( ) const
inline

Check whether the VA image is mapped.

Referenced by getPitch(), getPlane(), map(), and unmap().

§ map()

bool gnash::VaapiImage::map ( )

§ unmap()

bool gnash::VaapiImage::unmap ( )

§ width()

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

Get image width.

Referenced by gnash::VaapiSurface::clear(), and ~VaapiImage().


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