ScummVM API documentation
codec47.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_CODEC_47_H
23#define SCUMM_SMUSH_CODEC_47_H
24
25#include "common/scummsys.h"
26
27namespace Scumm {
28
30private:
31
32 int32 _deltaSize;
33 byte *_deltaBufs[2];
34 byte *_deltaBuf;
35 byte *_curBuf;
36 int32 _prevSeqNb;
37 int _lastTableWidth;
38 const byte *_dSrc, *_paramPtr;
39 int _dPitch;
40 int32 _offset1, _offset2;
41 byte *_tableBig;
42 byte *_tableSmall;
43 int16 _table[256];
44 int32 _frameSize;
45 int _width, _height;
46
47 void makeTablesInterpolation(int param);
48 void makeCodecTables(int width);
49 void level1(byte *d_dst);
50 void level2(byte *d_dst);
51 void level3(byte *d_dst);
52 void decode2(byte *dst, const byte *src, int width, int height, const byte *param_ptr);
53
54public:
55 SmushDeltaGlyphsDecoder(int width, int height);
57 bool decode(byte *dst, const byte *src);
58};
59
60} // End of namespace Scumm
61
62#endif
Definition: codec47.h:29
Definition: actor.h:30