#include <BIImageDecoder.h>

Public Member Functions | |
| virtual | ~BIImageDecoder () |
| BIImageDecoder destructor. | |
| virtual void | setData (const Vector< char > *data, bool allDataReceived)=0 |
| All specific decoder plugins must do something with the data they are given. | |
| virtual bool | isSizeAvailable () const =0 |
| Whether or not the size information has been decoded yet. | |
| virtual WebCore::IntSize | size () const =0 |
| Requests the size. | |
| virtual int | frameCount ()=0 |
| The total number of frames for the image. | |
| virtual int | repetitionCount () const =0 |
| The number of repetitions to perform for an animation loop. | |
| virtual RGBA32Buffer * | frameBufferAtIndex (size_t index)=0 |
| Called to obtain the RGBA32Buffer full of decoded data for rendering. | |
| virtual bool | supportsAlpha () const =0 |
| Whether or not the underlying image format even supports alpha transparency. | |
All decoders decode into RGBA32 format and the base class manages the RGBA32 frame cache.
| virtual BAL::BIImageDecoder::~BIImageDecoder | ( | ) | [inline, virtual] |
BIImageDecoder destructor.
| virtual void BAL::BIImageDecoder::setData | ( | const Vector< char > * | data, | |
| bool | allDataReceived | |||
| ) | [pure virtual] |
All specific decoder plugins must do something with the data they are given.
FIXME : Vector should be passed by ref
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual bool BAL::BIImageDecoder::isSizeAvailable | ( | ) | const [pure virtual] |
Whether or not the size information has been decoded yet.
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual WebCore::IntSize BAL::BIImageDecoder::size | ( | ) | const [pure virtual] |
Requests the size.
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual int BAL::BIImageDecoder::frameCount | ( | ) | [pure virtual] |
The total number of frames for the image.
Classes that support multiple frames will scan the image data for the answer if they need to (without necessarily decoding all of the individual frames).
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual int BAL::BIImageDecoder::repetitionCount | ( | ) | const [pure virtual] |
The number of repetitions to perform for an animation loop.
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual RGBA32Buffer* BAL::BIImageDecoder::frameBufferAtIndex | ( | size_t | index | ) | [pure virtual] |
Called to obtain the RGBA32Buffer full of decoded data for rendering.
The decoder plugin will decode as much of the frame as it can before handing back the buffer.
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.
| virtual bool BAL::BIImageDecoder::supportsAlpha | ( | ) | const [pure virtual] |
Whether or not the underlying image format even supports alpha transparency.
Implemented in BC::BCGIFImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, BC::BCJPEGImageDecoder, BC::BCPNGImageDecoder, and BC::BCGIFImageDecoder.