Gnash  0.8.11dev
Public Member Functions
gnash::image::ImageRGB Class Reference

24-bit RGB bitmap More...

#include <GnashImage.h>

Inheritance diagram for gnash::image::ImageRGB:
gnash::image::GnashImage gnash::media::gst::gnashGstBuffer

List of all members.

Public Member Functions

 ImageRGB (size_t width, size_t height)
 Create an empty RGB image with uninitialized data.
 ImageRGB (iterator data, size_t width, size_t height)
 Create an ImageRGB taking ownership of the data.
virtual ~ImageRGB ()
- 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.
void update (const GnashImage &from)
 Copy image data from another image data.
virtual iterator begin ()
 Access the raw data.
virtual const_iterator begin () const
 Access the raw data.
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

24-bit RGB bitmap

Channels are in RGB order.


Constructor & Destructor Documentation

gnash::image::ImageRGB::ImageRGB ( size_t  width,
size_t  height 
)

Create an empty RGB image with uninitialized data.

gnash::image::ImageRGB::ImageRGB ( iterator  data,
size_t  width,
size_t  height 
)
inline

Create an ImageRGB taking ownership of the data.

gnash::image::ImageRGB::~ImageRGB ( )
virtual

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