]>
Commit | Line | Data |
---|---|---|
1 | use nihav_core::formats::*; | |
2 | ||
3 | pub const RGB555_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::RGB(RGBSubmodel::RGB), components: 3, | |
4 | comp_info: [ | |
5 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 5, shift: 10, comp_offs: 0, next_elem: 2 }), | |
6 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 5, shift: 5, comp_offs: 0, next_elem: 2 }), | |
7 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 5, shift: 0, comp_offs: 0, next_elem: 2 }), | |
8 | None, None], | |
9 | elem_size: 2, be: false, alpha: false, palette: false }; | |
10 | pub const BGR0_FORMAT: NAPixelFormaton = NAPixelFormaton { model: ColorModel::RGB(RGBSubmodel::RGB), components: 3, | |
11 | comp_info: [ | |
12 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 8, shift: 0, comp_offs: 2, next_elem: 4 }), | |
13 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 8, shift: 0, comp_offs: 1, next_elem: 4 }), | |
14 | Some(NAPixelChromaton{ h_ss: 0, v_ss: 0, packed: true, depth: 8, shift: 0, comp_offs: 0, next_elem: 4 }), | |
15 | None, None], | |
16 | elem_size: 4, be: false, alpha: false, palette: false }; | |
17 | ||
18 | #[derive(Clone,Copy)] | |
19 | pub struct TM1ComprInfo { | |
20 | pub is_24bit: bool, | |
21 | pub block_w: usize, | |
22 | pub block_h: usize, | |
23 | } | |
24 | ||
25 | pub const TM1_COMPR_TYPES: [Option<TM1ComprInfo>; 17] = [ | |
26 | None, | |
27 | Some(TM1ComprInfo { is_24bit: false, block_w: 4, block_h: 4 }), | |
28 | Some(TM1ComprInfo { is_24bit: false, block_w: 4, block_h: 4 }), | |
29 | Some(TM1ComprInfo { is_24bit: false, block_w: 4, block_h: 2 }), | |
30 | Some(TM1ComprInfo { is_24bit: false, block_w: 4, block_h: 2 }), | |
31 | Some(TM1ComprInfo { is_24bit: false, block_w: 2, block_h: 4 }), | |
32 | Some(TM1ComprInfo { is_24bit: false, block_w: 2, block_h: 4 }), | |
33 | Some(TM1ComprInfo { is_24bit: false, block_w: 2, block_h: 2 }), | |
34 | Some(TM1ComprInfo { is_24bit: false, block_w: 2, block_h: 2 }), | |
35 | None, | |
36 | Some(TM1ComprInfo { is_24bit: true, block_w: 4, block_h: 4 }), | |
37 | None, | |
38 | Some(TM1ComprInfo { is_24bit: true, block_w: 4, block_h: 2 }), | |
39 | None, | |
40 | Some(TM1ComprInfo { is_24bit: true, block_w: 2, block_h: 4 }), | |
41 | None, | |
42 | Some(TM1ComprInfo { is_24bit: true, block_w: 2, block_h: 2 }), | |
43 | ]; | |
44 | ||
45 | pub const DUCK_Y_DELTAS: [[i32; 8]; 4] = [ | |
46 | [ 0, -1, 1, -3, 3, -6, 6, -6 ], | |
47 | [ 0, -1, 2, -3, 4, -6, 6, -6 ], | |
48 | [ 2, -3, 10, -10, 23, -23, 47, -47 ], | |
49 | [ 0, -2, 2, -8, 8, -18, 18, -40 ] | |
50 | ]; | |
51 | const DUCK_Y_FAT_DELTA3: [i32; 8] = [ 0, -15, 50, -50, 115, -115, 235, -235 ]; | |
52 | const DUCK_Y_FAT_DELTA4: [i32; 8] = [ 0, 40, 80, -76, 160, -154, 236, -236 ]; | |
53 | pub const DUCK_Y_FAT_DELTAS: [&[i32; 8]; 4] = [ | |
54 | &DUCK_Y_FAT_DELTA3, &DUCK_Y_FAT_DELTA3, &DUCK_Y_FAT_DELTA3, &DUCK_Y_FAT_DELTA4 | |
55 | ]; | |
56 | ||
57 | pub const DUCK_C_DELTAS: [[i32; 8]; 4] = [ | |
58 | [ 0, -1, 1, -2, 3, -4, 5, -4 ], | |
59 | [ 0, -1, 1, -2, 3, -4, 5, -4 ], | |
60 | [ 0, -4, 3, -16, 20, -32, 36, -32 ], | |
61 | [ 0, -2, 2, -8, 8, -18, 18, -40 ] | |
62 | ]; | |
63 | const DUCK_C_FAT_DELTA3: [i32; 8] = [ 0, -20, 15, -80, 100, -160, 180, -160 ]; | |
64 | pub const DUCK_C_FAT_DELTAS: [&[i32; 8]; 4] = [ | |
65 | &DUCK_C_FAT_DELTA3, &DUCK_C_FAT_DELTA3, &DUCK_C_FAT_DELTA3, &DUCK_Y_FAT_DELTA4 | |
66 | ]; | |
67 | ||
68 | const DUCK_VECTBL2: &[u8] = &[ | |
69 | 0x8,0x00,0x00,0x00,0x00, | |
70 | 0x8,0x00,0x00,0x00,0x00, | |
71 | 0x8,0x10,0x00,0x00,0x00, | |
72 | 0x8,0x01,0x00,0x00,0x00, | |
73 | 0x8,0x00,0x10,0x00,0x00, | |
74 | 0x8,0x00,0x01,0x00,0x00, | |
75 | 0x8,0x00,0x00,0x10,0x00, | |
76 | 0x8,0x00,0x00,0x01,0x00, | |
77 | 0x8,0x00,0x00,0x00,0x10, | |
78 | 0x8,0x00,0x00,0x00,0x01, | |
79 | 0x6,0x00,0x00,0x00, | |
80 | 0x6,0x10,0x00,0x00, | |
81 | 0x6,0x01,0x00,0x00, | |
82 | 0x6,0x00,0x10,0x00, | |
83 | 0x6,0x00,0x01,0x00, | |
84 | 0x6,0x00,0x00,0x01, | |
85 | 0x6,0x00,0x00,0x10, | |
86 | 0x6,0x00,0x00,0x02, | |
87 | 0x6,0x00,0x00,0x20, | |
88 | 0x6,0x20,0x10,0x00, | |
89 | 0x6,0x00,0x02,0x01, | |
90 | 0x6,0x00,0x20,0x10, | |
91 | 0x6,0x02,0x01,0x00, | |
92 | 0x6,0x11,0x00,0x00, | |
93 | 0x6,0x00,0x20,0x00, | |
94 | 0x6,0x00,0x02,0x00, | |
95 | 0x6,0x20,0x00,0x00, | |
96 | 0x6,0x01,0x10,0x00, | |
97 | 0x6,0x02,0x00,0x00, | |
98 | 0x6,0x01,0x00,0x02, | |
99 | 0x6,0x10,0x00,0x20, | |
100 | 0x6,0x00,0x01,0x02, | |
101 | 0x6,0x10,0x01,0x00, | |
102 | 0x6,0x00,0x10,0x20, | |
103 | 0x6,0x10,0x10,0x00, | |
104 | 0x6,0x10,0x00,0x01, | |
105 | 0x6,0x20,0x00,0x10, | |
106 | 0x6,0x02,0x00,0x01, | |
107 | 0x6,0x01,0x01,0x00, | |
108 | 0x6,0x01,0x00,0x10, | |
109 | 0x6,0x00,0x11,0x00, | |
110 | 0x6,0x10,0x00,0x02, | |
111 | 0x6,0x00,0x01,0x10, | |
112 | 0x6,0x00,0x00,0x11, | |
113 | 0x6,0x10,0x00,0x10, | |
114 | 0x6,0x01,0x00,0x01, | |
115 | 0x6,0x00,0x00,0x22, | |
116 | 0x6,0x02,0x01,0x01, | |
117 | 0x6,0x10,0x20,0x10, | |
118 | 0x6,0x01,0x02,0x01, | |
119 | 0x6,0x20,0x10,0x10, | |
120 | 0x6,0x01,0x00,0x20, | |
121 | 0x6,0x00,0x10,0x01, | |
122 | 0x6,0x21,0x10,0x00, | |
123 | 0x6,0x10,0x02,0x01, | |
124 | 0x6,0x12,0x01,0x00, | |
125 | 0x6,0x01,0x20,0x10, | |
126 | 0x6,0x01,0x02,0x00, | |
127 | 0x6,0x10,0x20,0x00, | |
128 | 0x6,0x00,0x10,0x02, | |
129 | 0x6,0x00,0x01,0x20, | |
130 | 0x6,0x00,0x02,0x21, | |
131 | 0x6,0x00,0x02,0x20, | |
132 | 0x6,0x00,0x00,0x12, | |
133 | 0x6,0x00,0x00,0x21, | |
134 | 0x6,0x20,0x11,0x00, | |
135 | 0x6,0x00,0x01,0x01, | |
136 | 0x6,0x11,0x10,0x00, | |
137 | 0x6,0x00,0x20,0x12, | |
138 | 0x6,0x00,0x20,0x11, | |
139 | 0x6,0x20,0x10,0x02, | |
140 | 0x6,0x02,0x01,0x20, | |
141 | 0x6,0x00,0x22,0x11, | |
142 | 0x6,0x00,0x10,0x10, | |
143 | 0x6,0x02,0x11,0x00, | |
144 | 0x6,0x00,0x21,0x10, | |
145 | 0x6,0x00,0x02,0x03, | |
146 | 0x6,0x20,0x10,0x01, | |
147 | 0x6,0x00,0x12,0x01, | |
148 | 0x4,0x11,0x00, | |
149 | 0x4,0x00,0x22, | |
150 | 0x4,0x20,0x00, | |
151 | 0x4,0x01,0x10, | |
152 | 0x4,0x02,0x20, | |
153 | 0x4,0x00,0x20, | |
154 | 0x4,0x02,0x00, | |
155 | 0x4,0x10,0x01, | |
156 | 0x4,0x00,0x11, | |
157 | 0x4,0x02,0x01, | |
158 | 0x4,0x02,0x21, | |
159 | 0x4,0x00,0x02, | |
160 | 0x4,0x20,0x02, | |
161 | 0x4,0x01,0x01, | |
162 | 0x4,0x10,0x10, | |
163 | 0x4,0x10,0x02, | |
164 | 0x4,0x22,0x00, | |
165 | 0x4,0x10,0x00, | |
166 | 0x4,0x01,0x00, | |
167 | 0x4,0x21,0x00, | |
168 | 0x4,0x12,0x00, | |
169 | 0x4,0x00,0x10, | |
170 | 0x4,0x20,0x12, | |
171 | 0x4,0x01,0x11, | |
172 | 0x4,0x00,0x01, | |
173 | 0x4,0x01,0x02, | |
174 | 0x4,0x11,0x02, | |
175 | 0x4,0x11,0x01, | |
176 | 0x4,0x10,0x20, | |
177 | 0x4,0x20,0x01, | |
178 | 0x4,0x22,0x11, | |
179 | 0x4,0x00,0x12, | |
180 | 0x4,0x20,0x10, | |
181 | 0x4,0x22,0x01, | |
182 | 0x4,0x01,0x20, | |
183 | 0x4,0x00,0x21, | |
184 | 0x4,0x10,0x11, | |
185 | 0x4,0x21,0x10, | |
186 | 0x4,0x10,0x22, | |
187 | 0x4,0x02,0x03, | |
188 | 0x4,0x12,0x01, | |
189 | 0x4,0x20,0x11, | |
190 | 0x4,0x11,0x10, | |
191 | 0x4,0x20,0x30, | |
192 | 0x4,0x11,0x20, | |
193 | 0x4,0x02,0x10, | |
194 | 0x4,0x22,0x10, | |
195 | 0x4,0x11,0x11, | |
196 | 0x4,0x30,0x20, | |
197 | 0x4,0x30,0x00, | |
198 | 0x4,0x01,0x22, | |
199 | 0x4,0x01,0x12, | |
200 | 0x4,0x02,0x11, | |
201 | 0x4,0x03,0x02, | |
202 | 0x4,0x03,0x00, | |
203 | 0x4,0x10,0x21, | |
204 | 0x4,0x12,0x20, | |
205 | 0x4,0x00,0x00, | |
206 | 0x4,0x12,0x21, | |
207 | 0x4,0x21,0x11, | |
208 | 0x4,0x02,0x22, | |
209 | 0x4,0x10,0x12, | |
210 | 0x4,0x31,0x00, | |
211 | 0x4,0x20,0x20, | |
212 | 0x4,0x00,0x03, | |
213 | 0x4,0x02,0x02, | |
214 | 0x4,0x22,0x20, | |
215 | 0x4,0x01,0x21, | |
216 | 0x4,0x21,0x02, | |
217 | 0x4,0x21,0x12, | |
218 | 0x4,0x11,0x22, | |
219 | 0x4,0x00,0x30, | |
220 | 0x4,0x12,0x11, | |
221 | 0x4,0x20,0x22, | |
222 | 0x4,0x31,0x20, | |
223 | 0x4,0x21,0x30, | |
224 | 0x4,0x22,0x02, | |
225 | 0x4,0x22,0x22, | |
226 | 0x4,0x20,0x31, | |
227 | 0x4,0x13,0x02, | |
228 | 0x4,0x03,0x10, | |
229 | 0x4,0x11,0x12, | |
230 | 0x4,0x00,0x13, | |
231 | 0x4,0x21,0x01, | |
232 | 0x4,0x12,0x03, | |
233 | 0x4,0x13,0x00, | |
234 | 0x4,0x13,0x10, | |
235 | 0x4,0x02,0x13, | |
236 | 0x4,0x30,0x01, | |
237 | 0x4,0x12,0x10, | |
238 | 0x4,0x22,0x13, | |
239 | 0x4,0x03,0x12, | |
240 | 0x4,0x31,0x01, | |
241 | 0x4,0x30,0x22, | |
242 | 0x4,0x00,0x31, | |
243 | 0x4,0x01,0x31, | |
244 | 0x4,0x02,0x23, | |
245 | 0x4,0x01,0x30, | |
246 | 0x4,0x11,0x21, | |
247 | 0x4,0x22,0x21, | |
248 | 0x4,0x01,0x13, | |
249 | 0x4,0x10,0x03, | |
250 | 0x4,0x22,0x03, | |
251 | 0x4,0x30,0x21, | |
252 | 0x4,0x21,0x31, | |
253 | 0x4,0x33,0x00, | |
254 | 0x4,0x13,0x12, | |
255 | 0x4,0x11,0x31, | |
256 | 0x4,0x30,0x02, | |
257 | 0x4,0x12,0x02, | |
258 | 0x4,0x11,0x13, | |
259 | 0x4,0x12,0x22, | |
260 | 0x4,0x20,0x32, | |
261 | 0x4,0x10,0x13, | |
262 | 0x4,0x22,0x31, | |
263 | 0x4,0x21,0x20, | |
264 | 0x4,0x01,0x33, | |
265 | 0x4,0x33,0x10, | |
266 | 0x4,0x20,0x13, | |
267 | 0x4,0x31,0x22, | |
268 | 0x4,0x13,0x30, | |
269 | 0x4,0x01,0x03, | |
270 | 0x4,0x11,0x33, | |
271 | 0x4,0x20,0x21, | |
272 | 0x4,0x13,0x31, | |
273 | 0x4,0x03,0x22, | |
274 | 0x4,0x31,0x02, | |
275 | 0x4,0x00,0x24, | |
276 | 0x2,0x00, | |
277 | 0x2,0x10, | |
278 | 0x2,0x20, | |
279 | 0x2,0x30, | |
280 | 0x2,0x40, | |
281 | 0x2,0x50, | |
282 | 0x2,0x60, | |
283 | 0x2,0x01, | |
284 | 0x2,0x11, | |
285 | 0x2,0x21, | |
286 | 0x2,0x31, | |
287 | 0x2,0x41, | |
288 | 0x2,0x51, | |
289 | 0x2,0x61, | |
290 | 0x2,0x02, | |
291 | 0x2,0x12, | |
292 | 0x2,0x22, | |
293 | 0x2,0x32, | |
294 | 0x2,0x42, | |
295 | 0x2,0x52, | |
296 | 0x2,0x62, | |
297 | 0x2,0x03, | |
298 | 0x2,0x13, | |
299 | 0x2,0x23, | |
300 | 0x2,0x33, | |
301 | 0x2,0x43, | |
302 | 0x2,0x53, | |
303 | 0x2,0x63, | |
304 | 0x2,0x04, | |
305 | 0x2,0x14, | |
306 | 0x2,0x24, | |
307 | 0x2,0x34, | |
308 | 0x2,0x44, | |
309 | 0x2,0x54, | |
310 | 0x2,0x64, | |
311 | 0x2,0x05, | |
312 | 0x2,0x15, | |
313 | 0x2,0x25, | |
314 | 0x2,0x35, | |
315 | 0x2,0x45, | |
316 | 0x2,0x55, | |
317 | 0x2,0x65, | |
318 | 0x2,0x06, | |
319 | 0x2,0x16, | |
320 | 0x2,0x26, | |
321 | 0x2,0x36, | |
322 | 0x2,0x46, | |
323 | 0x2,0x56, | |
324 | 0x2,0x66 | |
325 | ]; | |
326 | ||
327 | const DUCK_VECTBL3: &[u8] = &[ | |
328 | 0x6,0x00,0x00,0x00, | |
329 | 0x6,0x00,0x00,0x00, | |
330 | 0x6,0x00,0x00,0x01, | |
331 | 0x6,0x00,0x00,0x10, | |
332 | 0x6,0x00,0x00,0x11, | |
333 | 0x6,0x00,0x01,0x00, | |
334 | 0x6,0x00,0x01,0x01, | |
335 | 0x6,0x00,0x01,0x10, | |
336 | 0x6,0x00,0x01,0x11, | |
337 | 0x6,0x00,0x10,0x00, | |
338 | 0x6,0x00,0x10,0x01, | |
339 | 0x6,0x00,0x10,0x10, | |
340 | 0x6,0x00,0x10,0x11, | |
341 | 0x6,0x00,0x11,0x00, | |
342 | 0x6,0x00,0x11,0x01, | |
343 | 0x6,0x00,0x11,0x10, | |
344 | 0x6,0x00,0x11,0x11, | |
345 | 0x6,0x01,0x00,0x00, | |
346 | 0x6,0x01,0x00,0x01, | |
347 | 0x6,0x01,0x00,0x10, | |
348 | 0x6,0x01,0x00,0x11, | |
349 | 0x6,0x01,0x01,0x00, | |
350 | 0x6,0x01,0x01,0x01, | |
351 | 0x6,0x01,0x01,0x10, | |
352 | 0x6,0x01,0x01,0x11, | |
353 | 0x6,0x01,0x10,0x00, | |
354 | 0x6,0x01,0x10,0x01, | |
355 | 0x6,0x01,0x10,0x10, | |
356 | 0x6,0x01,0x10,0x11, | |
357 | 0x6,0x01,0x11,0x00, | |
358 | 0x6,0x01,0x11,0x01, | |
359 | 0x6,0x01,0x11,0x10, | |
360 | 0x6,0x01,0x11,0x11, | |
361 | 0x6,0x10,0x00,0x00, | |
362 | 0x6,0x10,0x00,0x01, | |
363 | 0x6,0x10,0x00,0x10, | |
364 | 0x6,0x10,0x00,0x11, | |
365 | 0x6,0x10,0x01,0x00, | |
366 | 0x6,0x10,0x01,0x01, | |
367 | 0x6,0x10,0x01,0x10, | |
368 | 0x6,0x10,0x01,0x11, | |
369 | 0x6,0x10,0x10,0x00, | |
370 | 0x6,0x10,0x10,0x01, | |
371 | 0x6,0x10,0x10,0x10, | |
372 | 0x6,0x10,0x10,0x11, | |
373 | 0x6,0x10,0x11,0x00, | |
374 | 0x6,0x10,0x11,0x01, | |
375 | 0x6,0x10,0x11,0x10, | |
376 | 0x6,0x10,0x11,0x11, | |
377 | 0x6,0x11,0x00,0x00, | |
378 | 0x6,0x11,0x00,0x01, | |
379 | 0x6,0x11,0x00,0x10, | |
380 | 0x6,0x11,0x00,0x11, | |
381 | 0x6,0x11,0x01,0x00, | |
382 | 0x6,0x11,0x01,0x01, | |
383 | 0x6,0x11,0x01,0x10, | |
384 | 0x6,0x11,0x01,0x11, | |
385 | 0x6,0x11,0x10,0x00, | |
386 | 0x6,0x11,0x10,0x01, | |
387 | 0x6,0x11,0x10,0x10, | |
388 | 0x6,0x11,0x10,0x11, | |
389 | 0x6,0x11,0x11,0x00, | |
390 | 0x6,0x11,0x11,0x01, | |
391 | 0x6,0x11,0x11,0x10, | |
392 | 0x4,0x00,0x00, | |
393 | 0x4,0x00,0x01, | |
394 | 0x4,0x00,0x02, | |
395 | 0x4,0x00,0x03, | |
396 | 0x4,0x00,0x10, | |
397 | 0x4,0x00,0x11, | |
398 | 0x4,0x00,0x12, | |
399 | 0x4,0x00,0x13, | |
400 | 0x4,0x00,0x20, | |
401 | 0x4,0x00,0x21, | |
402 | 0x4,0x00,0x22, | |
403 | 0x4,0x00,0x23, | |
404 | 0x4,0x00,0x30, | |
405 | 0x4,0x00,0x31, | |
406 | 0x4,0x00,0x32, | |
407 | 0x4,0x00,0x33, | |
408 | 0x4,0x01,0x00, | |
409 | 0x4,0x01,0x01, | |
410 | 0x4,0x01,0x02, | |
411 | 0x4,0x01,0x03, | |
412 | 0x4,0x01,0x10, | |
413 | 0x4,0x01,0x11, | |
414 | 0x4,0x01,0x12, | |
415 | 0x4,0x01,0x13, | |
416 | 0x4,0x01,0x20, | |
417 | 0x4,0x01,0x21, | |
418 | 0x4,0x01,0x22, | |
419 | 0x4,0x01,0x23, | |
420 | 0x4,0x01,0x30, | |
421 | 0x4,0x01,0x31, | |
422 | 0x4,0x01,0x32, | |
423 | 0x4,0x01,0x33, | |
424 | 0x4,0x02,0x00, | |
425 | 0x4,0x02,0x01, | |
426 | 0x4,0x02,0x02, | |
427 | 0x4,0x02,0x03, | |
428 | 0x4,0x02,0x10, | |
429 | 0x4,0x02,0x11, | |
430 | 0x4,0x02,0x12, | |
431 | 0x4,0x02,0x13, | |
432 | 0x4,0x02,0x20, | |
433 | 0x4,0x02,0x21, | |
434 | 0x4,0x02,0x22, | |
435 | 0x4,0x02,0x23, | |
436 | 0x4,0x02,0x30, | |
437 | 0x4,0x02,0x31, | |
438 | 0x4,0x02,0x32, | |
439 | 0x4,0x02,0x33, | |
440 | 0x4,0x03,0x00, | |
441 | 0x4,0x03,0x01, | |
442 | 0x4,0x03,0x02, | |
443 | 0x4,0x03,0x03, | |
444 | 0x4,0x03,0x10, | |
445 | 0x4,0x03,0x11, | |
446 | 0x4,0x03,0x12, | |
447 | 0x4,0x03,0x13, | |
448 | 0x4,0x03,0x20, | |
449 | 0x4,0x03,0x21, | |
450 | 0x4,0x03,0x22, | |
451 | 0x4,0x03,0x23, | |
452 | 0x4,0x03,0x30, | |
453 | 0x4,0x03,0x31, | |
454 | 0x4,0x03,0x32, | |
455 | 0x4,0x03,0x33, | |
456 | 0x4,0x10,0x00, | |
457 | 0x4,0x10,0x01, | |
458 | 0x4,0x10,0x02, | |
459 | 0x4,0x10,0x03, | |
460 | 0x4,0x10,0x10, | |
461 | 0x4,0x10,0x11, | |
462 | 0x4,0x10,0x12, | |
463 | 0x4,0x10,0x13, | |
464 | 0x4,0x10,0x20, | |
465 | 0x4,0x10,0x21, | |
466 | 0x4,0x10,0x22, | |
467 | 0x4,0x10,0x23, | |
468 | 0x4,0x10,0x30, | |
469 | 0x4,0x10,0x31, | |
470 | 0x4,0x10,0x32, | |
471 | 0x4,0x10,0x33, | |
472 | 0x4,0x11,0x00, | |
473 | 0x4,0x11,0x01, | |
474 | 0x4,0x11,0x02, | |
475 | 0x4,0x11,0x03, | |
476 | 0x4,0x11,0x10, | |
477 | 0x4,0x11,0x11, | |
478 | 0x4,0x11,0x12, | |
479 | 0x4,0x11,0x13, | |
480 | 0x4,0x11,0x20, | |
481 | 0x4,0x11,0x21, | |
482 | 0x4,0x11,0x22, | |
483 | 0x4,0x11,0x23, | |
484 | 0x4,0x11,0x30, | |
485 | 0x4,0x11,0x31, | |
486 | 0x4,0x11,0x32, | |
487 | 0x4,0x11,0x33, | |
488 | 0x4,0x12,0x00, | |
489 | 0x4,0x12,0x01, | |
490 | 0x4,0x12,0x02, | |
491 | 0x4,0x12,0x03, | |
492 | 0x4,0x12,0x10, | |
493 | 0x4,0x12,0x11, | |
494 | 0x4,0x12,0x12, | |
495 | 0x4,0x12,0x13, | |
496 | 0x4,0x12,0x20, | |
497 | 0x4,0x12,0x21, | |
498 | 0x4,0x12,0x22, | |
499 | 0x4,0x12,0x23, | |
500 | 0x4,0x12,0x30, | |
501 | 0x4,0x12,0x31, | |
502 | 0x4,0x12,0x32, | |
503 | 0x4,0x12,0x33, | |
504 | 0x4,0x13,0x00, | |
505 | 0x4,0x13,0x01, | |
506 | 0x4,0x13,0x02, | |
507 | 0x4,0x13,0x03, | |
508 | 0x4,0x13,0x10, | |
509 | 0x4,0x13,0x11, | |
510 | 0x4,0x13,0x12, | |
511 | 0x4,0x13,0x13, | |
512 | 0x4,0x13,0x20, | |
513 | 0x4,0x13,0x21, | |
514 | 0x4,0x13,0x22, | |
515 | 0x4,0x13,0x23, | |
516 | 0x4,0x13,0x30, | |
517 | 0x4,0x13,0x31, | |
518 | 0x4,0x13,0x32, | |
519 | 0x4,0x13,0x33, | |
520 | 0x2,0x00, | |
521 | 0x2,0x10, | |
522 | 0x2,0x20, | |
523 | 0x2,0x30, | |
524 | 0x2,0x40, | |
525 | 0x2,0x50, | |
526 | 0x2,0x60, | |
527 | 0x2,0x70, | |
528 | 0x2,0x01, | |
529 | 0x2,0x11, | |
530 | 0x2,0x21, | |
531 | 0x2,0x31, | |
532 | 0x2,0x41, | |
533 | 0x2,0x51, | |
534 | 0x2,0x61, | |
535 | 0x2,0x71, | |
536 | 0x2,0x02, | |
537 | 0x2,0x12, | |
538 | 0x2,0x22, | |
539 | 0x2,0x32, | |
540 | 0x2,0x42, | |
541 | 0x2,0x52, | |
542 | 0x2,0x62, | |
543 | 0x2,0x72, | |
544 | 0x2,0x03, | |
545 | 0x2,0x13, | |
546 | 0x2,0x23, | |
547 | 0x2,0x33, | |
548 | 0x2,0x43, | |
549 | 0x2,0x53, | |
550 | 0x2,0x63, | |
551 | 0x2,0x73, | |
552 | 0x2,0x04, | |
553 | 0x2,0x14, | |
554 | 0x2,0x24, | |
555 | 0x2,0x34, | |
556 | 0x2,0x44, | |
557 | 0x2,0x54, | |
558 | 0x2,0x64, | |
559 | 0x2,0x74, | |
560 | 0x2,0x05, | |
561 | 0x2,0x15, | |
562 | 0x2,0x25, | |
563 | 0x2,0x35, | |
564 | 0x2,0x45, | |
565 | 0x2,0x55, | |
566 | 0x2,0x65, | |
567 | 0x2,0x75, | |
568 | 0x2,0x06, | |
569 | 0x2,0x16, | |
570 | 0x2,0x26, | |
571 | 0x2,0x36, | |
572 | 0x2,0x46, | |
573 | 0x2,0x56, | |
574 | 0x2,0x66, | |
575 | 0x2,0x76, | |
576 | 0x2,0x07, | |
577 | 0x2,0x17, | |
578 | 0x2,0x27, | |
579 | 0x2,0x37, | |
580 | 0x2,0x47, | |
581 | 0x2,0x57, | |
582 | 0x2,0x67, | |
583 | 0x2,0x77 | |
584 | ]; | |
585 | ||
586 | const DUCK_VECTBL4: &[u8] = &[ | |
587 | 0x8,0x00,0x00,0x00,0x00, | |
588 | 0x8,0x00,0x00,0x00,0x00, | |
589 | 0x8,0x20,0x00,0x00,0x00, | |
590 | 0x8,0x00,0x00,0x00,0x01, | |
591 | 0x8,0x10,0x00,0x00,0x00, | |
592 | 0x8,0x00,0x00,0x00,0x02, | |
593 | 0x8,0x01,0x00,0x00,0x00, | |
594 | 0x8,0x00,0x00,0x00,0x10, | |
595 | 0x8,0x02,0x00,0x00,0x00, | |
596 | 0x6,0x00,0x00,0x00, | |
597 | 0x6,0x20,0x00,0x00, | |
598 | 0x6,0x00,0x00,0x01, | |
599 | 0x6,0x10,0x00,0x00, | |
600 | 0x6,0x00,0x00,0x02, | |
601 | 0x6,0x00,0x10,0x00, | |
602 | 0x6,0x00,0x20,0x00, | |
603 | 0x6,0x00,0x02,0x00, | |
604 | 0x6,0x00,0x01,0x00, | |
605 | 0x6,0x01,0x00,0x00, | |
606 | 0x6,0x00,0x00,0x20, | |
607 | 0x6,0x02,0x00,0x00, | |
608 | 0x6,0x00,0x00,0x10, | |
609 | 0x6,0x10,0x00,0x20, | |
610 | 0x6,0x01,0x00,0x02, | |
611 | 0x6,0x20,0x00,0x10, | |
612 | 0x6,0x02,0x00,0x01, | |
613 | 0x6,0x20,0x10,0x00, | |
614 | 0x6,0x00,0x12,0x00, | |
615 | 0x6,0x00,0x02,0x01, | |
616 | 0x6,0x02,0x01,0x00, | |
617 | 0x6,0x00,0x21,0x00, | |
618 | 0x6,0x00,0x01,0x02, | |
619 | 0x6,0x00,0x20,0x10, | |
620 | 0x6,0x00,0x00,0x21, | |
621 | 0x6,0x00,0x00,0x12, | |
622 | 0x6,0x00,0x01,0x20, | |
623 | 0x6,0x12,0x00,0x00, | |
624 | 0x6,0x00,0x10,0x20, | |
625 | 0x6,0x01,0x20,0x00, | |
626 | 0x6,0x02,0x10,0x00, | |
627 | 0x6,0x10,0x20,0x00, | |
628 | 0x6,0x01,0x02,0x00, | |
629 | 0x6,0x21,0x00,0x00, | |
630 | 0x6,0x00,0x02,0x10, | |
631 | 0x6,0x20,0x01,0x00, | |
632 | 0x6,0x00,0x22,0x00, | |
633 | 0x6,0x10,0x02,0x00, | |
634 | 0x6,0x00,0x10,0x02, | |
635 | 0x6,0x11,0x00,0x00, | |
636 | 0x6,0x00,0x11,0x00, | |
637 | 0x6,0x22,0x00,0x00, | |
638 | 0x6,0x20,0x00,0x02, | |
639 | 0x6,0x10,0x00,0x01, | |
640 | 0x6,0x00,0x20,0x01, | |
641 | 0x6,0x02,0x20,0x00, | |
642 | 0x6,0x01,0x10,0x00, | |
643 | 0x6,0x01,0x00,0x20, | |
644 | 0x6,0x00,0x20,0x02, | |
645 | 0x6,0x01,0x20,0x02, | |
646 | 0x6,0x10,0x01,0x00, | |
647 | 0x6,0x02,0x00,0x10, | |
648 | 0x6,0x00,0x10,0x01, | |
649 | 0x6,0x10,0x01,0x20, | |
650 | 0x6,0x20,0x02,0x10, | |
651 | 0x6,0x00,0x00,0x22, | |
652 | 0x6,0x10,0x00,0x02, | |
653 | 0x6,0x00,0x02,0x20, | |
654 | 0x6,0x20,0x02,0x00, | |
655 | 0x6,0x00,0x00,0x11, | |
656 | 0x6,0x02,0x10,0x01, | |
657 | 0x6,0x00,0x01,0x10, | |
658 | 0x6,0x00,0x02,0x11, | |
659 | 0x4,0x01,0x02, | |
660 | 0x4,0x02,0x01, | |
661 | 0x4,0x01,0x00, | |
662 | 0x4,0x10,0x20, | |
663 | 0x4,0x20,0x10, | |
664 | 0x4,0x20,0x00, | |
665 | 0x4,0x11,0x00, | |
666 | 0x4,0x02,0x00, | |
667 | 0x4,0x12,0x00, | |
668 | 0x4,0x00,0x21, | |
669 | 0x4,0x22,0x00, | |
670 | 0x4,0x00,0x12, | |
671 | 0x4,0x21,0x00, | |
672 | 0x4,0x02,0x11, | |
673 | 0x4,0x00,0x01, | |
674 | 0x4,0x10,0x02, | |
675 | 0x4,0x02,0x20, | |
676 | 0x4,0x20,0x11, | |
677 | 0x4,0x01,0x10, | |
678 | 0x4,0x21,0x10, | |
679 | 0x4,0x10,0x00, | |
680 | 0x4,0x10,0x22, | |
681 | 0x4,0x20,0x20, | |
682 | 0x4,0x00,0x22, | |
683 | 0x4,0x01,0x22, | |
684 | 0x4,0x20,0x01, | |
685 | 0x4,0x02,0x02, | |
686 | 0x4,0x00,0x20, | |
687 | 0x4,0x00,0x10, | |
688 | 0x4,0x00,0x11, | |
689 | 0x4,0x22,0x01, | |
690 | 0x4,0x11,0x20, | |
691 | 0x4,0x12,0x01, | |
692 | 0x4,0x12,0x20, | |
693 | 0x4,0x11,0x02, | |
694 | 0x4,0x10,0x10, | |
695 | 0x4,0x01,0x01, | |
696 | 0x4,0x02,0x21, | |
697 | 0x4,0x20,0x12, | |
698 | 0x4,0x01,0x12, | |
699 | 0x4,0x22,0x11, | |
700 | 0x4,0x21,0x12, | |
701 | 0x4,0x22,0x10, | |
702 | 0x4,0x21,0x02, | |
703 | 0x4,0x20,0x02, | |
704 | 0x4,0x10,0x01, | |
705 | 0x4,0x00,0x02, | |
706 | 0x4,0x10,0x21, | |
707 | 0x4,0x01,0x20, | |
708 | 0x4,0x11,0x22, | |
709 | 0x4,0x12,0x21, | |
710 | 0x4,0x22,0x20, | |
711 | 0x4,0x02,0x10, | |
712 | 0x4,0x02,0x22, | |
713 | 0x4,0x11,0x10, | |
714 | 0x4,0x22,0x02, | |
715 | 0x4,0x20,0x21, | |
716 | 0x4,0x01,0x11, | |
717 | 0x4,0x11,0x01, | |
718 | 0x4,0x10,0x12, | |
719 | 0x4,0x02,0x12, | |
720 | 0x4,0x20,0x22, | |
721 | 0x4,0x21,0x20, | |
722 | 0x4,0x01,0x21, | |
723 | 0x4,0x12,0x02, | |
724 | 0x4,0x21,0x11, | |
725 | 0x4,0x12,0x22, | |
726 | 0x4,0x12,0x10, | |
727 | 0x4,0x22,0x21, | |
728 | 0x4,0x10,0x11, | |
729 | 0x4,0x21,0x01, | |
730 | 0x4,0x11,0x12, | |
731 | 0x4,0x12,0x11, | |
732 | 0x4,0x66,0x66, | |
733 | 0x4,0x22,0x22, | |
734 | 0x4,0x11,0x21, | |
735 | 0x4,0x11,0x11, | |
736 | 0x4,0x21,0x22, | |
737 | 0x4,0x00,0x00, | |
738 | 0x4,0x22,0x12, | |
739 | 0x4,0x12,0x12, | |
740 | 0x4,0x21,0x21, | |
741 | 0x4,0x42,0x00, | |
742 | 0x4,0x00,0x04, | |
743 | 0x4,0x40,0x00, | |
744 | 0x4,0x30,0x00, | |
745 | 0x4,0x31,0x00, | |
746 | 0x4,0x00,0x03, | |
747 | 0x4,0x00,0x14, | |
748 | 0x4,0x00,0x13, | |
749 | 0x4,0x01,0x24, | |
750 | 0x4,0x20,0x13, | |
751 | 0x4,0x01,0x42, | |
752 | 0x4,0x14,0x20, | |
753 | 0x4,0x42,0x02, | |
754 | 0x4,0x13,0x00, | |
755 | 0x4,0x00,0x24, | |
756 | 0x4,0x31,0x20, | |
757 | 0x4,0x22,0x13, | |
758 | 0x4,0x11,0x24, | |
759 | 0x4,0x12,0x66, | |
760 | 0x4,0x30,0x01, | |
761 | 0x4,0x02,0x13, | |
762 | 0x4,0x12,0x42, | |
763 | 0x4,0x40,0x10, | |
764 | 0x4,0x40,0x02, | |
765 | 0x4,0x01,0x04, | |
766 | 0x4,0x24,0x00, | |
767 | 0x4,0x42,0x10, | |
768 | 0x4,0x21,0x13, | |
769 | 0x4,0x13,0x12, | |
770 | 0x4,0x31,0x21, | |
771 | 0x4,0x21,0x24, | |
772 | 0x4,0x00,0x40, | |
773 | 0x4,0x10,0x24, | |
774 | 0x4,0x10,0x42, | |
775 | 0x4,0x32,0x01, | |
776 | 0x4,0x11,0x42, | |
777 | 0x4,0x20,0x31, | |
778 | 0x4,0x12,0x40, | |
779 | 0x2,0x00, | |
780 | 0x2,0x10, | |
781 | 0x2,0x20, | |
782 | 0x2,0x30, | |
783 | 0x2,0x40, | |
784 | 0x2,0x50, | |
785 | 0x2,0x60, | |
786 | 0x2,0x70, | |
787 | 0x2,0x01, | |
788 | 0x2,0x11, | |
789 | 0x2,0x21, | |
790 | 0x2,0x31, | |
791 | 0x2,0x41, | |
792 | 0x2,0x51, | |
793 | 0x2,0x61, | |
794 | 0x2,0x71, | |
795 | 0x2,0x02, | |
796 | 0x2,0x12, | |
797 | 0x2,0x22, | |
798 | 0x2,0x32, | |
799 | 0x2,0x42, | |
800 | 0x2,0x52, | |
801 | 0x2,0x62, | |
802 | 0x2,0x72, | |
803 | 0x2,0x03, | |
804 | 0x2,0x13, | |
805 | 0x2,0x23, | |
806 | 0x2,0x33, | |
807 | 0x2,0x43, | |
808 | 0x2,0x53, | |
809 | 0x2,0x63, | |
810 | 0x2,0x73, | |
811 | 0x2,0x04, | |
812 | 0x2,0x14, | |
813 | 0x2,0x24, | |
814 | 0x2,0x34, | |
815 | 0x2,0x44, | |
816 | 0x2,0x54, | |
817 | 0x2,0x64, | |
818 | 0x2,0x74, | |
819 | 0x2,0x05, | |
820 | 0x2,0x15, | |
821 | 0x2,0x25, | |
822 | 0x2,0x35, | |
823 | 0x2,0x45, | |
824 | 0x2,0x55, | |
825 | 0x2,0x65, | |
826 | 0x2,0x75, | |
827 | 0x2,0x06, | |
828 | 0x2,0x16, | |
829 | 0x2,0x26, | |
830 | 0x2,0x36, | |
831 | 0x2,0x46, | |
832 | 0x2,0x56, | |
833 | 0x2,0x66, | |
834 | 0x2,0x76, | |
835 | 0x2,0x07, | |
836 | 0x2,0x17, | |
837 | 0x2,0x27, | |
838 | 0x2,0x37, | |
839 | 0x2,0x47, | |
840 | 0x2,0x57, | |
841 | 0x2,0x67, | |
842 | 0x2,0x77 | |
843 | ]; | |
844 | ||
845 | pub const DUCK_VECTABLES: [&[u8]; 3] = [ DUCK_VECTBL2, DUCK_VECTBL3, DUCK_VECTBL4 ]; |