ScummVM API documentation
dct_tables.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#include "common/scummsys.h"
23
24namespace PhoenixVR {
25namespace {
26
27const byte ZIGZAG[] = {
28 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4,
29 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7,
30 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22,
31 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39,
32 46, 53, 60, 61, 54, 47, 55, 62, 63};
33
34// looks like standard JPEG quantisation matrix
35const byte QY[] = {
36 16,
37 11,
38 10,
39 16,
40 24,
41 40,
42 51,
43 61,
44 12,
45 12,
46 14,
47 19,
48 26,
49 58,
50 60,
51 55,
52 14,
53 13,
54 16,
55 24,
56 40,
57 57,
58 69,
59 56,
60 14,
61 17,
62 22,
63 29,
64 51,
65 87,
66 80,
67 62,
68 18,
69 22,
70 37,
71 56,
72 68,
73 109,
74 103,
75 77,
76 24,
77 35,
78 55,
79 64,
80 81,
81 104,
82 113,
83 92,
84 49,
85 64,
86 78,
87 87,
88 103,
89 121,
90 120,
91 101,
92 72,
93 92,
94 95,
95 98,
96 112,
97 100,
98 103,
99 99,
100};
101
102const byte QUV[] = {
103 17,
104 18,
105 24,
106 47,
107 99,
108 99,
109 99,
110 99,
111 18,
112 21,
113 26,
114 66,
115 99,
116 99,
117 99,
118 99,
119 24,
120 26,
121 56,
122 99,
123 99,
124 99,
125 99,
126 99,
127 47,
128 66,
129 99,
130 99,
131 99,
132 99,
133 99,
134 99,
135 99,
136 99,
137 99,
138 99,
139 99,
140 99,
141 99,
142 99,
143 99,
144 99,
145 99,
146 99,
147 99,
148 99,
149 99,
150 99,
151 99,
152 99,
153 99,
154 99,
155 99,
156 99,
157 99,
158 99,
159 99,
160 99,
161 99,
162 99,
163 99,
164 99,
165 99,
166 99,
167};
168
169const uint16 Q[] = {
170 0x4000,
171 0x58C5,
172 0x539F,
173 0x4B42,
174 0x4000,
175 0x3249,
176 0x22A3,
177 0x11A8,
178 0x58C5,
179 0x7B21,
180 0x73FC,
181 0x6862,
182 0x58C5,
183 0x45BF,
184 0x300B,
185 0x187E,
186 0x539F,
187 0x73FC,
188 0x6D41,
189 0x6254,
190 0x539F,
191 0x41B3,
192 0x2D41,
193 0x1712,
194 0x4B42,
195 0x6862,
196 0x6254,
197 0x587E,
198 0x4B42,
199 0x3B21,
200 0x28BA,
201 0x14C3,
202 0x4000,
203 0x58C5,
204 0x539F,
205 0x4B42,
206 0x4000,
207 0x3249,
208 0x22A3,
209 0x11A8,
210 0x3249,
211 0x45BF,
212 0x41B3,
213 0x3B21,
214 0x3249,
215 0x2782,
216 0x1B37,
217 0x0DE0,
218 0x22A3,
219 0x300B,
220 0x2D41,
221 0x28BA,
222 0x22A3,
223 0x1B37,
224 0x12BF,
225 0x98E,
226 0x11A8,
227 0x187E,
228 0x1712,
229 0x14C3,
230 0x11A8,
231 0x0DE0,
232 0x98E,
233 0x4DF,
234};
235
236} // namespace
237} // namespace PhoenixVR