Public Member Functions | Static Public Member Functions

gnash::image::JpegOutput Class Reference

#include <GnashImageJpeg.h>

Inheritance diagram for gnash::image::JpegOutput:
Inheritance graph
[legend]
Collaboration diagram for gnash::image::JpegOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Constructor & Destructor Documentation

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

Constract a JpegOutput 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::image::Output::_height, gnash::image::Output::_outStream, gnash::image::Output::_width, and TRUE.

Referenced by create().

gnash::image::JpegOutput::~JpegOutput (  ) 

Member Function Documentation

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

Create a JpegOutput, 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 JpegOutput().

void gnash::image::JpegOutput::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::image::Output.

References gnash::image::Output::_height, gnash::image::Output::_width, and gnash::key::y.


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