ScummVM API documentation
Image::AniDecoder Class Reference

Classes

struct  FrameDef
 
struct  Metadata
 

Public Member Functions

bool open (Common::SeekableReadStream &stream, DisposeAfterUse::Flag=DisposeAfterUse::NO)
 
void close ()
 
const MetadatagetMetadata () const
 
FrameDef getSequenceFrame (uint sequenceIndex) const
 
Common::SeekableReadStreamopenImageStream (uint imageIndex) const
 

Member Function Documentation

◆ openImageStream()

Common::SeekableReadStream* Image::AniDecoder::openImageStream ( uint  imageIndex) const

Opens a substream for an image. If the metadata field "isCURFormat" is set, you can pass the stream to IcoCurDecoder to read it. Otherwise, you must determine the format. The stream is valid for as long as the stream used to construct the AniDecoder is valid.

Parameters
imageIndexThe index of the image in the ANI file.
Returns
A substream for the image.

The documentation for this class was generated from the following file: