#include <GnashImageGif.h>
Public Member Functions | |
GifImageInput (boost::shared_ptr< IOChannel > in) | |
Construct a GifImageInput object to read from an IOChannel. | |
~GifImageInput () | |
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. | |
size_t | getComponents () const |
Get number of components (channels). | |
void | readScanline (unsigned char *rgb_data) |
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 GifImageInput and transfer ownership to the caller. |
gnash::GifImageInput::GifImageInput | ( | boost::shared_ptr< IOChannel > | in | ) |
Construct a GifImageInput object to read from an IOChannel.
in | The stream to read GIF data from. Ownership is shared between caller and GifImageInput, so it is freed automatically when the last owner is destroyed. |
Referenced by create().
gnash::GifImageInput::~GifImageInput | ( | ) |
static DSOEXPORT std::auto_ptr<ImageInput> gnash::GifImageInput::create | ( | boost::shared_ptr< IOChannel > | in | ) | [inline, static] |
Create a GifImageInput and transfer ownership to the caller.
in | The IOChannel to read GIF data from. |
References GifImageInput().
size_t gnash::GifImageInput::getComponents | ( | ) | const [inline, virtual] |
Get number of components (channels).
Implements gnash::ImageInput.
size_t gnash::GifImageInput::getHeight | ( | ) | const [virtual] |
Get the image's height in pixels.
Implements gnash::ImageInput.
size_t gnash::GifImageInput::getWidth | ( | ) | const [virtual] |
Get the image's width in pixels.
Implements gnash::ImageInput.
void gnash::GifImageInput::read | ( | ) | [virtual] |
Begin processing the image data.
Implements gnash::ImageInput.
void gnash::GifImageInput::readScanline | ( | unsigned char * | rgb_data | ) | [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.