ScummVM API documentation
codec_ra2.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef SCUMM_SMUSH_REBEL_CODEC_RA2_H
23#define SCUMM_SMUSH_REBEL_CODEC_RA2_H
24
25#include "common/scummsys.h"
26
27namespace Scumm {
28
29void smushDecodeRLEOpaque(byte *dst, const byte *src, int left, int top, int width, int height, int pitch, int dataSize);
30void smushDecodeRA2RLE(byte *dst, const byte *src, int left, int top, int width, int height, int pitch, int dataSize, int sourceSkipX, bool opaque);
31void smushDecodeLineUpdate(byte *dst, const byte *src, int left, int top, int width, int height, int pitch, int dataSize);
32void smushDecodeSkipRLE(byte *dst, const byte *src, int left, int top, int width, int height, int pitch, int dataSize);
33void smushDecodeRA2SkipRemap(byte *dst, const byte *src, int left, int top, int width, int height, int pitch, int dataSize, const byte *remap, byte addColor);
34bool smushPrepareRA2BlurData(const byte *src, int dataSize, byte *palette, byte *lookup, const byte *&maskData, int &maskSize);
35void smushDecodeRA2Blur(byte *dst, const byte *src, int left, int top, int dstWidth, int dstHeight, int pitch, int dataSize, byte *palette, byte *lookup);
36void smushDecodeRA2BlurClip(byte *dst, const byte *src, int left, int top,
37 int clipLeft, int clipTop, int clipRight, int clipBottom,
38 int dstWidth, int dstHeight, int pitch, int dataSize, byte *palette, byte *lookup);
39void copyRA2Handler7PerspectiveViewport(byte *dst, int dstPitch, int dstWidth, int dstHeight,
40 const byte *src, int srcPitch, int srcWidth, int srcHeight,
41 int perspectiveX, int perspectiveY, int viewShift);
42const byte *smushSkipRLELines(const byte *src, int &dataSize, int lines);
43
44} // End of namespace Scumm
45
46#endif
Definition: actor.h:30