#include <GnashImageJpeg.h>
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< ImageOutput > | create (boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality) |
Create a JpegImageOutput, transferring ownership to the caller. |
gnash::JpegImageOutput::JpegImageOutput | ( | boost::shared_ptr< IOChannel > | out, | |
size_t | width, | |||
size_t | height, | |||
int | quality | |||
) |
Constract a JpegImageOutput for writing to an IOChannel.
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 | ( | ) |
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.
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.
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.