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 (std::shared_ptr< VaapiSurface > surface, image::ImageType type)
 
 GnashVaapiImage (const GnashVaapiImage &o)
 
 ~GnashVaapiImage ()
 
virtual void update (std::shared_ptr< VaapiSurface > surface)
 
virtual void update (std::uint8_t *data)
 
virtual void update (const image::GnashImage &from)
 
std::shared_ptr< VaapiSurfacesurface () const
 Get access to the underlying surface. More...
 
virtual iterator begin ()
 Get access to the underlying data. More...
 
virtual const_iterator begin () const
 Get read-only access to the underlying data. More...
 
- Public Member Functions inherited from gnash::image::GnashImage
virtual ~GnashImage ()
 
ImageType type () const
 Return the ImageType of the image. More...
 
ImageLocation location () const
 Return the ImageLocation of the image. More...
 
size_t size () const
 Get the size of the image buffer. More...
 
virtual size_t stride () const
 Get the pitch of the image buffer. More...
 
size_t channels () const
 Get the number of channels. More...
 
size_t width () const
 Get the image's width. More...
 
size_t height () const
 Get the image's width. More...
 
void update (const_iterator data)
 Copy image data from a buffer. More...
 
void update (const GnashImage &from)
 Copy image data from another image data. More...
 
iterator end ()
 An iterator to the end of the data. More...
 
const_iterator end () const
 An iterator to the end of the data. More...
 

Additional Inherited Members

- Public Types inherited from gnash::image::GnashImage
typedef std::uint8_t value_type
 
typedef std::unique_ptr< 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. More...
 
 GnashImage (size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU)
 Construct an empty GnashImage. More...
 
- Protected Attributes inherited from gnash::image::GnashImage
const ImageType _type
 The type of the image: RGBA or RGB. More...
 
const ImageLocation _location
 Image data location (CPU or GPU) More...
 
const size_t _width
 Width of image, in pixels. More...
 
const size_t _height
 Height of image, in pixels. More...
 
container_type _data
 Data if held in this class. More...
 

Detailed Description

GnashImage implementation using a VA surface.

Constructor & Destructor Documentation

§ GnashVaapiImage() [1/2]

gnash::GnashVaapiImage::GnashVaapiImage ( std::shared_ptr< VaapiSurface surface,
image::ImageType  type 
)

§ GnashVaapiImage() [2/2]

gnash::GnashVaapiImage::GnashVaapiImage ( const GnashVaapiImage o)

§ ~GnashVaapiImage()

gnash::GnashVaapiImage::~GnashVaapiImage ( )

References _, and gnash::log_debug().

Member Function Documentation

§ begin() [1/2]

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 _, and gnash::log_debug().

§ begin() [2/2]

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 _, and gnash::log_debug().

§ surface()

std::shared_ptr<VaapiSurface> gnash::GnashVaapiImage::surface ( ) const
inline

Get access to the underlying surface.

Returns
A pointer to the VA surface.

Referenced by update().

§ update() [1/3]

void gnash::GnashVaapiImage::update ( std::shared_ptr< VaapiSurface surface)
virtual

Referenced by update().

§ update() [2/3]

void gnash::GnashVaapiImage::update ( std::uint8_t *  data)
virtual

References _, and gnash::log_debug().

§ update() [3/3]

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

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