Gnash
0.8.11dev
|
GnashImage implementation using a VA surface. More...
#include <GnashVaapiImage.h>
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< VaapiSurface > | surface () 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. | |
![]() | |
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 | |
![]() | |
typedef boost::uint8_t | value_type |
typedef boost::scoped_array < value_type > | container_type |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
![]() | |
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. | |
![]() | |
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. |
GnashImage implementation using a VA surface.
gnash::GnashVaapiImage::GnashVaapiImage | ( | boost::shared_ptr< VaapiSurface > | surface, |
image::ImageType | type | ||
) |
References _, gnash::image::GnashImage::_height, _surface, and gnash::image::GnashImage::_width.
gnash::GnashVaapiImage::GnashVaapiImage | ( | const GnashVaapiImage & | o | ) |
|
virtual |
Get access to the underlying data.
NOTE: This function shall not be used
Reimplemented from gnash::image::GnashImage.
References _, gnash::image::GnashImage::_data, and _surface.
|
virtual |
Get read-only access to the underlying data.
Reimplemented from gnash::image::GnashImage.
References _, gnash::image::GnashImage::_data, and _surface.
|
inline |
|
virtual |
|
virtual |
References _.
|
virtual |
Copy image data from another image data.
Note that this buffer must have the same rowstride and type
from | image to copy data from. |
Reimplemented from gnash::image::GnashImage.
References assert, 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().