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;
97 bool _continueParsing;
107 void outputPixelBuffer(byte *&out, byte value, byte bitsPerPixel);
112 PICTOpcode() { op = 0; proc = 0; desc = 0; }
113 PICTOpcode(uint16 o, OpcodeProcPICT p,
const char *d) { op = o; proc = p; desc = d; }
121 void setupOpcodesCommon();
122 DECLARE_OPCODE(o_nop);
123 DECLARE_OPCODE(o_clip);
124 DECLARE_OPCODE(o_txFont);
125 DECLARE_OPCODE(o_txFace);
126 DECLARE_OPCODE(o_pnSize);
127 DECLARE_OPCODE(o_pnPat);
128 DECLARE_OPCODE(o_txSize);
129 DECLARE_OPCODE(o_txRatio);
130 DECLARE_OPCODE(o_versionOp);
131 DECLARE_OPCODE(o_shortLine);
132 DECLARE_OPCODE(o_shortLineFrom);
133 DECLARE_OPCODE(o_longText);
134 DECLARE_OPCODE(o_bitsRgn);
135 DECLARE_OPCODE(o_packBitsRgn);
136 DECLARE_OPCODE(o_shortComment);
137 DECLARE_OPCODE(o_longComment);
138 DECLARE_OPCODE(o_opEndPic);
139 DECLARE_OPCODE(o_headerOp);
140 DECLARE_OPCODE(o_versionOp1);
143 void setupOpcodesNormal();
144 DECLARE_OPCODE(on_bitsRect);
145 DECLARE_OPCODE(on_packBitsRect);
146 DECLARE_OPCODE(on_directBitsRect);
147 DECLARE_OPCODE(on_compressedQuickTime);
150 void setupOpcodesQuickTime();
151 DECLARE_OPCODE(oq_packBitsRect);
152 DECLARE_OPCODE(oq_directBitsRect);
153 DECLARE_OPCODE(oq_compressedQuickTime);
156 #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