ScummVM API documentation
blocky8.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 SMUSH_BLOCKY8_H
23
#define SMUSH_BLOCKY8_H
24
25
#include "common/scummsys.h"
26
27
namespace
Grim
{
28
29
class
Blocky8
{
30
private
:
31
32
byte *_deltaBufs[2];
33
byte *_deltaBuf;
34
byte *_curBuf;
35
int32 _prevSeqNb;
36
int
_lastTableWidth;
37
const
byte *_d_src, *_paramPtr;
38
int
_d_pitch;
39
int32 _offset1, _offset2;
40
byte *_tableBig;
41
byte *_tableSmall;
42
int16 _table[256];
43
int32 _frameSize;
44
int
_width, _height;
45
46
void
makeTablesInterpolation(
int
param);
47
void
makeTables47(
int
width);
48
void
level1(byte *d_dst);
49
void
level2(byte *d_dst);
50
void
level3(byte *d_dst);
51
void
decode2(byte *dst,
const
byte *src,
int
width,
int
height,
const
byte *param_ptr);
52
53
public
:
54
Blocky8
();
55
~
Blocky8
();
56
void
init(
int
width,
int
height);
57
void
deinit();
58
bool
decode(byte *dst,
const
byte *src);
59
};
60
61
}
// End of namespace Grim
62
63
#endif
Grim::Blocky8
Definition:
blocky8.h:29
Grim
Definition:
actor.h:33
engines
grim
movie
codecs
blocky8.h
Generated on Fri Nov 15 2024 09:13:01 for ScummVM API documentation by
1.8.13