Gnash
0.8.11dev
|
GnashImage implementation using a VA surface. More...
#include <GnashVaapiImage.h>
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< VaapiSurface > | surface () 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... | |
![]() | |
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 | |
![]() | |
typedef std::uint8_t | value_type |
typedef std::unique_ptr< 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. More... | |
GnashImage (size_t width, size_t height, ImageType type, ImageLocation location=GNASH_IMAGE_CPU) | |
Construct an empty GnashImage. More... | |
![]() | |
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... | |
GnashImage implementation using a VA surface.
gnash::GnashVaapiImage::GnashVaapiImage | ( | std::shared_ptr< VaapiSurface > | surface, |
image::ImageType | type | ||
) |
gnash::GnashVaapiImage::GnashVaapiImage | ( | const GnashVaapiImage & | o | ) |
gnash::GnashVaapiImage::~GnashVaapiImage | ( | ) |
References _, and gnash::log_debug().
|
virtual |
Get access to the underlying data.
NOTE: This function shall not be used
Reimplemented from gnash::image::GnashImage.
References _, and gnash::log_debug().
|
virtual |
Get read-only access to the underlying data.
Reimplemented from gnash::image::GnashImage.
References _, and gnash::log_debug().
|
inline |
|
virtual |
Referenced by update().
|
virtual |
References _, and gnash::log_debug().
|
virtual |
References _, gnash::image::GnashImage::_data, gnash::image::GnashImage::begin(), gnash::image::GNASH_IMAGE_CPU, gnash::image::GNASH_IMAGE_GPU, gnash::image::GnashImage::location(), gnash::log_error(), gnash::image::GnashImage::size(), gnash::image::GnashImage::stride(), surface(), gnash::image::GnashImage::type(), and update().