sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#include "lookuptable.h"
|
sl@0
|
17 |
|
sl@0
|
18 |
/**
|
sl@0
|
19 |
@internalComponent
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
// Lookup table low word for converting from 16bpp to 32bpp display modes
|
sl@0
|
22 |
const TUint16 KBlt16to32Low[256] =
|
sl@0
|
23 |
{
|
sl@0
|
24 |
0x0000,
|
sl@0
|
25 |
0x0008,
|
sl@0
|
26 |
0x0010,
|
sl@0
|
27 |
0x0018,
|
sl@0
|
28 |
0x0021,
|
sl@0
|
29 |
0x0029,
|
sl@0
|
30 |
0x0031,
|
sl@0
|
31 |
0x0039,
|
sl@0
|
32 |
0x0042,
|
sl@0
|
33 |
0x004a,
|
sl@0
|
34 |
0x0052,
|
sl@0
|
35 |
0x005a,
|
sl@0
|
36 |
0x0063,
|
sl@0
|
37 |
0x006b,
|
sl@0
|
38 |
0x0073,
|
sl@0
|
39 |
0x007b,
|
sl@0
|
40 |
0x0084,
|
sl@0
|
41 |
0x008c,
|
sl@0
|
42 |
0x0094,
|
sl@0
|
43 |
0x009c,
|
sl@0
|
44 |
0x00a5,
|
sl@0
|
45 |
0x00ad,
|
sl@0
|
46 |
0x00b5,
|
sl@0
|
47 |
0x00bd,
|
sl@0
|
48 |
0x00c6,
|
sl@0
|
49 |
0x00ce,
|
sl@0
|
50 |
0x00d6,
|
sl@0
|
51 |
0x00de,
|
sl@0
|
52 |
0x00e7,
|
sl@0
|
53 |
0x00ef,
|
sl@0
|
54 |
0x00f7,
|
sl@0
|
55 |
0x00ff,
|
sl@0
|
56 |
0x0400,
|
sl@0
|
57 |
0x0408,
|
sl@0
|
58 |
0x0410,
|
sl@0
|
59 |
0x0418,
|
sl@0
|
60 |
0x0421,
|
sl@0
|
61 |
0x0429,
|
sl@0
|
62 |
0x0431,
|
sl@0
|
63 |
0x0439,
|
sl@0
|
64 |
0x0442,
|
sl@0
|
65 |
0x044a,
|
sl@0
|
66 |
0x0452,
|
sl@0
|
67 |
0x045a,
|
sl@0
|
68 |
0x0463,
|
sl@0
|
69 |
0x046b,
|
sl@0
|
70 |
0x0473,
|
sl@0
|
71 |
0x047b,
|
sl@0
|
72 |
0x0484,
|
sl@0
|
73 |
0x048c,
|
sl@0
|
74 |
0x0494,
|
sl@0
|
75 |
0x049c,
|
sl@0
|
76 |
0x04a5,
|
sl@0
|
77 |
0x04ad,
|
sl@0
|
78 |
0x04b5,
|
sl@0
|
79 |
0x04bd,
|
sl@0
|
80 |
0x04c6,
|
sl@0
|
81 |
0x04ce,
|
sl@0
|
82 |
0x04d6,
|
sl@0
|
83 |
0x04de,
|
sl@0
|
84 |
0x04e7,
|
sl@0
|
85 |
0x04ef,
|
sl@0
|
86 |
0x04f7,
|
sl@0
|
87 |
0x04ff,
|
sl@0
|
88 |
0x0800,
|
sl@0
|
89 |
0x0808,
|
sl@0
|
90 |
0x0810,
|
sl@0
|
91 |
0x0818,
|
sl@0
|
92 |
0x0821,
|
sl@0
|
93 |
0x0829,
|
sl@0
|
94 |
0x0831,
|
sl@0
|
95 |
0x0839,
|
sl@0
|
96 |
0x0842,
|
sl@0
|
97 |
0x084a,
|
sl@0
|
98 |
0x0852,
|
sl@0
|
99 |
0x085a,
|
sl@0
|
100 |
0x0863,
|
sl@0
|
101 |
0x086b,
|
sl@0
|
102 |
0x0873,
|
sl@0
|
103 |
0x087b,
|
sl@0
|
104 |
0x0884,
|
sl@0
|
105 |
0x088c,
|
sl@0
|
106 |
0x0894,
|
sl@0
|
107 |
0x089c,
|
sl@0
|
108 |
0x08a5,
|
sl@0
|
109 |
0x08ad,
|
sl@0
|
110 |
0x08b5,
|
sl@0
|
111 |
0x08bd,
|
sl@0
|
112 |
0x08c6,
|
sl@0
|
113 |
0x08ce,
|
sl@0
|
114 |
0x08d6,
|
sl@0
|
115 |
0x08de,
|
sl@0
|
116 |
0x08e7,
|
sl@0
|
117 |
0x08ef,
|
sl@0
|
118 |
0x08f7,
|
sl@0
|
119 |
0x08ff,
|
sl@0
|
120 |
0x0c00,
|
sl@0
|
121 |
0x0c08,
|
sl@0
|
122 |
0x0c10,
|
sl@0
|
123 |
0x0c18,
|
sl@0
|
124 |
0x0c21,
|
sl@0
|
125 |
0x0c29,
|
sl@0
|
126 |
0x0c31,
|
sl@0
|
127 |
0x0c39,
|
sl@0
|
128 |
0x0c42,
|
sl@0
|
129 |
0x0c4a,
|
sl@0
|
130 |
0x0c52,
|
sl@0
|
131 |
0x0c5a,
|
sl@0
|
132 |
0x0c63,
|
sl@0
|
133 |
0x0c6b,
|
sl@0
|
134 |
0x0c73,
|
sl@0
|
135 |
0x0c7b,
|
sl@0
|
136 |
0x0c84,
|
sl@0
|
137 |
0x0c8c,
|
sl@0
|
138 |
0x0c94,
|
sl@0
|
139 |
0x0c9c,
|
sl@0
|
140 |
0x0ca5,
|
sl@0
|
141 |
0x0cad,
|
sl@0
|
142 |
0x0cb5,
|
sl@0
|
143 |
0x0cbd,
|
sl@0
|
144 |
0x0cc6,
|
sl@0
|
145 |
0x0cce,
|
sl@0
|
146 |
0x0cd6,
|
sl@0
|
147 |
0x0cde,
|
sl@0
|
148 |
0x0ce7,
|
sl@0
|
149 |
0x0cef,
|
sl@0
|
150 |
0x0cf7,
|
sl@0
|
151 |
0x0cff,
|
sl@0
|
152 |
0x1000,
|
sl@0
|
153 |
0x1008,
|
sl@0
|
154 |
0x1010,
|
sl@0
|
155 |
0x1018,
|
sl@0
|
156 |
0x1021,
|
sl@0
|
157 |
0x1029,
|
sl@0
|
158 |
0x1031,
|
sl@0
|
159 |
0x1039,
|
sl@0
|
160 |
0x1042,
|
sl@0
|
161 |
0x104a,
|
sl@0
|
162 |
0x1052,
|
sl@0
|
163 |
0x105a,
|
sl@0
|
164 |
0x1063,
|
sl@0
|
165 |
0x106b,
|
sl@0
|
166 |
0x1073,
|
sl@0
|
167 |
0x107b,
|
sl@0
|
168 |
0x1084,
|
sl@0
|
169 |
0x108c,
|
sl@0
|
170 |
0x1094,
|
sl@0
|
171 |
0x109c,
|
sl@0
|
172 |
0x10a5,
|
sl@0
|
173 |
0x10ad,
|
sl@0
|
174 |
0x10b5,
|
sl@0
|
175 |
0x10bd,
|
sl@0
|
176 |
0x10c6,
|
sl@0
|
177 |
0x10ce,
|
sl@0
|
178 |
0x10d6,
|
sl@0
|
179 |
0x10de,
|
sl@0
|
180 |
0x10e7,
|
sl@0
|
181 |
0x10ef,
|
sl@0
|
182 |
0x10f7,
|
sl@0
|
183 |
0x10ff,
|
sl@0
|
184 |
0x1400,
|
sl@0
|
185 |
0x1408,
|
sl@0
|
186 |
0x1410,
|
sl@0
|
187 |
0x1418,
|
sl@0
|
188 |
0x1421,
|
sl@0
|
189 |
0x1429,
|
sl@0
|
190 |
0x1431,
|
sl@0
|
191 |
0x1439,
|
sl@0
|
192 |
0x1442,
|
sl@0
|
193 |
0x144a,
|
sl@0
|
194 |
0x1452,
|
sl@0
|
195 |
0x145a,
|
sl@0
|
196 |
0x1463,
|
sl@0
|
197 |
0x146b,
|
sl@0
|
198 |
0x1473,
|
sl@0
|
199 |
0x147b,
|
sl@0
|
200 |
0x1484,
|
sl@0
|
201 |
0x148c,
|
sl@0
|
202 |
0x1494,
|
sl@0
|
203 |
0x149c,
|
sl@0
|
204 |
0x14a5,
|
sl@0
|
205 |
0x14ad,
|
sl@0
|
206 |
0x14b5,
|
sl@0
|
207 |
0x14bd,
|
sl@0
|
208 |
0x14c6,
|
sl@0
|
209 |
0x14ce,
|
sl@0
|
210 |
0x14d6,
|
sl@0
|
211 |
0x14de,
|
sl@0
|
212 |
0x14e7,
|
sl@0
|
213 |
0x14ef,
|
sl@0
|
214 |
0x14f7,
|
sl@0
|
215 |
0x14ff,
|
sl@0
|
216 |
0x1800,
|
sl@0
|
217 |
0x1808,
|
sl@0
|
218 |
0x1810,
|
sl@0
|
219 |
0x1818,
|
sl@0
|
220 |
0x1821,
|
sl@0
|
221 |
0x1829,
|
sl@0
|
222 |
0x1831,
|
sl@0
|
223 |
0x1839,
|
sl@0
|
224 |
0x1842,
|
sl@0
|
225 |
0x184a,
|
sl@0
|
226 |
0x1852,
|
sl@0
|
227 |
0x185a,
|
sl@0
|
228 |
0x1863,
|
sl@0
|
229 |
0x186b,
|
sl@0
|
230 |
0x1873,
|
sl@0
|
231 |
0x187b,
|
sl@0
|
232 |
0x1884,
|
sl@0
|
233 |
0x188c,
|
sl@0
|
234 |
0x1894,
|
sl@0
|
235 |
0x189c,
|
sl@0
|
236 |
0x18a5,
|
sl@0
|
237 |
0x18ad,
|
sl@0
|
238 |
0x18b5,
|
sl@0
|
239 |
0x18bd,
|
sl@0
|
240 |
0x18c6,
|
sl@0
|
241 |
0x18ce,
|
sl@0
|
242 |
0x18d6,
|
sl@0
|
243 |
0x18de,
|
sl@0
|
244 |
0x18e7,
|
sl@0
|
245 |
0x18ef,
|
sl@0
|
246 |
0x18f7,
|
sl@0
|
247 |
0x18ff,
|
sl@0
|
248 |
0x1c00,
|
sl@0
|
249 |
0x1c08,
|
sl@0
|
250 |
0x1c10,
|
sl@0
|
251 |
0x1c18,
|
sl@0
|
252 |
0x1c21,
|
sl@0
|
253 |
0x1c29,
|
sl@0
|
254 |
0x1c31,
|
sl@0
|
255 |
0x1c39,
|
sl@0
|
256 |
0x1c42,
|
sl@0
|
257 |
0x1c4a,
|
sl@0
|
258 |
0x1c52,
|
sl@0
|
259 |
0x1c5a,
|
sl@0
|
260 |
0x1c63,
|
sl@0
|
261 |
0x1c6b,
|
sl@0
|
262 |
0x1c73,
|
sl@0
|
263 |
0x1c7b,
|
sl@0
|
264 |
0x1c84,
|
sl@0
|
265 |
0x1c8c,
|
sl@0
|
266 |
0x1c94,
|
sl@0
|
267 |
0x1c9c,
|
sl@0
|
268 |
0x1ca5,
|
sl@0
|
269 |
0x1cad,
|
sl@0
|
270 |
0x1cb5,
|
sl@0
|
271 |
0x1cbd,
|
sl@0
|
272 |
0x1cc6,
|
sl@0
|
273 |
0x1cce,
|
sl@0
|
274 |
0x1cd6,
|
sl@0
|
275 |
0x1cde,
|
sl@0
|
276 |
0x1ce7,
|
sl@0
|
277 |
0x1cef,
|
sl@0
|
278 |
0x1cf7,
|
sl@0
|
279 |
0x1cff
|
sl@0
|
280 |
};
|
sl@0
|
281 |
|
sl@0
|
282 |
/**
|
sl@0
|
283 |
@internalComponent
|
sl@0
|
284 |
*/
|
sl@0
|
285 |
// Lookup table high long word for converting from 16bpp to 32bpp display modes
|
sl@0
|
286 |
const TUint32 KBlt16to32High[256] =
|
sl@0
|
287 |
{
|
sl@0
|
288 |
0xff000000,
|
sl@0
|
289 |
0xff002000,
|
sl@0
|
290 |
0xff004100,
|
sl@0
|
291 |
0xff006100,
|
sl@0
|
292 |
0xff008200,
|
sl@0
|
293 |
0xff00a200,
|
sl@0
|
294 |
0xff00c300,
|
sl@0
|
295 |
0xff00e300,
|
sl@0
|
296 |
0xff080000,
|
sl@0
|
297 |
0xff082000,
|
sl@0
|
298 |
0xff084100,
|
sl@0
|
299 |
0xff086100,
|
sl@0
|
300 |
0xff088200,
|
sl@0
|
301 |
0xff08a200,
|
sl@0
|
302 |
0xff08c300,
|
sl@0
|
303 |
0xff08e300,
|
sl@0
|
304 |
0xff100000,
|
sl@0
|
305 |
0xff102000,
|
sl@0
|
306 |
0xff104100,
|
sl@0
|
307 |
0xff106100,
|
sl@0
|
308 |
0xff108200,
|
sl@0
|
309 |
0xff10a200,
|
sl@0
|
310 |
0xff10c300,
|
sl@0
|
311 |
0xff10e300,
|
sl@0
|
312 |
0xff180000,
|
sl@0
|
313 |
0xff182000,
|
sl@0
|
314 |
0xff184100,
|
sl@0
|
315 |
0xff186100,
|
sl@0
|
316 |
0xff188200,
|
sl@0
|
317 |
0xff18a200,
|
sl@0
|
318 |
0xff18c300,
|
sl@0
|
319 |
0xff18e300,
|
sl@0
|
320 |
0xff210000,
|
sl@0
|
321 |
0xff212000,
|
sl@0
|
322 |
0xff214100,
|
sl@0
|
323 |
0xff216100,
|
sl@0
|
324 |
0xff218200,
|
sl@0
|
325 |
0xff21a200,
|
sl@0
|
326 |
0xff21c300,
|
sl@0
|
327 |
0xff21e300,
|
sl@0
|
328 |
0xff290000,
|
sl@0
|
329 |
0xff292000,
|
sl@0
|
330 |
0xff294100,
|
sl@0
|
331 |
0xff296100,
|
sl@0
|
332 |
0xff298200,
|
sl@0
|
333 |
0xff29a200,
|
sl@0
|
334 |
0xff29c300,
|
sl@0
|
335 |
0xff29e300,
|
sl@0
|
336 |
0xff310000,
|
sl@0
|
337 |
0xff312000,
|
sl@0
|
338 |
0xff314100,
|
sl@0
|
339 |
0xff316100,
|
sl@0
|
340 |
0xff318200,
|
sl@0
|
341 |
0xff31a200,
|
sl@0
|
342 |
0xff31c300,
|
sl@0
|
343 |
0xff31e300,
|
sl@0
|
344 |
0xff390000,
|
sl@0
|
345 |
0xff392000,
|
sl@0
|
346 |
0xff394100,
|
sl@0
|
347 |
0xff396100,
|
sl@0
|
348 |
0xff398200,
|
sl@0
|
349 |
0xff39a200,
|
sl@0
|
350 |
0xff39c300,
|
sl@0
|
351 |
0xff39e300,
|
sl@0
|
352 |
0xff420000,
|
sl@0
|
353 |
0xff422000,
|
sl@0
|
354 |
0xff424100,
|
sl@0
|
355 |
0xff426100,
|
sl@0
|
356 |
0xff428200,
|
sl@0
|
357 |
0xff42a200,
|
sl@0
|
358 |
0xff42c300,
|
sl@0
|
359 |
0xff42e300,
|
sl@0
|
360 |
0xff4a0000,
|
sl@0
|
361 |
0xff4a2000,
|
sl@0
|
362 |
0xff4a4100,
|
sl@0
|
363 |
0xff4a6100,
|
sl@0
|
364 |
0xff4a8200,
|
sl@0
|
365 |
0xff4aa200,
|
sl@0
|
366 |
0xff4ac300,
|
sl@0
|
367 |
0xff4ae300,
|
sl@0
|
368 |
0xff520000,
|
sl@0
|
369 |
0xff522000,
|
sl@0
|
370 |
0xff524100,
|
sl@0
|
371 |
0xff526100,
|
sl@0
|
372 |
0xff528200,
|
sl@0
|
373 |
0xff52a200,
|
sl@0
|
374 |
0xff52c300,
|
sl@0
|
375 |
0xff52e300,
|
sl@0
|
376 |
0xff5a0000,
|
sl@0
|
377 |
0xff5a2000,
|
sl@0
|
378 |
0xff5a4100,
|
sl@0
|
379 |
0xff5a6100,
|
sl@0
|
380 |
0xff5a8200,
|
sl@0
|
381 |
0xff5aa200,
|
sl@0
|
382 |
0xff5ac300,
|
sl@0
|
383 |
0xff5ae300,
|
sl@0
|
384 |
0xff630000,
|
sl@0
|
385 |
0xff632000,
|
sl@0
|
386 |
0xff634100,
|
sl@0
|
387 |
0xff636100,
|
sl@0
|
388 |
0xff638200,
|
sl@0
|
389 |
0xff63a200,
|
sl@0
|
390 |
0xff63c300,
|
sl@0
|
391 |
0xff63e300,
|
sl@0
|
392 |
0xff6b0000,
|
sl@0
|
393 |
0xff6b2000,
|
sl@0
|
394 |
0xff6b4100,
|
sl@0
|
395 |
0xff6b6100,
|
sl@0
|
396 |
0xff6b8200,
|
sl@0
|
397 |
0xff6ba200,
|
sl@0
|
398 |
0xff6bc300,
|
sl@0
|
399 |
0xff6be300,
|
sl@0
|
400 |
0xff730000,
|
sl@0
|
401 |
0xff732000,
|
sl@0
|
402 |
0xff734100,
|
sl@0
|
403 |
0xff736100,
|
sl@0
|
404 |
0xff738200,
|
sl@0
|
405 |
0xff73a200,
|
sl@0
|
406 |
0xff73c300,
|
sl@0
|
407 |
0xff73e300,
|
sl@0
|
408 |
0xff7b0000,
|
sl@0
|
409 |
0xff7b2000,
|
sl@0
|
410 |
0xff7b4100,
|
sl@0
|
411 |
0xff7b6100,
|
sl@0
|
412 |
0xff7b8200,
|
sl@0
|
413 |
0xff7ba200,
|
sl@0
|
414 |
0xff7bc300,
|
sl@0
|
415 |
0xff7be300,
|
sl@0
|
416 |
0xff840000,
|
sl@0
|
417 |
0xff842000,
|
sl@0
|
418 |
0xff844100,
|
sl@0
|
419 |
0xff846100,
|
sl@0
|
420 |
0xff848200,
|
sl@0
|
421 |
0xff84a200,
|
sl@0
|
422 |
0xff84c300,
|
sl@0
|
423 |
0xff84e300,
|
sl@0
|
424 |
0xff8c0000,
|
sl@0
|
425 |
0xff8c2000,
|
sl@0
|
426 |
0xff8c4100,
|
sl@0
|
427 |
0xff8c6100,
|
sl@0
|
428 |
0xff8c8200,
|
sl@0
|
429 |
0xff8ca200,
|
sl@0
|
430 |
0xff8cc300,
|
sl@0
|
431 |
0xff8ce300,
|
sl@0
|
432 |
0xff940000,
|
sl@0
|
433 |
0xff942000,
|
sl@0
|
434 |
0xff944100,
|
sl@0
|
435 |
0xff946100,
|
sl@0
|
436 |
0xff948200,
|
sl@0
|
437 |
0xff94a200,
|
sl@0
|
438 |
0xff94c300,
|
sl@0
|
439 |
0xff94e300,
|
sl@0
|
440 |
0xff9c0000,
|
sl@0
|
441 |
0xff9c2000,
|
sl@0
|
442 |
0xff9c4100,
|
sl@0
|
443 |
0xff9c6100,
|
sl@0
|
444 |
0xff9c8200,
|
sl@0
|
445 |
0xff9ca200,
|
sl@0
|
446 |
0xff9cc300,
|
sl@0
|
447 |
0xff9ce300,
|
sl@0
|
448 |
0xffa50000,
|
sl@0
|
449 |
0xffa52000,
|
sl@0
|
450 |
0xffa54100,
|
sl@0
|
451 |
0xffa56100,
|
sl@0
|
452 |
0xffa58200,
|
sl@0
|
453 |
0xffa5a200,
|
sl@0
|
454 |
0xffa5c300,
|
sl@0
|
455 |
0xffa5e300,
|
sl@0
|
456 |
0xffad0000,
|
sl@0
|
457 |
0xffad2000,
|
sl@0
|
458 |
0xffad4100,
|
sl@0
|
459 |
0xffad6100,
|
sl@0
|
460 |
0xffad8200,
|
sl@0
|
461 |
0xffada200,
|
sl@0
|
462 |
0xffadc300,
|
sl@0
|
463 |
0xffade300,
|
sl@0
|
464 |
0xffb50000,
|
sl@0
|
465 |
0xffb52000,
|
sl@0
|
466 |
0xffb54100,
|
sl@0
|
467 |
0xffb56100,
|
sl@0
|
468 |
0xffb58200,
|
sl@0
|
469 |
0xffb5a200,
|
sl@0
|
470 |
0xffb5c300,
|
sl@0
|
471 |
0xffb5e300,
|
sl@0
|
472 |
0xffbd0000,
|
sl@0
|
473 |
0xffbd2000,
|
sl@0
|
474 |
0xffbd4100,
|
sl@0
|
475 |
0xffbd6100,
|
sl@0
|
476 |
0xffbd8200,
|
sl@0
|
477 |
0xffbda200,
|
sl@0
|
478 |
0xffbdc300,
|
sl@0
|
479 |
0xffbde300,
|
sl@0
|
480 |
0xffc60000,
|
sl@0
|
481 |
0xffc62000,
|
sl@0
|
482 |
0xffc64100,
|
sl@0
|
483 |
0xffc66100,
|
sl@0
|
484 |
0xffc68200,
|
sl@0
|
485 |
0xffc6a200,
|
sl@0
|
486 |
0xffc6c300,
|
sl@0
|
487 |
0xffc6e300,
|
sl@0
|
488 |
0xffce0000,
|
sl@0
|
489 |
0xffce2000,
|
sl@0
|
490 |
0xffce4100,
|
sl@0
|
491 |
0xffce6100,
|
sl@0
|
492 |
0xffce8200,
|
sl@0
|
493 |
0xffcea200,
|
sl@0
|
494 |
0xffcec300,
|
sl@0
|
495 |
0xffcee300,
|
sl@0
|
496 |
0xffd60000,
|
sl@0
|
497 |
0xffd62000,
|
sl@0
|
498 |
0xffd64100,
|
sl@0
|
499 |
0xffd66100,
|
sl@0
|
500 |
0xffd68200,
|
sl@0
|
501 |
0xffd6a200,
|
sl@0
|
502 |
0xffd6c300,
|
sl@0
|
503 |
0xffd6e300,
|
sl@0
|
504 |
0xffde0000,
|
sl@0
|
505 |
0xffde2000,
|
sl@0
|
506 |
0xffde4100,
|
sl@0
|
507 |
0xffde6100,
|
sl@0
|
508 |
0xffde8200,
|
sl@0
|
509 |
0xffdea200,
|
sl@0
|
510 |
0xffdec300,
|
sl@0
|
511 |
0xffdee300,
|
sl@0
|
512 |
0xffe70000,
|
sl@0
|
513 |
0xffe72000,
|
sl@0
|
514 |
0xffe74100,
|
sl@0
|
515 |
0xffe76100,
|
sl@0
|
516 |
0xffe78200,
|
sl@0
|
517 |
0xffe7a200,
|
sl@0
|
518 |
0xffe7c300,
|
sl@0
|
519 |
0xffe7e300,
|
sl@0
|
520 |
0xffef0000,
|
sl@0
|
521 |
0xffef2000,
|
sl@0
|
522 |
0xffef4100,
|
sl@0
|
523 |
0xffef6100,
|
sl@0
|
524 |
0xffef8200,
|
sl@0
|
525 |
0xffefa200,
|
sl@0
|
526 |
0xffefc300,
|
sl@0
|
527 |
0xffefe300,
|
sl@0
|
528 |
0xfff70000,
|
sl@0
|
529 |
0xfff72000,
|
sl@0
|
530 |
0xfff74100,
|
sl@0
|
531 |
0xfff76100,
|
sl@0
|
532 |
0xfff78200,
|
sl@0
|
533 |
0xfff7a200,
|
sl@0
|
534 |
0xfff7c300,
|
sl@0
|
535 |
0xfff7e300,
|
sl@0
|
536 |
0xffff0000,
|
sl@0
|
537 |
0xffff2000,
|
sl@0
|
538 |
0xffff4100,
|
sl@0
|
539 |
0xffff6100,
|
sl@0
|
540 |
0xffff8200,
|
sl@0
|
541 |
0xffffa200,
|
sl@0
|
542 |
0xffffc300,
|
sl@0
|
543 |
0xffffe300
|
sl@0
|
544 |
};
|
sl@0
|
545 |
|
sl@0
|
546 |
|
sl@0
|
547 |
const TUint16 NormalisationTable16Bit[256] = {
|
sl@0
|
548 |
0,65280,32640,21760,16320,13056,10880,9326,8160,7254,6528,
|
sl@0
|
549 |
5935,5440,5022,4663,4352,4080,3840,3627,3436,3264,
|
sl@0
|
550 |
3109,2968,2839,2720,2612,2511,2418,2332,2252,2176,
|
sl@0
|
551 |
2106,2040,1979,1920,1866,1814,1765,1718,1674,1632,
|
sl@0
|
552 |
1593,1555,1519,1484,1451,1420,1389,1360,1333,1306,
|
sl@0
|
553 |
1280,1256,1232,1209,1187,1166,1146,1126,1107,1088,
|
sl@0
|
554 |
1071,1053,1037,1020,1005,990,975,960,947,933,
|
sl@0
|
555 |
920,907,895,883,871,859,848,837,827,816,
|
sl@0
|
556 |
806,797,787,778,768,760,751,742,734,726,
|
sl@0
|
557 |
718,710,702,695,688,680,673,667,660,653,
|
sl@0
|
558 |
647,640,634,628,622,616,611,605,599,594,
|
sl@0
|
559 |
589,583,578,573,568,563,558,554,549,544,
|
sl@0
|
560 |
540,536,531,527,523,519,515,510,507,503,
|
sl@0
|
561 |
499,495,491,488,484,480,477,474,470,467,
|
sl@0
|
562 |
463,460,457,454,451,448,445,442,439,436,
|
sl@0
|
563 |
433,430,427,424,422,419,416,414,411,408,
|
sl@0
|
564 |
406,403,401,399,396,394,391,389,387,384,
|
sl@0
|
565 |
382,380,378,376,374,371,369,367,365,363,
|
sl@0
|
566 |
361,359,357,355,353,351,350,348,346,344,
|
sl@0
|
567 |
342,340,339,337,335,334,332,330,329,327,
|
sl@0
|
568 |
325,324,322,320,319,317,316,314,313,311,
|
sl@0
|
569 |
310,308,307,306,304,303,301,300,299,297,
|
sl@0
|
570 |
296,295,293,292,291,289,288,287,286,284,
|
sl@0
|
571 |
283,282,281,279,278,277,276,275,274,272,
|
sl@0
|
572 |
271,270,269,268,267,266,265,264,263,262,
|
sl@0
|
573 |
261,260,259,258,256,
|
sl@0
|
574 |
};
|
sl@0
|
575 |
|
sl@0
|
576 |
|
sl@0
|
577 |
/**
|
sl@0
|
578 |
This function will return value of converted 16bpp to 32bpp display modes. This lookup table is
|
sl@0
|
579 |
used to improve performance.
|
sl@0
|
580 |
@internalComponent
|
sl@0
|
581 |
*/
|
sl@0
|
582 |
|
sl@0
|
583 |
EXPORT_C const TUint16* Convert16to32bppLow()
|
sl@0
|
584 |
{
|
sl@0
|
585 |
return KBlt16to32Low;
|
sl@0
|
586 |
}
|
sl@0
|
587 |
|
sl@0
|
588 |
EXPORT_C const TUint32* Convert16to32bppHigh()
|
sl@0
|
589 |
{
|
sl@0
|
590 |
return KBlt16to32High;
|
sl@0
|
591 |
}
|
sl@0
|
592 |
|
sl@0
|
593 |
/**
|
sl@0
|
594 |
Returns the pointer to the table of 16-bit normalisation table.
|
sl@0
|
595 |
The table is currently used for performing un-multiplying Premultiplied Alpha color channels.
|
sl@0
|
596 |
This lookup table for normalised alpha is compluted using this equation: Table[index] = (255*256) / index (where index is an 8 bit value)
|
sl@0
|
597 |
Use: Let x be c * a/255, and y = c, then y = (x/a)*255, where a is in 0-255 range.
|
sl@0
|
598 |
To use this table, use y = (x * Table[a])>>8. i.e, the inaccurate division is converted
|
sl@0
|
599 |
to more accurate multiplication and shift.
|
sl@0
|
600 |
|
sl@0
|
601 |
@return pointer to the normalisation table.
|
sl@0
|
602 |
@internalTechnology
|
sl@0
|
603 |
*/
|
sl@0
|
604 |
EXPORT_C const TUint16* PtrTo16BitNormalisationTable()
|
sl@0
|
605 |
{
|
sl@0
|
606 |
return &NormalisationTable16Bit[0];
|
sl@0
|
607 |
}
|
sl@0
|
608 |
|