#include <GnashImage.h>
Public Member Functions | |
ImageOutput (boost::shared_ptr< IOChannel > out, size_t width, size_t height) | |
Construct an ImageOutput for writing to an IOChannel. | |
virtual | ~ImageOutput () |
virtual void | writeImageRGB (const unsigned char *rgbData)=0 |
Write RGB image data using the parameters supplied at construction. | |
virtual void | writeImageRGBA (const unsigned char *) |
Write RGBA image data using the parameters supplied at construction. | |
Static Public Member Functions | |
static DSOEXPORT void | writeImageData (FileType type, boost::shared_ptr< gnash::IOChannel > out, const GnashImage &image, int quality) |
Write the given image to the given IOChannel in a specified format. | |
Protected Attributes | |
const size_t | _width |
const size_t | _height |
boost::shared_ptr< IOChannel > | _outStream |
gnash::ImageOutput::ImageOutput | ( | boost::shared_ptr< IOChannel > | out, | |
size_t | width, | |||
size_t | height | |||
) | [inline] |
Construct an ImageOutput for writing to an IOChannel.
out | The gnash::IOChannel to write the image to. Ownership is shared. | |
width | The width of the resulting image | |
height | The height of the resulting image. |
virtual gnash::ImageOutput::~ImageOutput | ( | ) | [inline, virtual] |
static DSOEXPORT void gnash::ImageOutput::writeImageData | ( | FileType | type, | |
boost::shared_ptr< gnash::IOChannel > | out, | |||
const GnashImage & | image, | |||
int | quality | |||
) | [static] |
virtual void gnash::ImageOutput::writeImageRGB | ( | const unsigned char * | rgbData | ) | [pure virtual] |
Write RGB image data using the parameters supplied at construction.
rgbData | The raw RGB image data to write as an image. |
Implemented in gnash::JpegImageOutput, and gnash::PngImageOutput.
virtual void gnash::ImageOutput::writeImageRGBA | ( | const unsigned char * | ) | [inline, virtual] |
Write RGBA image data using the parameters supplied at construction.
rgbaData | The raw RGBA image data to write as an image. |
Reimplemented in gnash::PngImageOutput.
References _.
const size_t gnash::ImageOutput::_height [protected] |
Referenced by gnash::JpegImageOutput::JpegImageOutput(), and gnash::JpegImageOutput::writeImageRGB().
boost::shared_ptr<IOChannel> gnash::ImageOutput::_outStream [protected] |
Referenced by gnash::JpegImageOutput::JpegImageOutput().
const size_t gnash::ImageOutput::_width [protected] |
Referenced by gnash::JpegImageOutput::JpegImageOutput(), and gnash::JpegImageOutput::writeImageRGB().