24 #ifndef GNASH_IMAGE_JPEG_H
25 #define GNASH_IMAGE_JPEG_H
41 namespace gnash {
class IOChannel; }
54 const char* _errorOccurred;
59 jpeg_decompress_struct m_cinfo;
60 jpeg_error_mgr m_jerr;
62 bool _compressorOpened;
121 static std::auto_ptr<Input>
create(boost::shared_ptr<IOChannel> in)
123 std::auto_ptr<Input> ret(
new JpegInput(in));
125 if (ret.get()) ret->read();
146 boost::shared_ptr<IOChannel> in,
unsigned int maxHeaderBytes)
148 std::auto_ptr<JpegInput> ret (
new JpegInput(in));
150 if (ret.get()) ret->readHeader(maxHeaderBytes);
178 size_t height,
int quality);
200 static std::auto_ptr<Output>
create(boost::shared_ptr<IOChannel> out,
201 size_t width,
size_t height,
int quality);
205 jpeg_compress_struct m_cinfo;
206 jpeg_error_mgr m_jerr;
Definition: GnashImageJpeg.h:166
~JpegOutput()
Definition: GnashImageJpeg.cpp:585
Definition: klash_part.cpp:329
static std::auto_ptr< Output > create(boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)
Create a JpegOutput, transferring ownership to the caller.
Definition: GnashImageJpeg.cpp:623
Definition: klash_part.cpp:329
#define DSOEXPORT
Definition: dsodefs.h:55
virtual void writeImageRGB(const unsigned char *rgbData)
Write RGB image data using the parameters supplied at construction.
Definition: GnashImageJpeg.cpp:593
Definition: GnashImage.h:333
virtual void writeImageRGBA(const unsigned char *rgbaData)
Write RGBA image data using the parameters supplied at construction.
Definition: GnashImageJpeg.cpp:606
JpegOutput(boost::shared_ptr< IOChannel > out, size_t width, size_t height, int quality)
Constract a JpegOutput for writing to an IOChannel.
Definition: GnashImageJpeg.cpp:563