Gnash
0.8.10
|
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. |
GnashImage implementation using a VA surface.
gnash::GnashVaapiImage::GnashVaapiImage | ( | boost::shared_ptr< VaapiSurface > | surface, |
image::ImageType | type | ||
) |
References _, _surface, gnash::image::GnashImage::_width, and gnash::image::GnashImage::_height.
gnash::GnashVaapiImage::GnashVaapiImage | ( | const GnashVaapiImage & | o | ) |
image::GnashImage::iterator gnash::GnashVaapiImage::begin | ( | ) | [virtual] |
Get access to the underlying data.
NOTE: This function shall not be used
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.
Reimplemented from gnash::image::GnashImage.
References _, _surface, and gnash::image::GnashImage::_data.
boost::shared_ptr<VaapiSurface> gnash::GnashVaapiImage::surface | ( | ) | const [inline] |
void gnash::GnashVaapiImage::update | ( | boost::shared_ptr< VaapiSurface > | surface | ) | [virtual] |
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
from | image 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().