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

GnashImage implementation using a VA surface. More...

#include <GnashVaapiImage.h>

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

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.
- Public Member Functions inherited from gnash::image::GnashImage
virtual ~GnashImage ()
ImageType type () const
 Return the ImageType of the image.
ImageLocation location () const
 Return the ImageLocation of the image.
size_t size () const
 Get the size of the image buffer.
virtual size_t stride () const
 Get the pitch of the image buffer.
size_t channels () const
 Get the number of channels.
size_t width () const
 Get the image's width.
size_t height () const
 Get the image's width.
void update (const_iterator data)
 Copy image data from a buffer.
iterator end ()
 An iterator to the end of the data.
const_iterator end () const
 An iterator to the end of the data.

Additional Inherited Members

- Public Types inherited from gnash::image::GnashImage
typedef boost::uint8_t value_type
typedef boost::scoped_array
< value_type
container_type
typedef value_typeiterator
typedef const value_typeconst_iterator
- Protected Member Functions inherited from gnash::image::GnashImage
 GnashImage (iterator data, size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU)
 Construct a GnashImage from a data buffer, taking ownership of the data.
 GnashImage (size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU)
 Construct an empty GnashImage.
- Protected Attributes inherited from gnash::image::GnashImage
const ImageType _type
 The type of the image: RGBA or RGB.
const ImageLocation _location
 Image data location (CPU or GPU)
const size_t _width
 Width of image, in pixels.
const size_t _height
 Height of image, in pixels.
container_type _data
 Data if held in this class.

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 _, gnash::image::GnashImage::_data, and _surface.

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 _, gnash::image::GnashImage::_data, and _surface.

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 gnash::image::GnashImage::begin(), gnash::image::GNASH_IMAGE_CPU, gnash::image::GNASH_IMAGE_GPU, gnash::image::GnashImage::location(), gnash::image::GnashImage::size(), gnash::image::GnashImage::stride(), surface(), gnash::image::GnashImage::type(), and update().


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