ScummVM API documentation
blocky16.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 GRIM_BLOCKY16_H
23 #define GRIM_BLOCKY16_H
24 
25 #include "common/scummsys.h"
26 
27 namespace Grim {
28 
29 class Blocky16 {
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, *_param6_7Ptr;
38  int _d_pitch;
39  int32 _offset1, _offset2;
40  byte *_tableBig;
41  byte *_tableSmall;
42  int16 _table[256];
43  int32 _frameSize;
44  int _offset;
45  int _width, _height;
46  int _blocksWidth, _blocksHeight;
47 
48  void makeTablesInterpolation(int param);
49  void makeTables47(int width);
50  void level1(byte *d_dst);
51  void level2(byte *d_dst);
52  void level3(byte *d_dst);
53  void decode2(byte *dst, const byte *src, int width, int height, const byte *param_ptr, const byte *param6_7_ptr);
54 
55 public:
56  Blocky16();
57  ~Blocky16();
58  void init(int width, int height);
59  void deinit();
60  void decode(byte *dst, const byte *src);
61 };
62 
63 } // end of namespace Grim
64 
65 #endif
Definition: actor.h:33
Definition: blocky16.h:29