Public Member Functions | Static Public Member Functions

gnash::JpegImageOutput Class Reference

#include <GnashImageJpeg.h>

Inheritance diagram for gnash::JpegImageOutput:
gnash::ImageOutput

List of all members.

Public Member Functions

 JpegImageOutput (boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)
 Constract a JpegImageOutput for writing to an IOChannel.
 ~JpegImageOutput ()
void writeImageRGB (const unsigned char *rgbData)
 Write RGB image data using the parameters supplied at construction.

Static Public Member Functions

static std::auto_ptr< ImageOutputcreate (boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)
 Create a JpegImageOutput, transferring ownership to the caller.

Constructor & Destructor Documentation

gnash::JpegImageOutput::JpegImageOutput ( boost::shared_ptr< IOChannel out,
size_t  width,
size_t  height,
int  quality 
)

Constract a JpegImageOutput for writing to an IOChannel.

Parameters:
out The gnash::IOChannel to write the image to
width The width of the resulting image
height The height of the resulting image.
quality The quality of the created image, from 1-100.

References gnash::ImageOutput::_height, gnash::ImageOutput::_outStream, gnash::ImageOutput::_width, and TRUE.

Referenced by create().

gnash::JpegImageOutput::~JpegImageOutput (  ) 

Member Function Documentation

std::auto_ptr< ImageOutput > gnash::JpegImageOutput::create ( boost::shared_ptr< IOChannel out,
size_t  width,
size_t  height,
int  quality 
) [static]

Create a JpegImageOutput, transferring ownership to the caller.

Parameters:
out The gnash::IOChannel to write the image to
width The width of the resulting image
height The height of the resulting image.
quality The quality of the created image, from 1-100.

References JpegImageOutput().

void gnash::JpegImageOutput::writeImageRGB ( const unsigned char *  rgbData  )  [virtual]

Write RGB image data using the parameters supplied at construction.

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

Implements gnash::ImageOutput.

References gnash::ImageOutput::_height, gnash::ImageOutput::_width, and gnash::key::y.


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