25 #include "common/array.h" 26 #include "common/rect.h" 27 #include "common/scummsys.h" 28 #include "graphics/palette.h" 30 #include "image/image_decoder.h" 33 class SeekableReadStream;
55 #define DECLARE_OPCODE(x) void x(Common::SeekableReadStream &stream) 64 void destroy()
override;
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_pnPat);
126 DECLARE_OPCODE(o_txSize);
127 DECLARE_OPCODE(o_txRatio);
128 DECLARE_OPCODE(o_versionOp);
129 DECLARE_OPCODE(o_shortLine);
130 DECLARE_OPCODE(o_shortLineFrom);
131 DECLARE_OPCODE(o_longText);
132 DECLARE_OPCODE(o_bitsRgn);
133 DECLARE_OPCODE(o_packBitsRgn);
134 DECLARE_OPCODE(o_shortComment);
135 DECLARE_OPCODE(o_longComment);
136 DECLARE_OPCODE(o_opEndPic);
137 DECLARE_OPCODE(o_headerOp);
138 DECLARE_OPCODE(o_versionOp1);
141 void setupOpcodesNormal();
142 DECLARE_OPCODE(on_bitsRect);
143 DECLARE_OPCODE(on_packBitsRect);
144 DECLARE_OPCODE(on_directBitsRect);
145 DECLARE_OPCODE(on_compressedQuickTime);
148 void setupOpcodesQuickTime();
149 DECLARE_OPCODE(oq_packBitsRect);
150 DECLARE_OPCODE(oq_directBitsRect);
151 DECLARE_OPCODE(oq_compressedQuickTime);
154 #undef DECLARE_OPCODE Definition: image_decoder.h:53
const Graphics::Surface * getSurface() const override
Definition: pict.h:65
const Graphics::Palette & getPalette() const override
Definition: pict.h:66
Definition: algorithm.h:29
Definition: formatinfo.h:28
Simple class for handling a palette data.
Definition: palette.h:55
Definition: movie_decoder.h:32