22#ifndef IMAGE_CODECS_CODEC_H
23#define IMAGE_CODECS_CODEC_H
25#include "graphics/surface.h"
26#include "graphics/pixelformat.h"
28#include "image/codec-options.h"
31class SeekableReadStream;
135Codec *createBitmapCodec(uint32 tag, uint32 streamTag,
int width,
int height,
int bitsPerPixel);
140Codec *createQuickTimeCodec(uint32 tag,
int width,
int height,
int bitsPerPixel);
virtual bool canDither(DitherType type) const
Definition: codec.h:114
virtual bool hasDirtyPalette() const
Definition: codec.h:109
DitherType
Definition: codec.h:65
@ kDitherTypeUnknown
Definition: codec.h:67
@ kDitherTypeQT
Definition: codec.h:73
@ kDitherTypeVFW
Definition: codec.h:70
virtual bool setOutputPixelFormat(const Graphics::PixelFormat &format)
Definition: codec.h:94
virtual Graphics::PixelFormat getPixelFormat() const =0
virtual const byte * getPalette()
Definition: codec.h:104
virtual bool containsPalette() const
Definition: codec.h:99
virtual const Graphics::Surface * decodeFrame(Common::SeekableReadStream &stream)=0
virtual void setCodecAccuracy(CodecAccuracy accuracy)
Definition: codec.h:124
static Graphics::PixelFormat getDefaultYUVFormat()
virtual void setDither(DitherType type, const byte *palette)
Definition: codec.h:119
Definition: algorithm.h:29