Public Member Functions | Static Public Member Functions | Protected Attributes

gnash::image::Output Class Reference

#include <GnashImage.h>

Inheritance diagram for gnash::image::Output:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Output (boost::shared_ptr< IOChannel > out, size_t width, size_t height)
 Construct an Output for writing to an IOChannel.
virtual ~Output ()
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

Constructor & Destructor Documentation

gnash::image::Output::Output ( boost::shared_ptr< IOChannel out,
size_t  width,
size_t  height 
) [inline]

Construct an Output for writing to an IOChannel.

Parameters:
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::image::Output::~Output (  )  [inline, virtual]

Member Function Documentation

static DSOEXPORT void gnash::image::Output::writeImageData ( FileType  type,
boost::shared_ptr< gnash::IOChannel out,
const GnashImage image,
int  quality 
) [static]

Write the given image to the given IOChannel in a specified format.

Parameters:
type The image format to write in (see libcore/gnash.h)
out The IOChannel to write to.
image The image to write.
quality The quality of the image output (not used for all formats)
virtual void gnash::image::Output::writeImageRGB ( const unsigned char *  rgbData  )  [pure virtual]

Write RGB image data using the parameters supplied at construction.

Parameters:
rgbData The raw RGB image data to write as an image.

Implemented in gnash::image::JpegOutput, and gnash::image::PngOutput.

virtual void gnash::image::Output::writeImageRGBA ( const unsigned char *   )  [inline, virtual]

Write RGBA image data using the parameters supplied at construction.

Parameters:
rgbaData The raw RGBA image data to write as an image.

Reimplemented in gnash::image::PngOutput.

References _.


Member Data Documentation

const size_t gnash::image::Output::_height [protected]
boost::shared_ptr<IOChannel> gnash::image::Output::_outStream [protected]
const size_t gnash::image::Output::_width [protected]

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