25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 29 #include "image/image_decoder.h" 32 class SeekableReadStream;
54 #define DECLARE_OPCODE(x) void x(Common::SeekableReadStream &stream) 66 int getPaletteSize()
const {
return 256; }
92 byte _palette[256 * 3];
93 uint16 _paletteColorCount;
95 bool _continueParsing;
105 void outputPixelBuffer(byte *&out, byte value, byte bitsPerPixel);
110 PICTOpcode() { op = 0; proc = 0; desc = 0; }
111 PICTOpcode(uint16 o, OpcodeProcPICT p,
const char *d) { op = o; proc = p; desc = d; }
119 void setupOpcodesCommon();
120 DECLARE_OPCODE(o_nop);
121 DECLARE_OPCODE(o_clip);
122 DECLARE_OPCODE(o_txFont);
123 DECLARE_OPCODE(o_txFace);
124 DECLARE_OPCODE(o_pnSize);
125 DECLARE_OPCODE(o_txSize);
126 DECLARE_OPCODE(o_txRatio);
127 DECLARE_OPCODE(o_versionOp);
128 DECLARE_OPCODE(o_longText);
129 DECLARE_OPCODE(o_bitsRgn);
130 DECLARE_OPCODE(o_packBitsRgn);
131 DECLARE_OPCODE(o_shortComment);
132 DECLARE_OPCODE(o_longComment);
133 DECLARE_OPCODE(o_opEndPic);
134 DECLARE_OPCODE(o_headerOp);
135 DECLARE_OPCODE(o_versionOp1);
138 void setupOpcodesNormal();
139 DECLARE_OPCODE(on_bitsRect);
140 DECLARE_OPCODE(on_packBitsRect);
141 DECLARE_OPCODE(on_directBitsRect);
142 DECLARE_OPCODE(on_compressedQuickTime);
145 void setupOpcodesQuickTime();
146 DECLARE_OPCODE(oq_packBitsRect);
147 DECLARE_OPCODE(oq_directBitsRect);
148 DECLARE_OPCODE(oq_compressedQuickTime);
151 #undef DECLARE_OPCODE Definition: image_decoder.h:52
Definition: algorithm.h:29
Definition: formatinfo.h:28
const Graphics::Surface * getSurface() const
Definition: pict.h:64
const byte * getPalette() const
Definition: pict.h:65
Definition: movie_decoder.h:32
uint16 getPaletteColorCount() const
Definition: pict.h:67