pleyo.com

BAL::BIImageDecoder Class Reference

The ImageDecoder class represents the interface class for specific image format decoders (e.g., GIF, JPG, PNG, ICO) to derive from. More...

#include <BIImageDecoder.h>

Inheritance diagram for BAL::BIImageDecoder:

BC::BCGIFImageDecoder BC::BCGIFImageDecoder BC::BCJPEGImageDecoder BC::BCJPEGImageDecoder BC::BCPNGImageDecoder BC::BCPNGImageDecoder

List of all members.

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 RGBA32BufferframeBufferAtIndex (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.


Detailed Description

The ImageDecoder class represents the interface class for specific image format decoders (e.g., GIF, JPG, PNG, ICO) to derive from.

All decoders decode into RGBA32 format and the base class manages the RGBA32 frame cache.


Constructor & Destructor Documentation

virtual BAL::BIImageDecoder::~BIImageDecoder (  )  [inline, virtual]

BIImageDecoder destructor.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 20:04:19 2007 for Origyn Web Browser by Doxygen 1.5.3

pleyo.com
pleyo.com