#include <GnashImagePng.h>
Public Member Functions | |
PngImageInput (boost::shared_ptr< IOChannel > in) | |
Construct a PngImageInput object to read from an IOChannel. | |
~PngImageInput () | |
void | read () |
Begin processing the image data. | |
size_t | getHeight () const |
Get the image's height in pixels. | |
size_t | getWidth () const |
Get the image's width in pixels. | |
void | readScanline (unsigned char *imageData) |
Read a scanline's worth of image data into the given buffer. | |
Static Public Member Functions | |
static DSOEXPORT std::auto_ptr < ImageInput > | create (boost::shared_ptr< IOChannel > in) |
Create a PngImageInput and transfer ownership to the caller. |
gnash::PngImageInput::PngImageInput | ( | boost::shared_ptr< IOChannel > | in | ) |
Construct a PngImageInput object to read from an IOChannel.
in | The stream to read PNG data from. Ownership is shared between caller and JpegImageInput, so it is freed automatically when the last owner is destroyed. |
Referenced by create().
gnash::PngImageInput::~PngImageInput | ( | ) |
static DSOEXPORT std::auto_ptr<ImageInput> gnash::PngImageInput::create | ( | boost::shared_ptr< IOChannel > | in | ) | [inline, static] |
Create a PngImageInput and transfer ownership to the caller.
in | The IOChannel to read PNG data from. |
References PngImageInput().
size_t gnash::PngImageInput::getHeight | ( | ) | const [virtual] |
Get the image's height in pixels.
Implements gnash::ImageInput.
size_t gnash::PngImageInput::getWidth | ( | ) | const [virtual] |
Get the image's width in pixels.
Implements gnash::ImageInput.
void gnash::PngImageInput::read | ( | ) | [virtual] |
Begin processing the image data.
Implements gnash::ImageInput.
void gnash::PngImageInput::readScanline | ( | unsigned char * | imageData | ) | [virtual] |
Read a scanline's worth of image data into the given buffer.
The amount of data read is getWidth() * getComponents().
rgbData | The buffer for writing raw RGB data to. |
Implements gnash::ImageInput.