ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Image::CinepakDecoder Class Reference

Cinepak decoder. More...

#include <cinepak.h>

Inheritance diagram for Image::CinepakDecoder:
Collaboration diagram for Image::CinepakDecoder:

List of all members.

Public Member Functions

 CinepakDecoder (int bitsPerPixel=24)
 ~CinepakDecoder ()
const Graphics::SurfacedecodeFrame (Common::SeekableReadStream &stream)
 Decode the frame for the given data and return a pointer to a surface containing the decoded frame.
Graphics::PixelFormat getPixelFormat () const
 Get the format that the surface returned from decodeImage() will be in.
bool containsPalette () const
 Can this codec's frames contain a palette?
const bytegetPalette ()
 Get the palette last decoded from decodeImage.
bool hasDirtyPalette () const
 Does the codec have a dirty palette?
bool canDither (DitherType type) const
 Can the codec dither down to 8bpp?
void setDither (DitherType type, const byte *palette)
 Activate dithering mode with a palette.

Private Member Functions

void initializeCodebook (uint16 strip, byte codebookType)
void loadCodebook (Common::SeekableReadStream &stream, uint16 strip, byte codebookType, byte chunkID, uint32 chunkSize)
void decodeVectors (Common::SeekableReadStream &stream, uint16 strip, byte chunkID, uint32 chunkSize)
byte findNearestRGB (int index) const
void ditherVectors (Common::SeekableReadStream &stream, uint16 strip, byte chunkID, uint32 chunkSize)
void ditherCodebookQT (uint16 strip, byte codebookType, uint16 codebookIndex)

Private Attributes

CinepakFrame _curFrame
int32 _y
int _bitsPerPixel
Graphics::PixelFormat _pixelFormat
byte_clipTable
byte_clipTableBuf
byte_ditherPalette
bool _dirtyPalette
byte_colorMap
DitherType _ditherType

Detailed Description

Cinepak decoder.

Used by BMP/AVI and PICT/QuickTime.

Used in engines:

  • sherlock

Definition at line 71 of file cinepak.h.


Constructor & Destructor Documentation

Image::CinepakDecoder::CinepakDecoder ( int  bitsPerPixel = 24  ) 

Definition at line 353 of file cinepak.cpp.

Image::CinepakDecoder::~CinepakDecoder (  ) 

Definition at line 387 of file cinepak.cpp.


Member Function Documentation

bool Image::CinepakDecoder::canDither ( DitherType  type  )  const [virtual]

Can the codec dither down to 8bpp?

Reimplemented from Image::Codec.

Definition at line 628 of file cinepak.cpp.

bool Image::CinepakDecoder::containsPalette (  )  const [inline, virtual]

Can this codec's frames contain a palette?

Reimplemented from Image::Codec.

Definition at line 79 of file cinepak.h.

const Graphics::Surface * Image::CinepakDecoder::decodeFrame ( Common::SeekableReadStream stream  )  [virtual]

Decode the frame for the given data and return a pointer to a surface containing the decoded frame.

Returns:
a pointer to the decoded frame

Implements Image::Codec.

Definition at line 400 of file cinepak.cpp.

void Image::CinepakDecoder::decodeVectors ( Common::SeekableReadStream stream,
uint16  strip,
byte  chunkID,
uint32  chunkSize 
) [private]

Definition at line 618 of file cinepak.cpp.

void Image::CinepakDecoder::ditherCodebookQT ( uint16  strip,
byte  codebookType,
uint16  codebookIndex 
) [private]

Definition at line 560 of file cinepak.cpp.

void Image::CinepakDecoder::ditherVectors ( Common::SeekableReadStream stream,
uint16  strip,
byte  chunkID,
uint32  chunkSize 
) [private]

Definition at line 691 of file cinepak.cpp.

byte Image::CinepakDecoder::findNearestRGB ( int  index  )  const [private]

Definition at line 657 of file cinepak.cpp.

const byte* Image::CinepakDecoder::getPalette (  )  [inline, virtual]

Get the palette last decoded from decodeImage.

Reimplemented from Image::Codec.

Definition at line 80 of file cinepak.h.

Graphics::PixelFormat Image::CinepakDecoder::getPixelFormat (  )  const [inline, virtual]

Get the format that the surface returned from decodeImage() will be in.

Implements Image::Codec.

Definition at line 77 of file cinepak.h.

bool Image::CinepakDecoder::hasDirtyPalette (  )  const [inline, virtual]

Does the codec have a dirty palette?

Reimplemented from Image::Codec.

Definition at line 81 of file cinepak.h.

void Image::CinepakDecoder::initializeCodebook ( uint16  strip,
byte  codebookType 
) [private]

Definition at line 507 of file cinepak.cpp.

void Image::CinepakDecoder::loadCodebook ( Common::SeekableReadStream stream,
uint16  strip,
byte  codebookType,
byte  chunkID,
uint32  chunkSize 
) [private]

Definition at line 520 of file cinepak.cpp.

void Image::CinepakDecoder::setDither ( DitherType  type,
const byte palette 
) [virtual]

Activate dithering mode with a palette.

Reimplemented from Image::Codec.

Definition at line 632 of file cinepak.cpp.


Member Data Documentation

Definition at line 88 of file cinepak.h.

Definition at line 90 of file cinepak.h.

Definition at line 90 of file cinepak.h.

Definition at line 94 of file cinepak.h.

Definition at line 86 of file cinepak.h.

Definition at line 93 of file cinepak.h.

Definition at line 92 of file cinepak.h.

Definition at line 95 of file cinepak.h.

Definition at line 87 of file cinepak.h.


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


Generated on Sat May 25 2019 05:06:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge