Gnash  0.8.10
Public Member Functions
gnash::GnashVaapiImage Class Reference

GnashImage implementation using a VA surface. More...

#include <GnashVaapiImage.h>

Inheritance diagram for gnash::GnashVaapiImage:
gnash::image::GnashImage

List of all members.

Public Member Functions

 GnashVaapiImage (boost::shared_ptr< VaapiSurface > surface, image::ImageType type)
 GnashVaapiImage (const GnashVaapiImage &o)
 ~GnashVaapiImage ()
virtual void update (boost::shared_ptr< VaapiSurface > surface)
virtual void update (boost::uint8_t *data)
virtual void update (const image::GnashImage &from)
 Copy image data from another image data.
boost::shared_ptr< VaapiSurfacesurface () const
 Get access to the underlying surface.
virtual iterator begin ()
 Get access to the underlying data.
virtual const_iterator begin () const
 Get read-only access to the underlying data.

Detailed Description

GnashImage implementation using a VA surface.


Constructor & Destructor Documentation

gnash::GnashVaapiImage::GnashVaapiImage ( boost::shared_ptr< VaapiSurface surface,
image::ImageType  type 
)
gnash::GnashVaapiImage::GnashVaapiImage ( const GnashVaapiImage o)
gnash::GnashVaapiImage::~GnashVaapiImage ( )

References _, and _surface.


Member Function Documentation

image::GnashImage::iterator gnash::GnashVaapiImage::begin ( ) [virtual]

Get access to the underlying data.

NOTE: This function shall not be used

Returns:
NULL.

Reimplemented from gnash::image::GnashImage.

References _, _surface, and gnash::image::GnashImage::_data.

image::GnashImage::const_iterator gnash::GnashVaapiImage::begin ( ) const [virtual]

Get read-only access to the underlying data.

Returns:
A read-only pointer to the raw image data.

Reimplemented from gnash::image::GnashImage.

References _, _surface, and gnash::image::GnashImage::_data.

boost::shared_ptr<VaapiSurface> gnash::GnashVaapiImage::surface ( ) const [inline]

Get access to the underlying surface.

Returns:
A pointer to the VA surface.

References _surface.

Referenced by update().

void gnash::GnashVaapiImage::update ( boost::shared_ptr< VaapiSurface surface) [virtual]

References _surface, and surface().

Referenced by update().

void gnash::GnashVaapiImage::update ( boost::uint8_t *  data) [virtual]

References _.

void gnash::GnashVaapiImage::update ( const image::GnashImage from) [virtual]

Copy image data from another image data.

Note that this buffer must have the same rowstride and type

Parameters:
fromimage to copy data from.

Reimplemented from gnash::image::GnashImage.

References assert, gnash::image::GnashImage::stride(), gnash::image::GnashImage::size(), gnash::image::GnashImage::type(), gnash::image::GnashImage::location(), gnash::image::GNASH_IMAGE_CPU, update(), gnash::image::GnashImage::begin(), gnash::image::GNASH_IMAGE_GPU, and surface().


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