Gnash
0.8.11dev
|
#include <GnashImageJpeg.h>
Public Member Functions | |
JpegOutput (std::shared_ptr< IOChannel > out, size_t width, size_t height, int quality) | |
Constract a JpegOutput for writing to an IOChannel. More... | |
~JpegOutput () | |
virtual void | writeImageRGB (const unsigned char *rgbData) |
Write RGB image data using the parameters supplied at construction. More... | |
virtual void | writeImageRGBA (const unsigned char *rgbaData) |
Write RGBA image data using the parameters supplied at construction. More... | |
![]() | |
Output (std::shared_ptr< IOChannel > out, size_t width, size_t height) | |
Construct an Output for writing to an IOChannel. More... | |
virtual | ~Output () |
Static Public Member Functions | |
static std::unique_ptr< Output > | create (std::shared_ptr< IOChannel > out, size_t width, size_t height, int quality) |
Create a JpegOutput, transferring ownership to the caller. More... | |
![]() | |
static DSOEXPORT void | writeImageData (FileType type, std::shared_ptr< gnash::IOChannel > out, const GnashImage &image, int quality) |
Write the given image to the given IOChannel in a specified format. More... | |
Additional Inherited Members | |
![]() | |
const size_t | _width |
const size_t | _height |
std::shared_ptr< IOChannel > | _outStream |
gnash::image::JpegOutput::JpegOutput | ( | std::shared_ptr< IOChannel > | out, |
size_t | width, | ||
size_t | height, | ||
int | quality | ||
) |
Constract a JpegOutput 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::image::Output::_height, gnash::image::Output::_outStream, and gnash::image::Output::_width.
Referenced by create().
gnash::image::JpegOutput::~JpegOutput | ( | ) |
|
static |
Create a JpegOutput, 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 JpegOutput().
Referenced by gnash::image::Output::writeImageData().
|
virtual |
Write RGB image data using the parameters supplied at construction.
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 y.
Referenced by writeImageRGBA().
|
virtual |
Write RGBA image data using the parameters supplied at construction.
Note: transparency is ignored because JPEG doesn't support it!
rgbaData | The raw RGBA image data to write as a JPEG. |
Reimplemented from gnash::image::Output.
References gnash::image::Output::_height, gnash::image::Output::_width, data, and writeImageRGB().