ScummVM API documentation
codec37.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_CODEC37_H
23#define SCUMM_SMUSH_CODEC37_H
24
25#include "common/scummsys.h"
26
27namespace Scumm {
28
30private:
31
32 int32 _deltaSize;
33 byte *_deltaBufs[2];
34 byte *_deltaBuf;
35 int16 *_offsetTable;
36 int _curTable;
37 uint16 _prevSeqNb;
38 int _tableLastPitch;
39 int _tableLastIndex;
40 int32 _frameSize;
41 int _width, _height;
42 bool _rebel2Variant;
43
44public:
45 SmushDeltaBlocksDecoder(int width, int height, bool rebel2Variant = false);
47protected:
48 void makeTable(int, int);
49 void proc1(byte *dst, const byte *src, int32, int, int, int, int16 *);
50 void proc3WithFDFE(byte *dst, const byte *src, int32, int, int, int, int16 *);
51 void proc3WithoutFDFE(byte *dst, const byte *src, int32, int, int, int, int16 *);
52 void proc4WithFDFE(byte *dst, const byte *src, int32, int, int, int, int16 *);
53 void proc4WithoutFDFE(byte *dst, const byte *src, int32, int, int, int, int16 *);
54public:
55 void decode(byte *dst, const byte *src);
56};
57
58} // End of namespace Scumm
59
60#endif
Definition: codec37.h:29
Definition: actor.h:30