]>
Commit | Line | Data |
---|---|---|
38953fb5 KS |
1 | use nihav_core::io::byteio::{ByteReader,MemoryReader}; |
2 | use nihav_core::io::bitreader::*; | |
3 | use nihav_core::io::codebook::*; | |
4 | use nihav_core::formats; | |
5 | use nihav_core::codecs::*; | |
b4d5b851 | 6 | use nihav_codec_support::codecs::{HAMShuffler, MV, ZERO_MV, ZIGZAG}; |
750b299c KS |
7 | |
8 | struct CLVDCCodeReader { } | |
9 | struct CLVACCodeReader { } | |
10 | struct CLVFlagsCodeReader { codes: &'static [u16], bits: &'static [u8] } | |
11 | struct CLVSym16CodeReader { codes: &'static [u16], bits: &'static [u8], syms: &'static [u16] } | |
12 | ||
13 | impl CodebookDescReader<i8> for CLVDCCodeReader { | |
14 | fn bits(&mut self, idx: usize) -> u8 { CLV_DC_BITS[idx] } | |
c83013a1 | 15 | fn code(&mut self, idx: usize) -> u32 { u32::from(CLV_DC_CODES[idx]) } |
750b299c KS |
16 | fn sym (&mut self, idx: usize) -> i8 { (idx as i8) - 63 } |
17 | fn len(&mut self) -> usize { CLV_DC_BITS.len() } | |
18 | } | |
19 | ||
20 | impl CodebookDescReader<u16> for CLVACCodeReader { | |
21 | fn bits(&mut self, idx: usize) -> u8 { CLV_AC_BITS[idx] } | |
c83013a1 | 22 | fn code(&mut self, idx: usize) -> u32 { u32::from(CLV_AC_CODES[idx]) } |
750b299c KS |
23 | fn sym (&mut self, idx: usize) -> u16 { CLV_AC_SYMS[idx] } |
24 | fn len(&mut self) -> usize { CLV_AC_BITS.len() } | |
25 | } | |
26 | ||
27 | impl CodebookDescReader<u8> for CLVFlagsCodeReader { | |
28 | fn bits(&mut self, idx: usize) -> u8 { self.bits[idx] } | |
c83013a1 | 29 | fn code(&mut self, idx: usize) -> u32 { u32::from(self.codes[idx]) } |
750b299c KS |
30 | fn sym (&mut self, idx: usize) -> u8 { idx as u8 } |
31 | fn len(&mut self) -> usize { self.bits.len() } | |
32 | } | |
33 | ||
34 | impl CodebookDescReader<u16> for CLVSym16CodeReader { | |
35 | fn bits(&mut self, idx: usize) -> u8 { self.bits[idx] } | |
c83013a1 | 36 | fn code(&mut self, idx: usize) -> u32 { u32::from(self.codes[idx]) } |
750b299c KS |
37 | fn sym (&mut self, idx: usize) -> u16 { self.syms[idx] } |
38 | fn len(&mut self) -> usize { self.bits.len() } | |
39 | } | |
40 | ||
41 | #[allow(dead_code)] | |
42 | struct LevelCodes { | |
43 | flags_cb: Option<Codebook<u8>>, | |
44 | mv_cb: Option<Codebook<u16>>, | |
45 | mv_esc: u16, | |
46 | bias_cb: Option<Codebook<u16>>, | |
47 | bias_esc: u16, | |
48 | } | |
49 | ||
50 | impl LevelCodes { | |
51 | fn new(flgd: Option<(&'static [u8], &'static [u16])>, | |
52 | mvd: Option<(&'static [u8], &'static [u16], &'static [u16])>, mv_esc: u16, | |
53 | bias: Option<(&'static [u8], &'static [u16], &'static [u16])>, bias_esc: u16) -> Self { | |
54 | let flags_cb = if let Some((bits, codes)) = flgd { | |
c83013a1 | 55 | let mut coderead = CLVFlagsCodeReader { bits, codes }; |
750b299c KS |
56 | Some(Codebook::new(&mut coderead, CodebookMode::MSB).unwrap()) |
57 | } else { | |
58 | None | |
59 | }; | |
60 | let mv_cb = if let Some((bits, codes, syms)) = mvd { | |
c83013a1 | 61 | let mut coderead = CLVSym16CodeReader { bits, codes, syms }; |
750b299c KS |
62 | Some(Codebook::new(&mut coderead, CodebookMode::MSB).unwrap()) |
63 | } else { | |
64 | None | |
65 | }; | |
66 | let bias_cb = if let Some((bits, codes, syms)) = bias { | |
c83013a1 | 67 | let mut coderead = CLVSym16CodeReader { bits, codes, syms }; |
750b299c KS |
68 | Some(Codebook::new(&mut coderead, CodebookMode::MSB).unwrap()) |
69 | } else { | |
70 | None | |
71 | }; | |
c83013a1 | 72 | LevelCodes { flags_cb, mv_cb, mv_esc, bias_cb, bias_esc } |
750b299c KS |
73 | } |
74 | } | |
75 | ||
76 | struct MVInfo { | |
77 | mv: Vec<MV>, | |
78 | mb_w: usize, | |
79 | mb_h: usize, | |
80 | mb_size: usize, | |
81 | mb_stride: usize, | |
82 | top: bool, | |
83 | } | |
84 | ||
85 | impl MVInfo { | |
86 | fn new() -> Self { MVInfo{ mv: Vec::new(), mb_w: 0, mb_h: 0, mb_size: 0, mb_stride: 0, top: true } } | |
87 | fn reset(&mut self, mb_w: usize, mb_h: usize, mb_size: usize) { | |
88 | self.mb_w = mb_w; | |
89 | self.mb_h = mb_h; | |
90 | self.mb_size = mb_size; | |
91 | self.mb_stride = mb_w; | |
92 | self.mv.resize(self.mb_stride * 2, ZERO_MV); | |
93 | } | |
94 | fn update_row(&mut self) { | |
95 | self.top = false; | |
96 | for i in 0..self.mb_stride { | |
97 | self.mv[i] = self.mv[self.mb_stride + i]; | |
98 | } | |
99 | } | |
100 | #[allow(non_snake_case)] | |
101 | fn predict(&mut self, mb_x: usize, mb_y: usize, diff: MV) -> MV { | |
102 | let pred_mv = if self.top { | |
103 | if mb_x > 0 { self.mv[self.mb_stride + mb_x - 1] } else { ZERO_MV } | |
104 | } else if (mb_x == 0) || (mb_x == self.mb_w - 1) { | |
105 | self.mv[mb_x] | |
106 | } else { | |
107 | let A = self.mv[self.mb_stride + mb_x - 1]; | |
108 | let B = self.mv[ mb_x]; | |
109 | let C = self.mv[ mb_x + 1]; | |
110 | MV::pred(A, B, C) | |
111 | }; | |
e12e2ad3 | 112 | let mut res = pred_mv; |
750b299c KS |
113 | |
114 | let left_mv = -((mb_x * self.mb_size) as i16); | |
115 | let right_mv = ((self.mb_w - mb_x - 1) * self.mb_size) as i16; | |
116 | if res.x < left_mv { res.x = left_mv; } | |
117 | if res.x > right_mv { res.x = right_mv; } | |
118 | let top_mv = -((mb_y * self.mb_size) as i16); | |
119 | let bot_mv = ((self.mb_h - mb_y - 1) * self.mb_size) as i16; | |
120 | if res.y < top_mv { res.y = top_mv; } | |
121 | if res.y > bot_mv { res.y = bot_mv; } | |
122 | ||
e12e2ad3 | 123 | self.mv[self.mb_stride + mb_x] = res + diff; |
750b299c | 124 | |
e12e2ad3 | 125 | res |
750b299c KS |
126 | } |
127 | } | |
128 | ||
129 | ||
130 | struct TileInfo { | |
131 | flags: u8, | |
132 | mv: MV, | |
133 | bias: i16, | |
134 | child: [Option<Box<TileInfo>>; 4], | |
135 | } | |
136 | ||
137 | #[allow(non_snake_case)] | |
138 | fn dct_row(blk: &mut [i32]) { | |
139 | let dshift = 11; | |
140 | let shift = 8; | |
141 | let t0 = 2841 * blk[1] + 565 * blk[7]; | |
142 | let t1 = 565 * blk[1] - 2841 * blk[7]; | |
143 | let t2 = 1609 * blk[5] + 2408 * blk[3]; | |
144 | let t3 = 2408 * blk[5] - 1609 * blk[3]; | |
145 | let t4 = 1108 * blk[2] - 2676 * blk[6]; | |
146 | let t5 = 2676 * blk[2] + 1108 * blk[6]; | |
147 | let t6 = ((blk[0] + blk[4]) << dshift) + (1 << (shift - 1)); | |
148 | let t7 = ((blk[0] - blk[4]) << dshift) + (1 << (shift - 1)); | |
149 | let t8 = t0 + t2; | |
150 | let t9 = t0 - t2; | |
c83013a1 KS |
151 | let tA = (181 * (t9 + (t1 - t3)) + 0x80) >> 8; |
152 | let tB = (181 * (t9 - (t1 - t3)) + 0x80) >> 8; | |
750b299c KS |
153 | let tC = t1 + t3; |
154 | ||
155 | blk[0] = (t6 + t5 + t8) >> shift; | |
156 | blk[1] = (t7 + t4 + tA) >> shift; | |
157 | blk[2] = (t7 - t4 + tB) >> shift; | |
158 | blk[3] = (t6 - t5 + tC) >> shift; | |
159 | blk[4] = (t6 - t5 - tC) >> shift; | |
160 | blk[5] = (t7 - t4 - tB) >> shift; | |
161 | blk[6] = (t7 + t4 - tA) >> shift; | |
162 | blk[7] = (t6 + t5 - t8) >> shift; | |
163 | } | |
164 | ||
165 | #[allow(non_snake_case)] | |
c2a4fa57 | 166 | #[allow(clippy::erasing_op)] |
c83013a1 | 167 | #[allow(clippy::identity_op)] |
750b299c KS |
168 | fn dct_col(blk: &mut [i32; 64], col: usize) { |
169 | let dshift = 8; | |
170 | let shift = 14; | |
171 | let t0 = (2841 * blk[1*8 + col] + 565 * blk[7*8 + col] + 4) >> 3; | |
172 | let t1 = ( 565 * blk[1*8 + col] - 2841 * blk[7*8 + col] + 4) >> 3; | |
173 | let t2 = (1609 * blk[5*8 + col] + 2408 * blk[3*8 + col] + 4) >> 3; | |
174 | let t3 = (2408 * blk[5*8 + col] - 1609 * blk[3*8 + col] + 4) >> 3; | |
175 | let t4 = (1108 * blk[2*8 + col] - 2676 * blk[6*8 + col] + 4) >> 3; | |
176 | let t5 = (2676 * blk[2*8 + col] + 1108 * blk[6*8 + col] + 4) >> 3; | |
177 | let t6 = ((blk[0*8 + col] + blk[4*8 + col]) << dshift) + (1 << (shift - 1)); | |
178 | let t7 = ((blk[0*8 + col] - blk[4*8 + col]) << dshift) + (1 << (shift - 1)); | |
179 | let t8 = t0 + t2; | |
180 | let t9 = t0 - t2; | |
c83013a1 KS |
181 | let tA = (181 * (t9 + (t1 - t3)) + 0x80) >> 8; |
182 | let tB = (181 * (t9 - (t1 - t3)) + 0x80) >> 8; | |
750b299c KS |
183 | let tC = t1 + t3; |
184 | ||
185 | blk[0*8 + col] = (t6 + t5 + t8) >> shift; | |
186 | blk[1*8 + col] = (t7 + t4 + tA) >> shift; | |
187 | blk[2*8 + col] = (t7 - t4 + tB) >> shift; | |
188 | blk[3*8 + col] = (t6 - t5 + tC) >> shift; | |
189 | blk[4*8 + col] = (t6 - t5 - tC) >> shift; | |
190 | blk[5*8 + col] = (t7 - t4 - tB) >> shift; | |
191 | blk[6*8 + col] = (t7 + t4 - tA) >> shift; | |
192 | blk[7*8 + col] = (t6 + t5 - t8) >> shift; | |
193 | } | |
194 | ||
195 | fn clv_dct(blk: &mut [i32; 64]) { | |
196 | for row in blk.chunks_mut(8) { dct_row(row); } | |
197 | for i in 0..8 { dct_col(blk, i); } | |
198 | } | |
199 | ||
200 | fn clv_dct_dc(blk: &mut [i32; 64]) { | |
201 | let dval = blk[0] >> 3; | |
c83013a1 | 202 | for el in blk.iter_mut() { *el = dval; } |
750b299c KS |
203 | } |
204 | ||
205 | fn put_blocks(buf: &mut NAVideoBuffer<u8>, xpos: usize, ypos: usize, blk: &[[i32;64]; 6]) { | |
206 | let stridey = buf.get_stride(0); | |
207 | let strideu = buf.get_stride(1); | |
208 | let stridev = buf.get_stride(2); | |
209 | let mut idxy = buf.get_offset(0) + xpos * 16 + ypos * 16 * stridey; | |
210 | let mut idxu = buf.get_offset(1) + xpos * 8 + ypos * 8 * strideu; | |
211 | let mut idxv = buf.get_offset(2) + xpos * 8 + ypos * 8 * stridev; | |
212 | ||
1a967e6b | 213 | let data = buf.get_data_mut().unwrap(); |
750b299c KS |
214 | let framebuf: &mut [u8] = data.as_mut_slice(); |
215 | ||
216 | for j in 0..8 { | |
217 | for k in 0..8 { | |
218 | let mut v = blk[0][k + j * 8] + 128; | |
c83013a1 | 219 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
220 | framebuf[idxy + k] = v as u8; |
221 | } | |
222 | for k in 0..8 { | |
223 | let mut v = blk[1][k + j * 8] + 128; | |
c83013a1 | 224 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
225 | framebuf[idxy + k + 8] = v as u8; |
226 | } | |
227 | idxy += stridey; | |
228 | } | |
229 | for j in 0..8 { | |
230 | for k in 0..8 { | |
231 | let mut v = blk[2][k + j * 8] + 128; | |
c83013a1 | 232 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
233 | framebuf[idxy + k] = v as u8; |
234 | } | |
235 | for k in 0..8 { | |
236 | let mut v = blk[3][k + j * 8] + 128; | |
c83013a1 | 237 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
238 | framebuf[idxy + k + 8] = v as u8; |
239 | } | |
240 | idxy += stridey; | |
241 | } | |
242 | ||
243 | for j in 0..8 { | |
244 | for k in 0..8 { | |
245 | let mut v = blk[4][k + j * 8] + 128; | |
c83013a1 | 246 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
247 | framebuf[idxu + k] = v as u8; |
248 | } | |
249 | for k in 0..8 { | |
250 | let mut v = blk[5][k + j * 8] + 128; | |
c83013a1 | 251 | if v < 0 { v = 0; } else if v > 255 { v = 255; } |
750b299c KS |
252 | framebuf[idxv + k] = v as u8; |
253 | } | |
254 | idxu += strideu; | |
255 | idxv += stridev; | |
256 | } | |
257 | } | |
258 | ||
259 | fn copy_block(dst: &mut NAVideoBuffer<u8>, src: &NAVideoBuffer<u8>, | |
e12e2ad3 | 260 | plane: usize, x: usize, y: usize, dx: isize, dy: isize, size: usize) |
750b299c KS |
261 | { |
262 | let sx: isize = (x as isize) + dx; | |
263 | let sy: isize = (y as isize) + dy; | |
264 | ||
750b299c KS |
265 | let sstride = src.get_stride(plane); |
266 | let mut soff = src.get_offset(plane) + (sx as usize) + (sy as usize) * sstride; | |
267 | let sdta = src.get_data(); | |
268 | let sbuf: &[u8] = sdta.as_slice(); | |
269 | let dstride = dst.get_stride(plane); | |
270 | let mut doff = dst.get_offset(plane) + x + y * dstride; | |
1a967e6b | 271 | let ddta = dst.get_data_mut().unwrap(); |
750b299c | 272 | let dbuf: &mut [u8] = ddta.as_mut_slice(); |
e12e2ad3 KS |
273 | for _ in 0..size { |
274 | let dst = &mut dbuf[doff..][..size]; | |
275 | let src = &sbuf[soff..][..size]; | |
750b299c KS |
276 | dst.copy_from_slice(src); |
277 | doff += dstride; | |
278 | soff += sstride; | |
279 | } | |
280 | } | |
281 | ||
282 | fn copyadd_block(dst: &mut NAVideoBuffer<u8>, src: &NAVideoBuffer<u8>, | |
e12e2ad3 | 283 | plane: usize, x: usize, y: usize, dx: isize, dy: isize, size: usize, bias: i16) |
750b299c KS |
284 | { |
285 | let sx: isize = (x as isize) + dx; | |
286 | let sy: isize = (y as isize) + dy; | |
287 | ||
750b299c KS |
288 | let sstride = src.get_stride(plane); |
289 | let mut soff = src.get_offset(plane) + (sx as usize) + (sy as usize) * sstride; | |
290 | let sdta = src.get_data(); | |
291 | let sbuf: &[u8] = sdta.as_slice(); | |
292 | let dstride = dst.get_stride(plane); | |
293 | let mut doff = dst.get_offset(plane) + x + y * dstride; | |
1a967e6b | 294 | let ddta = dst.get_data_mut().unwrap(); |
750b299c | 295 | let dbuf: &mut [u8] = ddta.as_mut_slice(); |
e12e2ad3 KS |
296 | for _ in 0..size { |
297 | let dst = &mut dbuf[doff..][..size]; | |
298 | let src = &sbuf[soff..][..size]; | |
299 | for i in 0..size { | |
c83013a1 | 300 | let val = i16::from(src[i]) + bias; |
750b299c KS |
301 | if val < 0x00 { dst[i] = 0x00; } |
302 | else if val > 0xFF { dst[i] = 0xFF; } | |
303 | else { dst[i] = val as u8; } | |
304 | } | |
305 | doff += dstride; | |
306 | soff += sstride; | |
307 | } | |
308 | } | |
309 | ||
7e52da9e KS |
310 | fn copy_block_w(dst: &mut WFrame, src: &NAVideoBuffer<u8>, |
311 | plane: usize, x: usize, y: usize, dx: isize, dy: isize, | |
312 | size: usize, weights: &[[Vec<u8>; 9]]) | |
313 | { | |
314 | let sx: isize = (x as isize) + dx; | |
315 | let sy: isize = (y as isize) + dy; | |
316 | ||
317 | let (w, h) = src.get_dimensions(plane); | |
318 | let sstride = src.get_stride(plane); | |
319 | let mut soff = src.get_offset(plane) + (sx as usize) + (sy as usize) * sstride; | |
320 | let sdta = src.get_data(); | |
321 | let sbuf: &[u8] = sdta.as_slice(); | |
322 | let dstride = dst.stride[plane]; | |
323 | let mut doff = x + y * dstride; | |
324 | let dbuf = &mut dst.data[plane]; | |
325 | ||
326 | let m1 = if x > 0 { if x + size < w { 0 } else { 2 } } else { 1 }; | |
327 | let m0 = if y > 0 { if y + size < h { 0 } else { 2 } } else { 1 }; | |
328 | let weight = &weights[size.trailing_zeros() as usize][m0 * 3 + m1]; | |
329 | let blk_w = if m1 != 0 { size + 1 } else { size + 2 }; | |
330 | let blk_h = if m0 != 0 { size + 1 } else { size + 2 }; | |
331 | if m1 != 1 { | |
332 | soff -= 1; | |
333 | doff -= 1; | |
334 | } | |
335 | if m0 != 1 { | |
336 | soff -= sstride; | |
337 | doff -= dstride; | |
338 | } | |
339 | ||
340 | let mut cur_w = weight.iter(); | |
341 | for _y in 0..blk_h { | |
342 | for x in 0..blk_w { | |
343 | let scale = u32::from(*cur_w.next().unwrap()); | |
344 | let src = u32::from(sbuf[soff + x]); | |
345 | dbuf[doff + x] += scale | ((src * scale) << 8); | |
346 | } | |
347 | soff += sstride; | |
348 | doff += dstride; | |
349 | } | |
350 | } | |
351 | ||
352 | fn copyadd_block_w(dst: &mut WFrame, src: &NAVideoBuffer<u8>, | |
353 | plane: usize, x: usize, y: usize, dx: isize, dy: isize, | |
354 | size: usize, bias: i16, weights: &[[Vec<u8>; 9]]) | |
355 | { | |
356 | let sx: isize = (x as isize) + dx; | |
357 | let sy: isize = (y as isize) + dy; | |
358 | ||
359 | let (w, h) = src.get_dimensions(plane); | |
360 | let sstride = src.get_stride(plane); | |
361 | let mut soff = src.get_offset(plane) + (sx as usize) + (sy as usize) * sstride; | |
362 | let sdta = src.get_data(); | |
363 | let sbuf: &[u8] = sdta.as_slice(); | |
364 | let dstride = dst.stride[plane]; | |
365 | let mut doff = x + y * dstride; | |
366 | let dbuf = &mut dst.data[plane]; | |
367 | ||
368 | let m1 = if x > 0 { if x + size < w { 0 } else { 2 } } else { 1 }; | |
369 | let m0 = if y > 0 { if y + size < h { 0 } else { 2 } } else { 1 }; | |
370 | let weight = &weights[size.trailing_zeros() as usize][m0 * 3 + m1]; | |
371 | let blk_w = if m1 != 0 { size + 1 } else { size + 2 }; | |
372 | let blk_h = if m0 != 0 { size + 1 } else { size + 2 }; | |
373 | if m1 != 1 { | |
374 | soff -= 1; | |
375 | doff -= 1; | |
376 | } | |
377 | if m0 != 1 { | |
378 | soff -= sstride; | |
379 | doff -= dstride; | |
380 | } | |
381 | ||
382 | let mut cur_w = weight.iter(); | |
383 | for _y in 0..blk_h { | |
384 | for x in 0..blk_w { | |
385 | let scale = u32::from(*cur_w.next().unwrap()); | |
386 | let val = (i16::from(sbuf[soff + x]) + bias).max(0).min(255) as u32; | |
387 | dbuf[doff + x] += scale | ((val * scale) << 8); | |
388 | } | |
389 | soff += sstride; | |
390 | doff += dstride; | |
391 | } | |
392 | } | |
393 | ||
750b299c | 394 | fn tile_do_block(dst: &mut NAVideoBuffer<u8>, src: &NAVideoBuffer<u8>, |
e12e2ad3 | 395 | plane: usize, x: usize, y: usize, dx: i16, dy: i16, size: usize, bias: i16) |
750b299c KS |
396 | { |
397 | if bias == 0 { | |
e12e2ad3 | 398 | copy_block(dst, src, plane, x, y, dx as isize, dy as isize, size); |
750b299c | 399 | } else { |
e12e2ad3 | 400 | copyadd_block(dst, src, plane, x, y, dx as isize, dy as isize, size, bias); |
750b299c KS |
401 | } |
402 | } | |
403 | ||
7e52da9e KS |
404 | fn tile_do_block_w(dst: &mut WFrame, src: &NAVideoBuffer<u8>, |
405 | plane: usize, x: usize, y: usize, dx: i16, dy: i16, size: usize, bias: i16, weights: &[[Vec<u8>; 9]]) | |
406 | { | |
407 | if bias == 0 { | |
408 | copy_block_w(dst, src, plane, x, y, dx as isize, dy as isize, size, weights); | |
409 | } else { | |
410 | copyadd_block_w(dst, src, plane, x, y, dx as isize, dy as isize, size, bias, weights); | |
411 | } | |
412 | } | |
413 | ||
750b299c | 414 | fn restore_tree(dst: &mut NAVideoBuffer<u8>, src: &NAVideoBuffer<u8>, plane: usize, |
e12e2ad3 | 415 | x: usize, y: usize, size: usize, tile: &TileInfo, root_mv: MV) { |
750b299c KS |
416 | let mv = root_mv + tile.mv; |
417 | ||
418 | if tile.flags == 0 { | |
e12e2ad3 | 419 | tile_do_block(dst, src, plane, x, y, mv.x, mv.y, size, tile.bias); |
750b299c | 420 | } else { |
e12e2ad3 | 421 | let hsize = size >> 1; |
750b299c | 422 | for i in 0..4 { |
e12e2ad3 KS |
423 | let xoff = if (i & 2) == 0 { 0 } else { hsize }; |
424 | let yoff = if (i & 1) == 0 { 0 } else { hsize }; | |
750b299c KS |
425 | |
426 | if let Some(ref subtile) = tile.child[i] { | |
e12e2ad3 | 427 | restore_tree(dst, src, plane, x + xoff, y + yoff, hsize, subtile, root_mv); |
750b299c | 428 | } else { |
e12e2ad3 | 429 | tile_do_block(dst, src, plane, x + xoff, y + yoff, mv.x, mv.y, hsize, tile.bias); |
750b299c KS |
430 | } |
431 | } | |
432 | } | |
433 | } | |
434 | ||
7e52da9e KS |
435 | fn restore_tree_weighted(dst: &mut WFrame, src: &NAVideoBuffer<u8>, plane: usize, |
436 | x: usize, y: usize, size: usize, tile: &TileInfo, root_mv: MV, weights: &[[Vec<u8>; 9]]) { | |
437 | let mv = root_mv + tile.mv; | |
438 | ||
439 | if tile.flags == 0 { | |
440 | tile_do_block_w(dst, src, plane, x, y, mv.x, mv.y, size, tile.bias, weights); | |
441 | } else { | |
442 | let hsize = size >> 1; | |
443 | for i in 0..4 { | |
444 | let xoff = if (i & 2) == 0 { 0 } else { hsize }; | |
445 | let yoff = if (i & 1) == 0 { 0 } else { hsize }; | |
446 | ||
447 | if let Some(ref subtile) = tile.child[i] { | |
448 | restore_tree_weighted(dst, src, plane, x + xoff, y + yoff, hsize, subtile, root_mv, weights); | |
449 | } else { | |
450 | tile_do_block_w(dst, src, plane, x + xoff, y + yoff, mv.x, mv.y, hsize, tile.bias, weights); | |
451 | } | |
452 | } | |
453 | } | |
454 | } | |
455 | ||
750b299c KS |
456 | fn extend_edges(buf: &mut NAVideoBuffer<u8>, tile_size: usize) { |
457 | for comp in 0..3 { | |
458 | let (w, h) = buf.get_dimensions(comp); | |
459 | let size = if comp == 0 { tile_size } else { tile_size >> 1 }; | |
460 | let stride = buf.get_stride(comp); | |
461 | let planeoff = buf.get_offset(comp); | |
1a967e6b | 462 | let data = buf.get_data_mut().unwrap(); |
750b299c KS |
463 | let framebuf: &mut [u8] = data.as_mut_slice(); |
464 | ||
465 | let right = size - (w & (size - 1)); | |
466 | let bottom = size - (h & (size - 1)); | |
467 | ||
468 | if (right == size) && (bottom == size) { return; } | |
469 | if right != size { | |
470 | let mut off = planeoff + w; | |
471 | for _ in 0..h { | |
472 | for i in 0..right { framebuf[off + i] = 0x80; } | |
473 | off += stride; | |
474 | } | |
475 | } | |
476 | if bottom != size { | |
477 | let mut off = planeoff + h * stride; | |
478 | for _ in 0..bottom { | |
479 | for i in 0..stride { framebuf[off + i] = 0x80; } | |
480 | off += stride; | |
481 | } | |
482 | } | |
483 | } | |
484 | } | |
485 | ||
7e52da9e KS |
486 | #[derive(Default)] |
487 | struct WFrame { | |
488 | data: [Vec<u32>; 3], | |
489 | stride: [usize; 3], | |
490 | } | |
491 | ||
492 | impl WFrame { | |
493 | fn new() -> Self { Self::default() } | |
494 | fn resize(&mut self, w: usize, h: usize, align: u8) { | |
495 | let mask = (1 << align) - 1; | |
496 | let wa = (w + mask) & !mask; | |
497 | let ha = (h + mask) & !mask; | |
498 | self.data[0].resize(wa * ha, 0); | |
499 | self.stride[0] = wa; | |
500 | self.data[1].resize(wa / 2 * ha / 2, 0); | |
501 | self.stride[1] = wa / 2; | |
502 | self.data[2].resize(wa / 2 * ha / 2, 0); | |
503 | self.stride[2] = wa / 2; | |
504 | } | |
505 | fn clear(&mut self) { | |
506 | for plane in self.data.iter_mut() { | |
507 | for el in plane.iter_mut() { | |
508 | *el = 0; | |
509 | } | |
510 | } | |
511 | } | |
512 | fn output(&self, buf: &mut NAVideoBuffer<u8>) { | |
513 | for plane in 0..3 { | |
514 | let (w, h) = buf.get_dimensions(plane); | |
515 | let dstride = buf.get_stride(plane); | |
516 | let doff = buf.get_offset(plane); | |
517 | let ddta = buf.get_data_mut().unwrap(); | |
518 | for (dst, src) in ddta[doff..].chunks_mut(dstride).take(h).zip(self.data[plane].chunks(self.stride[plane])) { | |
519 | for (dst, &src) in dst.iter_mut().take(w).zip(src.iter()) { | |
520 | let scale = src & 0xFF; | |
521 | *dst = if scale == 0 { | |
522 | 0 | |
523 | } else if scale == 16 { // common case | |
524 | (src >> 12) as u8 | |
525 | } else { | |
526 | let val = src >> 8; | |
527 | (val / scale) as u8 | |
528 | }; | |
529 | } | |
530 | } | |
531 | } | |
532 | } | |
533 | } | |
534 | ||
750b299c KS |
535 | #[allow(dead_code)] |
536 | struct ClearVideoDecoder { | |
2422d969 | 537 | info: NACodecInfoRef, |
750b299c KS |
538 | dc_cb: Codebook<i8>, |
539 | ac_cb: Codebook<u16>, | |
8d7a1c5c | 540 | frmmgr: HAMShuffler<u8>, |
750b299c KS |
541 | is_rm: bool, |
542 | ylev: [LevelCodes; 4], | |
543 | ulev: [LevelCodes; 3], | |
544 | vlev: [LevelCodes; 3], | |
545 | tsize: u8, | |
7e52da9e KS |
546 | |
547 | weighted: bool, | |
548 | weights: Vec<[Vec<u8>; 9]>, | |
549 | wframe: WFrame, | |
750b299c KS |
550 | } |
551 | ||
552 | fn decode_dct_block(br: &mut BitReader, blk: &mut [i32; 64], ac_quant: i32, has_ac: bool, | |
553 | dc_cb: &Codebook<i8>, ac_cb: &Codebook<u16>) -> DecoderResult<()> { | |
554 | let mut idx = 1; | |
555 | let mut eob = false; | |
556 | ||
c83013a1 | 557 | blk[0] = i32::from(br.read_cb(dc_cb)?); |
750b299c KS |
558 | |
559 | if !has_ac { return Ok(()); } | |
560 | ||
561 | while (idx < 64) && !eob { | |
562 | let val = br.read_cb(ac_cb)?; | |
563 | let (level, skip) = if val != CLV_AC_ESCAPE { | |
564 | eob = ((val >> 12) & 1) != 0; | |
565 | let run = ((val >> 4) & 0xFF) as usize; | |
c83013a1 | 566 | let lev = i32::from(val & 0xF); |
750b299c KS |
567 | if br.read_bool()? { |
568 | (-lev, run) | |
569 | } else { | |
570 | ( lev, run) | |
571 | } | |
572 | } else { | |
573 | eob = br.read_bool()?; | |
574 | let run = br.read(6)? as usize; | |
575 | let lev = br.read_s(8)? as i32; | |
576 | (lev, run) | |
577 | }; | |
578 | idx += skip; | |
579 | validate!(idx < 64); | |
580 | if level != 0 { | |
581 | let (aval, sign) = if level >= 0 { (level, false) } else { (-level, true) }; | |
582 | let mut val = ac_quant * (2 * aval + 1); | |
583 | if (ac_quant & 1) == 0 { | |
584 | val -= 1; | |
585 | } | |
586 | if sign { | |
587 | val = -val; | |
588 | } | |
589 | blk[ZIGZAG[idx]] = val; | |
590 | } | |
591 | idx += 1; | |
592 | } | |
593 | ||
594 | validate!(idx <= 64 && eob); | |
595 | ||
596 | Ok(()) | |
597 | } | |
598 | ||
599 | fn decode_tile_info(br: &mut BitReader, lc: &[LevelCodes], level: usize) -> DecoderResult<Box<TileInfo>> { | |
600 | let flags = if let Some(ref cb) = lc[level].flags_cb { | |
601 | br.read_cb(cb)? | |
602 | } else { | |
603 | 0 | |
604 | }; | |
605 | let mv = if let Some(ref cb) = lc[level].mv_cb { | |
606 | let mv_code = br.read_cb(cb)?; | |
607 | if mv_code != lc[level].mv_esc { | |
c83013a1 | 608 | MV::new(i16::from((mv_code & 0xFF) as i8), (mv_code as i16) >> 8) |
750b299c | 609 | } else { |
750b299c KS |
610 | let x = br.read_s(8)? as i16; |
611 | let y = br.read_s(8)? as i16; | |
612 | MV::new(x, y) | |
613 | } | |
614 | } else { | |
615 | ZERO_MV | |
616 | }; | |
617 | let bias = if let Some(ref cb) = lc[level].bias_cb { | |
618 | let bias_val = br.read_cb(cb)?; | |
619 | if bias_val != lc[level].bias_esc { | |
620 | bias_val as i16 | |
621 | } else { | |
750b299c KS |
622 | br.read_s(16)? as i16 |
623 | } | |
624 | } else { | |
625 | 0 | |
626 | }; | |
c83013a1 | 627 | let mut ti = TileInfo { flags, mv, bias, child: [None, None, None, None] }; |
750b299c KS |
628 | if ti.flags != 0 { |
629 | for i in 0..4 { | |
630 | if (ti.flags & (1 << i)) != 0 { | |
631 | let subti = decode_tile_info(br, lc, level + 1)?; | |
632 | ti.child[i] = Some(subti); | |
633 | } | |
634 | } | |
635 | } | |
636 | Ok(Box::new(ti)) | |
637 | } | |
638 | ||
639 | impl ClearVideoDecoder { | |
640 | fn new(is_rm: bool) -> Self { | |
2422d969 | 641 | let dummy_info = NACodecInfo::new_dummy(); |
750b299c KS |
642 | let mut coderead = CLVDCCodeReader{}; |
643 | let dc_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); | |
644 | let mut coderead = CLVACCodeReader{}; | |
645 | let ac_cb = Codebook::new(&mut coderead, CodebookMode::MSB).unwrap(); | |
646 | ||
647 | ClearVideoDecoder { | |
648 | info: dummy_info, | |
c83013a1 | 649 | dc_cb, ac_cb, |
750b299c | 650 | frmmgr: HAMShuffler::new(), |
c83013a1 | 651 | is_rm, |
750b299c KS |
652 | ylev: [ |
653 | LevelCodes::new(Some((CLV_FLAGSY_0_BITS, CLV_FLAGSY_0_CODES)), | |
654 | Some((CLV_MVY_0_BITS, CLV_MVY_0_CODES, CLV_MVY_0_SYMS)), CLV_MVY_0_ESCAPE, | |
655 | None, 0), | |
656 | LevelCodes::new(Some((CLV_FLAGSY_1_BITS, CLV_FLAGSY_1_CODES)), | |
657 | Some((CLV_MVY_1_BITS, CLV_MVY_1_CODES, CLV_MVY_1_SYMS)), CLV_MVY_1_ESCAPE, | |
658 | Some((CLV_BIASY_1_BITS, CLV_BIASY_1_CODES, CLV_BIASY_1_SYMS)), CLV_BIAS_ESCAPE), | |
659 | LevelCodes::new(Some((CLV_FLAGSY_2_BITS, CLV_FLAGSY_2_CODES)), | |
660 | Some((CLV_MVY_2_BITS, CLV_MVY_2_CODES, CLV_MVY_2_SYMS)), CLV_MVY_2_ESCAPE, | |
661 | Some((CLV_BIASY_2_BITS, CLV_BIASY_2_CODES, CLV_BIASY_2_SYMS)), CLV_BIAS_ESCAPE), | |
662 | LevelCodes::new(None, | |
663 | Some((CLV_MVY_3_BITS, CLV_MVY_3_CODES, CLV_MVY_3_SYMS)), CLV_MVY_3_ESCAPE, | |
664 | Some((CLV_BIASY_3_BITS, CLV_BIASY_3_CODES, CLV_BIASY_3_SYMS)), CLV_BIAS_ESCAPE) | |
665 | ], | |
666 | ulev: [ | |
667 | LevelCodes::new(Some((CLV_FLAGSU_0_BITS, CLV_FLAGSU_0_CODES)), | |
668 | None, 0, | |
669 | None, 0), | |
670 | LevelCodes::new(Some((CLV_FLAGSU_1_BITS, CLV_FLAGSU_1_CODES)), | |
671 | Some((CLV_MVU_1_BITS, CLV_MVU_1_CODES, CLV_MVU_1_SYMS)), CLV_MVU_1_ESCAPE, | |
672 | Some((CLV_BIASU_1_BITS, CLV_BIASU_1_CODES, CLV_BIASU_1_SYMS)), CLV_BIAS_ESCAPE), | |
673 | LevelCodes::new(None, | |
674 | Some((CLV_MVU_2_BITS, CLV_MVU_2_CODES, CLV_MVU_2_SYMS)), CLV_MVU_2_ESCAPE, | |
675 | Some((CLV_BIASU_2_BITS, CLV_BIASU_2_CODES, CLV_BIASU_2_SYMS)), CLV_BIAS_ESCAPE), | |
676 | ], | |
677 | vlev: [ | |
678 | LevelCodes::new(Some((CLV_FLAGSV_0_BITS, CLV_FLAGSV_0_CODES)), | |
679 | None, 0, | |
680 | None, 0), | |
681 | LevelCodes::new(Some((CLV_FLAGSV_1_BITS, CLV_FLAGSV_1_CODES)), | |
682 | Some((CLV_MVV_1_BITS, CLV_MVV_1_CODES, CLV_MVV_1_SYMS)), CLV_MVV_1_ESCAPE, | |
683 | Some((CLV_BIASV_1_BITS, CLV_BIASV_1_CODES, CLV_BIASV_1_SYMS)), CLV_BIAS_ESCAPE), | |
684 | LevelCodes::new(None, | |
685 | Some((CLV_MVV_2_BITS, CLV_MVV_2_CODES, CLV_MVV_2_SYMS)), CLV_MVV_2_ESCAPE, | |
686 | Some((CLV_BIASV_2_BITS, CLV_BIASV_2_CODES, CLV_BIASV_2_SYMS)), CLV_BIAS_ESCAPE), | |
687 | ], | |
688 | tsize: 0, | |
7e52da9e KS |
689 | |
690 | weighted: false, | |
691 | weights: Vec::new(), | |
692 | wframe: WFrame::new(), | |
750b299c KS |
693 | } |
694 | } | |
695 | ||
696 | fn decode_frame_intra(&mut self, br: &mut BitReader, buf: &mut NAVideoBuffer<u8>, | |
697 | width: usize, height: usize) -> DecoderResult<()> { | |
698 | let ac_quant = br.read(8)? as i32; | |
699 | ||
700 | let mut top_dc: [i32; 3] = [0; 3]; | |
701 | let mut left_dc: [i32; 4] = [0; 4]; | |
702 | ||
703 | let mb_w = (width + 0xF) >> 4; | |
704 | let mb_h = (height + 0xF) >> 4; | |
705 | for mb_y in 0..mb_h { | |
706 | for mb_x in 0..mb_w { | |
707 | let mut blks: [[i32; 64]; 6] = [[0; 64]; 6]; | |
708 | let mut has_ac: [bool; 6] = [false; 6]; | |
709 | ||
c83013a1 | 710 | for flag in has_ac.iter_mut() { *flag = br.read_bool()?; } |
750b299c KS |
711 | |
712 | for i in 0..4 { | |
713 | decode_dct_block(br, &mut blks[i], ac_quant, has_ac[i], &self.dc_cb, &self.ac_cb)?; | |
714 | if (mb_x == 0) && (i == 0 || i == 2) { | |
715 | blks[i][0] += top_dc[0]; | |
716 | top_dc[0] = blks[i][0]; | |
717 | } else { | |
718 | blks[i][0] += left_dc[(i & 2) >> 1]; | |
719 | } | |
720 | left_dc[(i & 2) >> 1] = blks[i][0]; | |
721 | blks[i][0] <<= 5; // DC dequant | |
722 | if has_ac[i] { | |
723 | clv_dct(&mut blks[i]); | |
724 | } else { | |
725 | clv_dct_dc(&mut blks[i]); | |
726 | } | |
727 | } | |
728 | for i in 1..3 { | |
729 | let blk_idx = i + 3; | |
730 | decode_dct_block(br, &mut blks[blk_idx], ac_quant, has_ac[blk_idx], &self.dc_cb, &self.ac_cb)?; | |
731 | if mb_x == 0 { | |
732 | blks[blk_idx][0] += top_dc[i]; | |
733 | top_dc[i] = blks[blk_idx][0]; | |
734 | } else { | |
735 | blks[blk_idx][0] += left_dc[i + 1]; | |
736 | } | |
737 | left_dc[i + 1] = blks[blk_idx][0]; | |
738 | blks[blk_idx][0] <<= 5; // DC dequant | |
739 | if has_ac[blk_idx] { | |
740 | clv_dct(&mut blks[blk_idx]); | |
741 | } else { | |
742 | clv_dct_dc(&mut blks[blk_idx]); | |
743 | } | |
744 | } | |
745 | put_blocks(buf, mb_x, mb_y, &blks); | |
746 | } | |
747 | } | |
748 | Ok(()) | |
749 | } | |
750 | fn decode_frame_inter(&mut self, br: &mut BitReader, | |
751 | buf: &mut NAVideoBuffer<u8>, prev: &mut NAVideoBuffer<u8>, | |
752 | width: usize, height: usize) -> DecoderResult<()> { | |
753 | let mb_size = 1 << self.tsize; | |
754 | let mb_w = (width + mb_size - 1) >> self.tsize; | |
755 | let mb_h = (height + mb_size - 1) >> self.tsize; | |
756 | ||
757 | let mut mvi = MVInfo::new(); | |
758 | mvi.reset(mb_w, mb_h, mb_size); | |
759 | ||
7e52da9e KS |
760 | if self.weighted { |
761 | self.wframe.clear(); | |
762 | } | |
763 | ||
750b299c KS |
764 | for t_y in 0..mb_h { |
765 | for t_x in 0..mb_w { | |
750b299c KS |
766 | if !br.read_bool()? { |
767 | let x = t_x << self.tsize; | |
768 | let y = t_y << self.tsize; | |
e12e2ad3 | 769 | let size = 1 << self.tsize; |
750b299c KS |
770 | let tile = decode_tile_info(br, &self.ylev, 0)?; |
771 | let mv = mvi.predict(t_x, t_y, tile.mv); | |
7e52da9e KS |
772 | if !self.weighted { |
773 | restore_tree(buf, prev, 0, x, y, size, &tile, mv); | |
774 | } else { | |
775 | restore_tree_weighted(&mut self.wframe, prev, 0, x, y, size, &tile, mv, &self.weights); | |
776 | } | |
750b299c KS |
777 | let x = t_x << (self.tsize - 1); |
778 | let y = t_y << (self.tsize - 1); | |
e12e2ad3 | 779 | let size = 1 << (self.tsize - 1); |
750b299c KS |
780 | let mut cmv = mv + tile.mv; |
781 | cmv.x /= 2; | |
782 | cmv.y /= 2; | |
783 | let tile = decode_tile_info(br, &self.ulev, 0)?; | |
7e52da9e KS |
784 | if !self.weighted { |
785 | restore_tree(buf, prev, 1, x, y, size, &tile, cmv); | |
786 | } else { | |
787 | restore_tree_weighted(&mut self.wframe, prev, 1, x, y, size, &tile, cmv, &self.weights); | |
788 | } | |
750b299c | 789 | let tile = decode_tile_info(br, &self.vlev, 0)?; |
7e52da9e KS |
790 | if !self.weighted { |
791 | restore_tree(buf, prev, 2, x, y, size, &tile, cmv); | |
792 | } else { | |
793 | restore_tree_weighted(&mut self.wframe, prev, 2, x, y, size, &tile, cmv, &self.weights); | |
794 | } | |
750b299c KS |
795 | } else { |
796 | let mv = mvi.predict(t_x, t_y, ZERO_MV); | |
750b299c KS |
797 | for plane in 0..3 { |
798 | let x = if plane == 0 { t_x << self.tsize } else { t_x << (self.tsize - 1) }; | |
799 | let y = if plane == 0 { t_y << self.tsize } else { t_y << (self.tsize - 1) }; | |
e12e2ad3 KS |
800 | let size = if plane == 0 { 1 << self.tsize } else { 1 << (self.tsize - 1) }; |
801 | let mx = if plane == 0 { mv.x as isize } else { (mv.x >> 1) as isize }; | |
802 | let my = if plane == 0 { mv.y as isize } else { (mv.y >> 1) as isize }; | |
7e52da9e KS |
803 | if !self.weighted { |
804 | copy_block(buf, prev, plane, x, y, mx, my, size); | |
805 | } else { | |
806 | copy_block_w(&mut self.wframe, prev, plane, x, y, mx, my, size, &self.weights); | |
807 | } | |
750b299c KS |
808 | } |
809 | } | |
810 | } | |
811 | mvi.update_row(); | |
812 | } | |
7e52da9e KS |
813 | if self.weighted { |
814 | self.wframe.output(buf); | |
815 | } | |
750b299c KS |
816 | Ok(()) |
817 | } | |
818 | } | |
819 | ||
7e52da9e KS |
820 | fn generate_weights(weights: &mut Vec<[Vec<u8>; 9]>, depth: u8) { |
821 | const WEIGHT2X2: [u8; 9] = [ 1, 2, 1, 2, 4, 2, 1, 2, 1]; | |
822 | ||
823 | for d in 0..=depth as usize { | |
824 | let size = 1 << d; | |
825 | let hsize = size >> 1; | |
826 | let dsize = (size + 2) * (size + 2); | |
827 | let mut cur_w = [Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize), Vec::with_capacity(dsize)]; | |
828 | for m0 in 0..3 { | |
829 | let h = if m0 == 0 { size + 2 } else { size + 1 }; | |
830 | for m1 in 0..3 { | |
831 | let w = if m1 == 0 { size + 2 } else { size + 1 }; | |
832 | let idx = m0 * 3 + m1; | |
833 | if idx == 0 { | |
834 | if size == 1 { | |
835 | cur_w[0].extend_from_slice(&WEIGHT2X2); | |
836 | } else { | |
837 | cur_w[0].resize(w * h, 0); | |
838 | let mut idx0 = 0; | |
839 | let mut idx1 = (size + 2) * hsize; | |
840 | let mut ref_iter = weights[d - 1][0].iter(); | |
841 | for _y in 0..(hsize + 2) { | |
842 | for _x in 0..(hsize + 2) { | |
843 | let ref_val = ref_iter.next().unwrap(); | |
844 | cur_w[0][idx0] += ref_val; | |
845 | cur_w[0][idx0 + hsize] += ref_val; | |
846 | cur_w[0][idx1] += ref_val; | |
847 | cur_w[0][idx1 + hsize] += ref_val; | |
848 | idx0 += 1; | |
849 | idx1 += 1; | |
850 | } | |
851 | idx0 += hsize; | |
852 | idx1 += hsize; | |
853 | } | |
854 | } | |
855 | } else { | |
856 | cur_w[idx].resize(w * h, 0); | |
857 | for y0 in 0..(size + 2) { | |
858 | let y = match m0 { | |
859 | 0 => y0, | |
860 | 1 => y0.saturating_sub(1), | |
861 | _ => y0.min(h - 1), | |
862 | }; | |
863 | for x0 in 0..(size + 2) { | |
864 | let x = match m1 { | |
865 | 0 => x0, | |
866 | 1 => x0.saturating_sub(1), | |
867 | _ => x0.min(w - 1), | |
868 | }; | |
869 | let ref_val = cur_w[0][x0 + y0 * (size + 2)]; | |
870 | cur_w[idx][x + y * w] += ref_val; | |
871 | } | |
872 | } | |
873 | } | |
874 | } | |
875 | } | |
876 | weights.push(cur_w); | |
877 | } | |
878 | } | |
879 | ||
750b299c | 880 | impl NADecoder for ClearVideoDecoder { |
61cab15b | 881 | #[allow(clippy::or_fun_call)] |
01613464 | 882 | fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> { |
750b299c | 883 | if let NACodecTypeInfo::Video(vinfo) = info.get_properties() { |
3cd340f1 KS |
884 | let mut w = vinfo.get_width(); |
885 | if self.is_rm { | |
886 | w = (w + 0x1F) & !0x1F; | |
887 | } | |
750b299c KS |
888 | let h = vinfo.get_height(); |
889 | let f = vinfo.is_flipped(); | |
890 | let fmt = formats::YUV420_FORMAT; | |
891 | let myinfo = NACodecTypeInfo::Video(NAVideoInfo::new(w, h, f, fmt)); | |
2422d969 | 892 | self.info = NACodecInfo::new_ref(info.get_name(), myinfo, info.get_extradata()).into_ref(); |
750b299c | 893 | self.frmmgr.clear(); |
4c6a05ff | 894 | let edata = info.get_extradata().unwrap_or(std::sync::Arc::new(vec![])); |
e12e2ad3 | 895 | //todo detect simply by extradata contents? |
4c6a05ff KS |
896 | if edata.len() == 0 || edata.len() < 0x60 { // no or short extradata probably comes from MOV |
897 | self.tsize = 4; | |
898 | } else if !self.is_rm { | |
750b299c KS |
899 | let mut mr = MemoryReader::new_read(edata.as_slice()); |
900 | let mut br = ByteReader::new(&mut mr); | |
901 | br.read_skip(0x5E).unwrap(); | |
902 | let tile_size = br.read_u32le()?; | |
903 | self.tsize = tile_size.trailing_zeros() as u8; | |
904 | } else { | |
905 | let mut mr = MemoryReader::new_read(edata.as_slice()); | |
906 | let mut br = ByteReader::new(&mut mr); | |
907 | br.read_skip(0x86).unwrap(); | |
908 | let tile_size = br.read_u32be()?; | |
909 | self.tsize = tile_size.trailing_zeros() as u8; | |
910 | } | |
7e52da9e KS |
911 | generate_weights(&mut self.weights, self.tsize); |
912 | self.wframe.resize(w, h, self.tsize); | |
750b299c KS |
913 | Ok(()) |
914 | } else { | |
915 | Err(DecoderError::InvalidData) | |
916 | } | |
917 | } | |
01613464 | 918 | fn decode(&mut self, _supp: &mut NADecoderSupport, pkt: &NAPacket) -> DecoderResult<NAFrameRef> { |
750b299c KS |
919 | let src = pkt.get_buffer(); |
920 | if src.len() <= 1 { return Err(DecoderError::ShortData); } | |
921 | let off = if self.is_rm { | |
922 | let nhdr = src[0] as usize; | |
923 | (nhdr + 1) * 8 + 1 | |
924 | } else { | |
925 | 0 | |
926 | }; | |
927 | if src.len() <= off + 1 { return Err(DecoderError::ShortData); } | |
9e8a5d2d KS |
928 | |
929 | if (src[off] & 0x7F) == 0x30 { | |
930 | let mut frm = NAFrame::new_from_pkt(pkt, self.info.clone(), NABufferType::None); | |
931 | frm.set_keyframe(false); | |
932 | frm.set_frame_type(FrameType::Skip); | |
171860fc | 933 | return Ok(frm.into_ref()); |
9e8a5d2d KS |
934 | } |
935 | ||
7e52da9e KS |
936 | if (src[off] & 0xBF) == 5 { |
937 | // reset reference frame into grayscale | |
938 | unimplemented!(); | |
939 | } | |
940 | self.weighted = (src[off] & 0x40) != 0; | |
941 | ||
750b299c | 942 | let is_intra = (src[off] & 2) == 2; |
fa90ccfb | 943 | let mut br = BitReader::new(&src[(off + 1)..], BitReaderMode::BE); |
750b299c KS |
944 | |
945 | let vinfo = self.info.get_properties().get_video_info().unwrap(); | |
c83013a1 | 946 | let bufinfo = alloc_video_buffer(vinfo, self.tsize)?; |
750b299c KS |
947 | let mut buf = bufinfo.get_vbuf().unwrap(); |
948 | ||
949 | if is_intra { | |
950 | let fsize = br.read(32)? as usize; | |
951 | validate!(fsize <= src.len() - off); | |
952 | self.decode_frame_intra(&mut br, &mut buf, vinfo.get_width(), vinfo.get_height())?; | |
953 | extend_edges(&mut buf, 1 << self.tsize); | |
954 | } else { | |
6e24ec0b KS |
955 | let pref = self.frmmgr.clone_ref(); |
956 | if pref.is_none() { return Err(DecoderError::MissingReference); } | |
957 | let mut prev = pref.unwrap(); | |
e12e2ad3 | 958 | extend_edges(&mut prev, 1 << self.tsize); |
750b299c KS |
959 | self.decode_frame_inter(&mut br, &mut buf, &mut prev, vinfo.get_width(), vinfo.get_height())?; |
960 | extend_edges(&mut buf, 1 << self.tsize); | |
961 | } | |
962 | self.frmmgr.add_frame(buf); | |
963 | let mut frm = NAFrame::new_from_pkt(pkt, self.info.clone(), bufinfo); | |
964 | frm.set_keyframe(is_intra); | |
965 | if is_intra { | |
966 | frm.set_frame_type(FrameType::I); | |
967 | } else { | |
968 | frm.set_frame_type(FrameType::P); | |
969 | } | |
171860fc | 970 | Ok(frm.into_ref()) |
750b299c | 971 | } |
f9be4e75 KS |
972 | fn flush(&mut self) { |
973 | self.frmmgr.clear(); | |
974 | } | |
750b299c KS |
975 | } |
976 | ||
7d57ae2f KS |
977 | impl NAOptionHandler for ClearVideoDecoder { |
978 | fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] } | |
979 | fn set_options(&mut self, _options: &[NAOption]) { } | |
980 | fn query_option_value(&self, _name: &str) -> Option<NAValue> { None } | |
981 | } | |
982 | ||
08a1fab7 | 983 | pub fn get_decoder() -> Box<dyn NADecoder + Send> { |
750b299c KS |
984 | Box::new(ClearVideoDecoder::new(false)) |
985 | } | |
986 | ||
08a1fab7 | 987 | pub fn get_decoder_rm() -> Box<dyn NADecoder + Send> { |
750b299c KS |
988 | Box::new(ClearVideoDecoder::new(true)) |
989 | } | |
990 | ||
991 | #[cfg(test)] | |
992 | mod test { | |
4f6124ac KS |
993 | use nihav_core::codecs::RegisteredDecoders; |
994 | use nihav_core::demuxers::RegisteredDemuxers; | |
ce742854 | 995 | use nihav_codec_support::test::dec_video::*; |
78fb6560 | 996 | use crate::generic_register_all_decoders; |
e64739f8 | 997 | use crate::generic_register_all_demuxers; |
750b299c KS |
998 | #[test] |
999 | fn test_clv() { | |
4f6124ac KS |
1000 | let mut dmx_reg = RegisteredDemuxers::new(); |
1001 | generic_register_all_demuxers(&mut dmx_reg); | |
1002 | let mut dec_reg = RegisteredDecoders::new(); | |
78fb6560 | 1003 | generic_register_all_decoders(&mut dec_reg); |
886cde48 | 1004 | // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/TalkingHead_352x288.avi |
5b9e314d KS |
1005 | test_decoding("avi", "clearvideo", "assets/Misc/TalkingHead_352x288.avi", Some(10), &dmx_reg, |
1006 | &dec_reg, ExpectedTestResult::MD5Frames(vec![ | |
1007 | [0xb432376c, 0xf1dce57b, 0x8e79c7ee, 0xdd51850d], | |
1008 | [0x76eb9726, 0x7ca1aabd, 0xf3f0740c, 0xf804dd0e], | |
1009 | [0xc639b32c, 0x1f53f1f4, 0x50c34651, 0xc49cd2ac], | |
1010 | [0x55408f2a, 0x37b01de0, 0xcc6aeadd, 0x09768735], | |
1011 | [0xea219c51, 0xed72710c, 0x6c4b2bb0, 0xbfab0cb7], | |
1012 | [0xfbf56708, 0x7f6597c7, 0x08ce894d, 0x9c4c7f60], | |
1013 | [0x3dbf8b57, 0x9e1513ef, 0x209309a6, 0x56f0aca7], | |
1014 | [0xc5fb6cb7, 0x1b9b092f, 0xe11127be, 0xe4fe8f45], | |
1015 | [0x81a4a122, 0xb2b84bcf, 0xa478bd80, 0x12c78fb6], | |
1016 | [0xb5b43c22, 0xd9c457fa, 0xcc5390d8, 0x1201ef22], | |
1017 | [0x27a206e9, 0x88085556, 0x1114fb62, 0x77f1ebed]])); | |
750b299c | 1018 | } |
7e52da9e KS |
1019 | #[test] |
1020 | fn test_clv_ovl() { | |
1021 | let mut dmx_reg = RegisteredDemuxers::new(); | |
1022 | generic_register_all_demuxers(&mut dmx_reg); | |
1023 | let mut dec_reg = RegisteredDecoders::new(); | |
1024 | generic_register_all_decoders(&mut dec_reg); | |
886cde48 | 1025 | // sample: https://samples.mplayerhq.hu/V-codecs/UCOD/Nick%20Pope.avi |
7e52da9e KS |
1026 | test_decoding("avi", "clearvideo", "assets/Misc/Nick Pope.avi", Some(20), &dmx_reg, |
1027 | &dec_reg, ExpectedTestResult::MD5Frames(vec![ | |
1028 | [0xca265763, 0xd7d40e35, 0x1c27d4fb, 0xbb76b9c6], | |
1029 | [0x42b4728b, 0x8299e532, 0xd9307741, 0xa94003ea], | |
1030 | [0x065f605d, 0x0fcd6be9, 0x7acf00f5, 0xa153298a], | |
1031 | [0x2c1dea59, 0xfca62495, 0x36e87c82, 0xd9e151b5], | |
1032 | [0xa57764f6, 0x0ad30c15, 0x15e65687, 0x1e2b2359], | |
1033 | [0x3d0498ae, 0x3b8a7743, 0x04639817, 0xd7b14313], | |
1034 | [0xf41f3417, 0x8c542118, 0x4c762295, 0xfccc8a28], | |
1035 | [0xdac4a37f, 0x0b42a976, 0xd9b3dc8e, 0xff21062f], | |
1036 | [0x9078fac7, 0x69308953, 0x511942ff, 0x89139f72], | |
1037 | [0xd24c8e85, 0x6c7eda39, 0x07369927, 0x47dc3800], | |
1038 | [0xd5dd7838, 0x572d70d1, 0xae8a6631, 0xce7291b2], | |
1039 | [0x7ce11730, 0x344443c7, 0xa7502185, 0x8940f0c4], | |
1040 | [0x95f93bc1, 0x745b0e69, 0xd69c8208, 0x8bb5bf67], | |
1041 | [0x3b9cf626, 0x33206f48, 0x2314f65b, 0x7833981b], | |
1042 | [0x305578ee, 0x8824d091, 0x17c9510e, 0x2156ef06], | |
1043 | [0xc1efdeaa, 0x79bd6381, 0x5816a81a, 0x902a47d9], | |
1044 | [0xb7724ddb, 0x88dfe176, 0xf1eebfff, 0x16e500db], | |
1045 | [0x86c5972d, 0x9a437142, 0x87189dd7, 0xa92f6bb8], | |
1046 | [0xa60d9732, 0x3a570201, 0x499a5b4c, 0xf234426c], | |
1047 | [0x4f62d7ef, 0x33b3c1cc, 0x6e0fa443, 0x66abe9d0], | |
1048 | [0x7362b65a, 0xc064737b, 0x0e2d199d, 0xead4ca56]])); | |
1049 | } | |
750b299c KS |
1050 | } |
1051 | ||
1052 | const CLV_DC_CODES: &[u8] = &[ | |
1053 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, | |
1054 | 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, | |
1055 | 0x10, 0x11, 0x12, 0x13, 0x13, 0x14, 0x07, 0x0B, | |
1056 | 0x0C, 0x08, 0x08, 0x09, 0x04, 0x06, 0x07, 0x05, | |
1057 | 0x04, 0x05, 0x04, 0x06, 0x05, 0x06, 0x07, 0x05, | |
1058 | 0x06, 0x07, 0x06, 0x07, 0x08, 0x06, 0x07, 0x08, | |
1059 | 0x09, 0x0A, 0x0B, 0x07, 0x08, 0x09, 0x07, 0x08, | |
1060 | 0x06, 0x07, 0x08, 0x06, 0x04, 0x05, 0x02, 0x01, | |
1061 | 0x03, 0x06, 0x07, 0x07, 0x09, 0x0A, 0x0B, 0x09, | |
1062 | 0x0A, 0x0B, 0x0A, 0x0B, 0x0C, 0x0D, 0x0C, 0x09, | |
1063 | 0x0D, 0x0A, 0x0B, 0x08, 0x09, 0x0A, 0x0B, 0x07, | |
1064 | 0x08, 0x09, 0x0A, 0x0B, 0x06, 0x07, 0x06, 0x08, | |
1065 | 0x07, 0x09, 0x0A, 0x0B, 0x09, 0x0A, 0x0B, 0x0C, | |
1066 | 0x14, 0x0D, 0x0D, 0x0E, 0x0F, 0x15, 0x15, 0x16, | |
1067 | 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, | |
1068 | 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, | |
1069 | ]; | |
1070 | ||
1071 | const CLV_DC_BITS: &[u8] = &[ | |
1072 | 22, 22, 22, 22, 22, 22, 22, 22, | |
1073 | 22, 22, 22, 22, 22, 22, 22, 22, | |
1074 | 22, 22, 22, 21, 22, 22, 19, 20, | |
1075 | 20, 19, 18, 18, 15, 17, 17, 16, | |
1076 | 14, 15, 12, 13, 14, 14, 14, 12, | |
1077 | 12, 12, 11, 11, 11, 10, 10, 10, | |
1078 | 10, 10, 10, 9, 9, 9, 8, 8, | |
1079 | 7, 7, 7, 6, 5, 5, 3, 1, | |
1080 | 3, 5, 5, 6, 7, 7, 7, 8, | |
1081 | 8, 8, 9, 9, 9, 9, 10, 11, | |
1082 | 10, 11, 11, 12, 12, 12, 12, 13, | |
1083 | 14, 14, 14, 14, 15, 15, 16, 17, | |
1084 | 16, 17, 18, 18, 19, 19, 19, 19, | |
1085 | 21, 19, 20, 19, 19, 21, 22, 22, | |
1086 | 22, 22, 22, 22, 22, 22, 22, 22, | |
1087 | 22, 22, 22, 22, 22, 22, 22, | |
1088 | ]; | |
1089 | ||
1090 | const CLV_AC_SYMS: &[u16] = &[ | |
1091 | 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, | |
1092 | 0x0009, 0x000A, 0x000B, 0x000C, 0x0011, 0x0012, 0x0013, 0x0014, | |
1093 | 0x0015, 0x0016, 0x0021, 0x0022, 0x0023, 0x0024, 0x0031, 0x0032, | |
1094 | 0x0033, 0x0041, 0x0042, 0x0043, 0x0051, 0x0052, 0x0053, 0x0061, | |
1095 | 0x0062, 0x0063, 0x0071, 0x0072, 0x0081, 0x0082, 0x0091, 0x0092, | |
1096 | 0x00A1, 0x00A2, 0x00B1, 0x00C1, 0x00D1, 0x00E1, 0x00F1, 0x0101, | |
1097 | 0x0111, 0x0121, 0x0131, 0x0141, 0x0151, 0x0161, 0x0171, 0x0181, | |
1098 | 0x0191, 0x01A1, 0x1001, 0x1002, 0x1003, 0x1011, 0x1012, 0x1021, | |
1099 | 0x1031, 0x1041, 0x1051, 0x1061, 0x1071, 0x1081, 0x1091, 0x10A1, | |
1100 | 0x10B1, 0x10C1, 0x10D1, 0x10E1, 0x10F1, 0x1101, 0x1111, 0x1121, | |
1101 | 0x1131, 0x1141, 0x1151, 0x1161, 0x1171, 0x1181, 0x1191, 0x11A1, | |
1102 | 0x11B1, 0x11C1, 0x11D1, 0x11E1, 0x11F1, 0x1201, 0x1211, 0x1221, | |
1103 | 0x1231, 0x1241, 0x1251, 0x1261, 0x1271, 0x1281, 0x1BFF, | |
1104 | ]; | |
1105 | ||
1106 | const CLV_AC_CODES: &[u8] = &[ | |
1107 | 0x02, 0x0F, 0x15, 0x17, 0x1F, 0x25, 0x24, 0x21, | |
1108 | 0x20, 0x07, 0x06, 0x20, 0x06, 0x14, 0x1E, 0x0F, | |
1109 | 0x21, 0x50, 0x0E, 0x1D, 0x0E, 0x51, 0x0D, 0x23, | |
1110 | 0x0D, 0x0C, 0x22, 0x52, 0x0B, 0x0C, 0x53, 0x13, | |
1111 | 0x0B, 0x54, 0x12, 0x0A, 0x11, 0x09, 0x10, 0x08, | |
1112 | 0x16, 0x55, 0x15, 0x14, 0x1C, 0x1B, 0x21, 0x20, | |
1113 | 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x22, 0x23, | |
1114 | 0x56, 0x57, 0x07, 0x19, 0x05, 0x0F, 0x04, 0x0E, | |
1115 | 0x0D, 0x0C, 0x13, 0x12, 0x11, 0x10, 0x1A, 0x19, | |
1116 | 0x18, 0x17, 0x16, 0x15, 0x14, 0x13, 0x18, 0x17, | |
1117 | 0x16, 0x15, 0x14, 0x13, 0x12, 0x11, 0x07, 0x06, | |
1118 | 0x05, 0x04, 0x24, 0x25, 0x26, 0x27, 0x58, 0x59, | |
1119 | 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x03, | |
1120 | ]; | |
1121 | ||
1122 | const CLV_AC_BITS: &[u8] = &[ | |
1123 | 2, 4, 6, 7, 8, 9, 9, 10, | |
1124 | 10, 11, 11, 11, 3, 6, 8, 10, | |
1125 | 11, 12, 4, 8, 10, 12, 5, 9, | |
1126 | 10, 5, 9, 12, 5, 10, 12, 6, | |
1127 | 10, 12, 6, 10, 6, 10, 6, 10, | |
1128 | 7, 12, 7, 7, 8, 8, 9, 9, | |
1129 | 9, 9, 9, 9, 9, 9, 11, 11, | |
1130 | 12, 12, 4, 9, 11, 6, 11, 6, | |
1131 | 6, 6, 7, 7, 7, 7, 8, 8, | |
1132 | 8, 8, 8, 8, 8, 8, 9, 9, | |
1133 | 9, 9, 9, 9, 9, 9, 10, 10, | |
1134 | 10, 10, 11, 11, 11, 11, 12, 12, | |
1135 | 12, 12, 12, 12, 12, 12, 7, | |
1136 | ]; | |
1137 | ||
1138 | const CLV_AC_ESCAPE: u16 = 0x1BFF; | |
1139 | ||
750b299c KS |
1140 | const CLV_BIAS_ESCAPE: u16 = 0x100; |
1141 | ||
1142 | const CLV_MVY_0_BITS: &[u8] = &[ | |
1143 | 16, 14, 13, 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, 13, 13, 14, | |
1144 | 16, 15, 14, 14, 14, 13, 13, 12, 10, 7, 10, 12, 13, 13, 14, 14, | |
1145 | 14, 15, 15, 14, 14, 14, 13, 13, 11, 10, 7, 10, 11, 13, 13, 14, | |
1146 | 14, 14, 15, 15, 14, 14, 13, 13, 12, 11, 10, 7, 10, 11, 12, 13, | |
1147 | 13, 14, 14, 15, 16, 15, 14, 12, 12, 12, 11, 10, 6, 10, 11, 12, | |
1148 | 12, 12, 14, 15, 16, 15, 14, 13, 13, 12, 11, 10, 9, 6, 9, 10, | |
1149 | 11, 12, 13, 13, 14, 15, 14, 14, 13, 12, 12, 11, 10, 8, 6, 8, | |
1150 | 10, 11, 12, 12, 13, 14, 14, 14, 13, 13, 13, 11, 11, 9, 7, 4, | |
1151 | 7, 9, 11, 11, 12, 13, 13, 14, 11, 10, 10, 9, 9, 8, 7, 5, | |
1152 | 1, 5, 7, 8, 9, 9, 10, 10, 11, 14, 13, 13, 12, 11, 11, 9, | |
1153 | 7, 4, 7, 9, 11, 11, 13, 13, 13, 14, 14, 14, 13, 12, 12, 11, | |
1154 | 10, 8, 6, 8, 10, 11, 12, 12, 13, 14, 14, 15, 14, 13, 13, 12, | |
1155 | 11, 10, 9, 7, 9, 10, 11, 12, 13, 13, 14, 15, 16, 15, 14, 12, | |
1156 | 12, 12, 11, 10, 6, 10, 11, 12, 12, 12, 14, 15, 16, 15, 14, 14, | |
1157 | 13, 13, 12, 11, 10, 7, 10, 11, 12, 13, 13, 14, 14, 15, 15, 14, | |
1158 | 14, 14, 13, 13, 11, 10, 7, 10, 11, 13, 13, 14, 14, 14, 15, 15, | |
1159 | 14, 14, 14, 13, 13, 12, 10, 7, 10, 12, 13, 13, 14, 14, 14, 15, | |
1160 | 16, 14, 13, 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, 13, 13, 14, | |
1161 | 16, 6, | |
1162 | ]; | |
1163 | const CLV_MVY_0_CODES: &[u16] = &[ | |
1164 | 0xFFFD, 0x3FE5, 0x1FD8, 0x1FC4, 0x1FBC, 0x0FCB, 0x07CF, 0x07C4, | |
1165 | 0x01D7, 0x07C6, 0x07CE, 0x0FCA, 0x1FBD, 0x1FC2, 0x1FD9, 0x3FE4, | |
1166 | 0xFFFE, 0x7FF0, 0x3FEF, 0x3FD2, 0x3FC9, 0x1FCC, 0x1FC0, 0x0FB6, | |
1167 | 0x03D6, 0x0070, 0x03D7, 0x0FB7, 0x1FC1, 0x1FCD, 0x3FCB, 0x3FD0, | |
1168 | 0x3FED, 0x7FF2, 0x7FFB, 0x3FDC, 0x3FD9, 0x3FD4, 0x1FB6, 0x1FAE, | |
1169 | 0x07C0, 0x03BC, 0x006D, 0x03BD, 0x07C1, 0x1FAF, 0x1FB7, 0x3FD1, | |
1170 | 0x3FDB, 0x3FDF, 0x7FF9, 0x7FEE, 0x3FF0, 0x3FC7, 0x1FC9, 0x1FA7, | |
1171 | 0x0FAD, 0x07D2, 0x03CE, 0x006C, 0x03CF, 0x07D0, 0x0FAF, 0x1FA6, | |
1172 | 0x1FC6, 0x3FC4, 0x3FF1, 0x7FED, 0xFFFB, 0x7FF6, 0x3FE6, 0x0FCC, | |
1173 | 0x0FC4, 0x0FB0, 0x07B0, 0x03C6, 0x0031, 0x03C7, 0x07B1, 0x0FB1, | |
1174 | 0x0FC5, 0x0FCD, 0x3FEA, 0x7FF7, 0xFFF9, 0x7FE9, 0x3FCE, 0x1FCF, | |
1175 | 0x1FB2, 0x0FB8, 0x07BC, 0x03D0, 0x01DA, 0x002F, 0x01DB, 0x03D1, | |
1176 | 0x07BE, 0x0FBA, 0x1FB4, 0x1FD0, 0x3FCD, 0x7FEB, 0x3FE1, 0x3FC1, | |
1177 | 0x1FD3, 0x0FC3, 0x0FBE, 0x07B6, 0x03C4, 0x00E4, 0x002D, 0x00E5, | |
1178 | 0x03C5, 0x07B7, 0x0FBF, 0x0FC1, 0x1FD2, 0x3FC3, 0x3FE2, 0x3FBF, | |
1179 | 0x1FDB, 0x1FAD, 0x1FA5, 0x07CB, 0x07BB, 0x01D5, 0x0068, 0x0008, | |
1180 | 0x0065, 0x01D2, 0x07B8, 0x07C8, 0x0FD0, 0x1FAA, 0x1FDA, 0x3FBC, | |
1181 | 0x07D4, 0x03CA, 0x03C0, 0x01D8, 0x01D0, 0x00E6, 0x0069, 0x0014, | |
1182 | 0x0000, 0x0015, 0x006A, 0x00E7, 0x01D1, 0x01D9, 0x03C1, 0x03CB, | |
1183 | 0x07D5, 0x3FBE, 0x1FDC, 0x1FAB, 0x0FD1, 0x07C9, 0x07B9, 0x01D3, | |
1184 | 0x0066, 0x0009, 0x0067, 0x01D4, 0x07BA, 0x07CA, 0x1FA4, 0x1FAC, | |
1185 | 0x1FDD, 0x3FBD, 0x3FE0, 0x3FC0, 0x1FD5, 0x0FC0, 0x0FBC, 0x07B4, | |
1186 | 0x03C2, 0x00E2, 0x002C, 0x00E3, 0x03C3, 0x07B5, 0x0FBD, 0x0FC2, | |
1187 | 0x1FD7, 0x3FC2, 0x3FE3, 0x7FEA, 0x3FCC, 0x1FCE, 0x1FB3, 0x0FB9, | |
1188 | 0x07BD, 0x03D2, 0x01DC, 0x0064, 0x01DD, 0x03D3, 0x07BF, 0x0FBB, | |
1189 | 0x1FB5, 0x1FD1, 0x3FCF, 0x7FE8, 0xFFFA, 0x7FF4, 0x3FEB, 0x0FCE, | |
1190 | 0x0FC6, 0x0FB2, 0x07B2, 0x03C8, 0x0030, 0x03C9, 0x07B3, 0x0FB3, | |
1191 | 0x0FC7, 0x0FCF, 0x3FE9, 0x7FF5, 0xFFF8, 0x7FF3, 0x3FF3, 0x3FC6, | |
1192 | 0x1FC8, 0x1FA8, 0x0FAC, 0x07D1, 0x03CC, 0x006B, 0x03CD, 0x07D3, | |
1193 | 0x0FAE, 0x1FA9, 0x1FC7, 0x3FC5, 0x3FF2, 0x7FEC, 0x7FFA, 0x3FDE, | |
1194 | 0x3FDA, 0x3FD7, 0x1FB9, 0x1FB0, 0x07C2, 0x03BE, 0x006E, 0x03BF, | |
1195 | 0x07C3, 0x1FB1, 0x1FB8, 0x3FD3, 0x3FD8, 0x3FDD, 0x7FF8, 0x7FEF, | |
1196 | 0x3FEE, 0x3FD6, 0x3FC8, 0x1FCB, 0x1FBE, 0x0FB5, 0x03D4, 0x006F, | |
1197 | 0x03D5, 0x0FB4, 0x1FBF, 0x1FCA, 0x3FCA, 0x3FD5, 0x3FEC, 0x7FF1, | |
1198 | 0xFFFF, 0x3FE8, 0x1FD4, 0x1FC5, 0x1FBA, 0x0FC9, 0x07CD, 0x07C7, | |
1199 | 0x01D6, 0x07C5, 0x07CC, 0x0FC8, 0x1FBB, 0x1FC3, 0x1FD6, 0x3FE7, | |
1200 | 0xFFFC, 0x002E, | |
1201 | ]; | |
1202 | const CLV_MVY_0_SYMS: &[u16] = &[ | |
1203 | 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, | |
1204 | 0x00F8, 0x01F8, 0x02F8, 0x03F8, 0x04F8, 0x05F8, 0x06F8, 0x07F8, | |
1205 | 0x08F8, 0xF8F9, 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, | |
1206 | 0xFFF9, 0x00F9, 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, | |
1207 | 0x07F9, 0x08F9, 0xF8FA, 0xF9FA, 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, | |
1208 | 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, 0x02FA, 0x03FA, 0x04FA, 0x05FA, | |
1209 | 0x06FA, 0x07FA, 0x08FA, 0xF8FB, 0xF9FB, 0xFAFB, 0xFBFB, 0xFCFB, | |
1210 | 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, 0x03FB, 0x04FB, | |
1211 | 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, | |
1212 | 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, 0x00FC, 0x01FC, 0x02FC, 0x03FC, | |
1213 | 0x04FC, 0x05FC, 0x06FC, 0x07FC, 0x08FC, 0xF8FD, 0xF9FD, 0xFAFD, | |
1214 | 0xFBFD, 0xFCFD, 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, | |
1215 | 0x03FD, 0x04FD, 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0xF8FE, 0xF9FE, | |
1216 | 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, | |
1217 | 0x02FE, 0x03FE, 0x04FE, 0x05FE, 0x06FE, 0x07FE, 0x08FE, 0xF8FF, | |
1218 | 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, 0xFFFF, 0x00FF, | |
1219 | 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, 0x07FF, 0x08FF, | |
1220 | 0xF800, 0xF900, 0xFA00, 0xFB00, 0xFC00, 0xFD00, 0xFE00, 0xFF00, | |
1221 | 0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700, | |
1222 | 0x0800, 0xF801, 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, | |
1223 | 0xFF01, 0x0001, 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, | |
1224 | 0x0701, 0x0801, 0xF802, 0xF902, 0xFA02, 0xFB02, 0xFC02, 0xFD02, | |
1225 | 0xFE02, 0xFF02, 0x0002, 0x0102, 0x0202, 0x0302, 0x0402, 0x0502, | |
1226 | 0x0602, 0x0702, 0x0802, 0xF803, 0xF903, 0xFA03, 0xFB03, 0xFC03, | |
1227 | 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, 0x0303, 0x0403, | |
1228 | 0x0503, 0x0603, 0x0703, 0x0803, 0xF804, 0xF904, 0xFA04, 0xFB04, | |
1229 | 0xFC04, 0xFD04, 0xFE04, 0xFF04, 0x0004, 0x0104, 0x0204, 0x0304, | |
1230 | 0x0404, 0x0504, 0x0604, 0x0704, 0x0804, 0xF805, 0xF905, 0xFA05, | |
1231 | 0xFB05, 0xFC05, 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, | |
1232 | 0x0305, 0x0405, 0x0505, 0x0605, 0x0705, 0x0805, 0xF806, 0xF906, | |
1233 | 0xFA06, 0xFB06, 0xFC06, 0xFD06, 0xFE06, 0xFF06, 0x0006, 0x0106, | |
1234 | 0x0206, 0x0306, 0x0406, 0x0506, 0x0606, 0x0706, 0x0806, 0xF807, | |
1235 | 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, 0xFF07, 0x0007, | |
1236 | 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, 0x0707, 0x0807, | |
1237 | 0xF808, 0xF908, 0xFA08, 0xFB08, 0xFC08, 0xFD08, 0xFE08, 0xFF08, | |
1238 | 0x0008, 0x0108, 0x0208, 0x0308, 0x0408, 0x0508, 0x0608, 0x0708, | |
1239 | 0x0808, 0x0909, | |
1240 | ]; | |
1241 | const CLV_MVY_0_ESCAPE: u16 = 0x0909; | |
1242 | ||
1243 | const CLV_FLAGSY_0_BITS: &[u8] = &[ | |
1244 | 3, 4, 4, 4, 4, 4, 6, 5, 4, 7, 4, 5, 4, 7, 5, 2, | |
1245 | ]; | |
1246 | const CLV_FLAGSY_0_CODES: &[u16] = &[ | |
1247 | 0x0002, 0x0009, 0x000B, 0x0006, 0x000C, 0x0007, 0x003E, 0x001C, | |
1248 | 0x000D, 0x007E, 0x000A, 0x001D, 0x0008, 0x007F, 0x001E, 0x0000, | |
1249 | ]; | |
1250 | ||
1251 | const CLV_MVY_1_BITS: &[u8] = &[ | |
1252 | 15, 15, 15, 15, 14, 14, 13, 13, 11, 9, 11, 13, 13, 14, 14, 15, | |
1253 | 15, 15, 15, 15, 14, 14, 13, 13, 12, 12, 12, 10, 9, 10, 12, 12, | |
1254 | 12, 13, 13, 14, 14, 15, 15, 15, 14, 14, 13, 13, 13, 12, 11, 8, | |
1255 | 11, 12, 13, 13, 13, 14, 14, 15, 15, 14, 14, 14, 14, 13, 12, 12, | |
1256 | 12, 10, 8, 10, 12, 12, 12, 13, 14, 14, 14, 14, 15, 14, 14, 13, | |
1257 | 13, 12, 12, 11, 10, 8, 10, 11, 12, 12, 13, 13, 14, 14, 15, 14, | |
1258 | 14, 13, 13, 13, 12, 12, 11, 9, 7, 9, 11, 12, 12, 13, 13, 13, | |
1259 | 14, 14, 14, 14, 13, 13, 13, 12, 11, 10, 9, 7, 9, 10, 11, 12, | |
1260 | 13, 13, 13, 14, 14, 14, 13, 13, 12, 12, 11, 11, 10, 8, 7, 8, | |
1261 | 10, 11, 11, 12, 12, 13, 13, 14, 13, 13, 13, 12, 11, 11, 10, 9, | |
1262 | 6, 4, 6, 9, 10, 11, 12, 12, 13, 13, 13, 12, 11, 10, 10, 10, | |
1263 | 9, 9, 7, 5, 1, 5, 7, 9, 9, 10, 10, 10, 11, 12, 13, 13, | |
1264 | 13, 12, 11, 11, 10, 9, 6, 4, 6, 9, 10, 11, 11, 12, 13, 13, | |
1265 | 13, 14, 13, 13, 12, 12, 11, 11, 10, 8, 7, 8, 10, 11, 11, 12, | |
1266 | 12, 13, 13, 14, 14, 14, 13, 13, 13, 12, 11, 10, 9, 7, 9, 10, | |
1267 | 11, 12, 13, 13, 13, 14, 14, 14, 14, 13, 13, 13, 12, 12, 11, 9, | |
1268 | 7, 9, 11, 12, 12, 13, 13, 13, 14, 14, 15, 14, 14, 13, 13, 12, | |
1269 | 12, 11, 10, 8, 10, 11, 12, 12, 13, 13, 14, 14, 15, 14, 14, 14, | |
1270 | 14, 13, 12, 12, 12, 10, 8, 10, 12, 12, 12, 13, 14, 14, 14, 14, | |
1271 | 15, 15, 14, 14, 13, 13, 13, 12, 11, 8, 11, 12, 13, 13, 13, 14, | |
1272 | 14, 15, 15, 15, 14, 14, 13, 13, 12, 12, 12, 10, 9, 10, 12, 12, | |
1273 | 12, 13, 13, 14, 14, 15, 15, 15, 15, 15, 14, 14, 13, 13, 11, 9, | |
1274 | 11, 13, 13, 14, 14, 15, 15, 15, 15, 5, | |
1275 | ]; | |
1276 | const CLV_MVY_1_CODES: &[u16] = &[ | |
1277 | 0x7FF9, 0x7FF6, 0x7FEB, 0x7FE3, 0x3FCF, 0x3FB3, 0x1FBD, 0x1FA1, | |
1278 | 0x07AD, 0x01CE, 0x07AF, 0x1FA0, 0x1FBB, 0x3FB0, 0x3FCC, 0x7FE2, | |
1279 | 0x7FE9, 0x7FF4, 0x7FFB, 0x7FF1, 0x3FE7, 0x3FBD, 0x1FA5, 0x1F9B, | |
1280 | 0x0FB4, 0x0FAF, 0x0FAA, 0x03CC, 0x01CD, 0x03CD, 0x0FAB, 0x0FAD, | |
1281 | 0x0FB1, 0x1F9C, 0x1FA3, 0x3FBE, 0x3FE6, 0x7FF0, 0x7FFC, 0x7FE5, | |
1282 | 0x3FB5, 0x3FAE, 0x1FB4, 0x1FAA, 0x1F97, 0x0F85, 0x07A2, 0x00DD, | |
1283 | 0x07A3, 0x0F86, 0x1F99, 0x1FAD, 0x1FB2, 0x3FAC, 0x3FB7, 0x7FE4, | |
1284 | 0x7FFD, 0x3FEA, 0x3FD8, 0x3FC3, 0x3FBB, 0x1FC9, 0x0FBC, 0x0F97, | |
1285 | 0x0F8F, 0x03B8, 0x00DA, 0x03B9, 0x0F90, 0x0F98, 0x0FB9, 0x1FC6, | |
1286 | 0x3FBA, 0x3FC0, 0x3FD9, 0x3FEB, 0x7FEF, 0x3FEE, 0x3FD7, 0x1FC3, | |
1287 | 0x1F96, 0x0FC0, 0x0FA8, 0x07AA, 0x03BE, 0x00D9, 0x03BF, 0x07AB, | |
1288 | 0x0FA7, 0x0FBF, 0x1F98, 0x1FC5, 0x3FD6, 0x3FEF, 0x7FEE, 0x3FDC, | |
1289 | 0x3FCA, 0x1FBF, 0x1F8B, 0x1F87, 0x0FA2, 0x0F94, 0x07A5, 0x01D4, | |
1290 | 0x0069, 0x01D5, 0x07A6, 0x0F95, 0x0FA3, 0x1F89, 0x1F8D, 0x1FC0, | |
1291 | 0x3FC6, 0x3FDE, 0x3FE0, 0x3FD3, 0x1FB8, 0x1F8F, 0x1F84, 0x0F89, | |
1292 | 0x07BC, 0x03C6, 0x01C6, 0x0067, 0x01C7, 0x03C7, 0x07BD, 0x0F87, | |
1293 | 0x1F82, 0x1F8A, 0x1FB6, 0x3FD1, 0x3FE2, 0x3FC5, 0x1FCE, 0x1FAE, | |
1294 | 0x0FB5, 0x0F8B, 0x07B4, 0x07B0, 0x03B4, 0x00DE, 0x0064, 0x00DF, | |
1295 | 0x03B5, 0x07B1, 0x07B5, 0x0F8C, 0x0FB6, 0x1FAF, 0x1FD1, 0x3FCB, | |
1296 | 0x1FD3, 0x1FCC, 0x1FA7, 0x0F9B, 0x07BE, 0x079C, 0x03C0, 0x01C8, | |
1297 | 0x002E, 0x0008, 0x002F, 0x01C9, 0x03C1, 0x079D, 0x0F82, 0x0F9A, | |
1298 | 0x1FA9, 0x1FCA, 0x1FD4, 0x0F9F, 0x07B6, 0x03C8, 0x03B2, 0x03B0, | |
1299 | 0x01D6, 0x01D0, 0x006A, 0x0014, 0x0000, 0x0015, 0x006B, 0x01D1, | |
1300 | 0x01D7, 0x03B1, 0x03B3, 0x03C9, 0x07B7, 0x0FA0, 0x1FD5, 0x1FCB, | |
1301 | 0x1FAB, 0x0F9C, 0x07BF, 0x079E, 0x03C2, 0x01CA, 0x0030, 0x0009, | |
1302 | 0x0031, 0x01CB, 0x03C3, 0x079F, 0x07C0, 0x0F9D, 0x1FAC, 0x1FCD, | |
1303 | 0x1FD2, 0x3FC8, 0x1FD0, 0x1FB0, 0x0FB7, 0x0F8D, 0x07B8, 0x07B2, | |
1304 | 0x03B6, 0x00E0, 0x0065, 0x00E1, 0x03B7, 0x07B3, 0x07B9, 0x0F8E, | |
1305 | 0x0FB8, 0x1FB1, 0x1FCF, 0x3FC9, 0x3FE1, 0x3FD2, 0x1FB7, 0x1F8E, | |
1306 | 0x1F83, 0x0F88, 0x07BA, 0x03C4, 0x01C4, 0x0066, 0x01C5, 0x03C5, | |
1307 | 0x07BB, 0x0F8A, 0x1F85, 0x1F90, 0x1FB9, 0x3FD0, 0x3FE3, 0x3FDD, | |
1308 | 0x3FC7, 0x1FC1, 0x1F91, 0x1F88, 0x0FA4, 0x0F96, 0x07A7, 0x01D2, | |
1309 | 0x0068, 0x01D3, 0x07A4, 0x0F93, 0x0FA1, 0x1F86, 0x1F8C, 0x1FBE, | |
1310 | 0x3FC4, 0x3FDF, 0x7FED, 0x3FEC, 0x3FD4, 0x1FC4, 0x1F92, 0x0FBD, | |
1311 | 0x0FA5, 0x07A8, 0x03BC, 0x00D8, 0x03BD, 0x07A9, 0x0FA6, 0x0FBE, | |
1312 | 0x1F93, 0x1FC2, 0x3FD5, 0x3FED, 0x7FEC, 0x3FE8, 0x3FDB, 0x3FC1, | |
1313 | 0x3FB9, 0x1FC7, 0x0FBA, 0x0F9E, 0x0F91, 0x03BA, 0x00DB, 0x03BB, | |
1314 | 0x0F92, 0x0F99, 0x0FBB, 0x1FC8, 0x3FB8, 0x3FC2, 0x3FDA, 0x3FE9, | |
1315 | 0x7FFF, 0x7FE7, 0x3FB6, 0x3FAF, 0x1FB3, 0x1FA6, 0x1F94, 0x0F83, | |
1316 | 0x07A0, 0x00DC, 0x07A1, 0x0F84, 0x1F95, 0x1FA8, 0x1FB5, 0x3FAD, | |
1317 | 0x3FB4, 0x7FE6, 0x7FFE, 0x7FF3, 0x3FE5, 0x3FBC, 0x1FA4, 0x1F9D, | |
1318 | 0x0FB2, 0x0FAE, 0x0FA9, 0x03CA, 0x01CC, 0x03CB, 0x0FAC, 0x0FB0, | |
1319 | 0x0FB3, 0x1F9A, 0x1FA2, 0x3FBF, 0x3FE4, 0x7FF2, 0x7FF8, 0x7FF5, | |
1320 | 0x7FEA, 0x7FE0, 0x3FCD, 0x3FB1, 0x1FBA, 0x1F9F, 0x07AE, 0x01CF, | |
1321 | 0x07AC, 0x1F9E, 0x1FBC, 0x3FB2, 0x3FCE, 0x7FE1, 0x7FE8, 0x7FF7, | |
1322 | 0x7FFA, 0x0016, | |
1323 | ]; | |
1324 | const CLV_MVY_1_SYMS: &[u16] = &[ | |
1325 | 0xF7F7, 0xF8F7, 0xF9F7, 0xFAF7, 0xFBF7, 0xFCF7, 0xFDF7, 0xFEF7, | |
1326 | 0xFFF7, 0x00F7, 0x01F7, 0x02F7, 0x03F7, 0x04F7, 0x05F7, 0x06F7, | |
1327 | 0x07F7, 0x08F7, 0x09F7, 0xF7F8, 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, | |
1328 | 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, 0x00F8, 0x01F8, 0x02F8, 0x03F8, | |
1329 | 0x04F8, 0x05F8, 0x06F8, 0x07F8, 0x08F8, 0x09F8, 0xF7F9, 0xF8F9, | |
1330 | 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, 0xFFF9, 0x00F9, | |
1331 | 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, 0x07F9, 0x08F9, | |
1332 | 0x09F9, 0xF7FA, 0xF8FA, 0xF9FA, 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, | |
1333 | 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, 0x02FA, 0x03FA, 0x04FA, 0x05FA, | |
1334 | 0x06FA, 0x07FA, 0x08FA, 0x09FA, 0xF7FB, 0xF8FB, 0xF9FB, 0xFAFB, | |
1335 | 0xFBFB, 0xFCFB, 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, | |
1336 | 0x03FB, 0x04FB, 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0x09FB, 0xF7FC, | |
1337 | 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, | |
1338 | 0x00FC, 0x01FC, 0x02FC, 0x03FC, 0x04FC, 0x05FC, 0x06FC, 0x07FC, | |
1339 | 0x08FC, 0x09FC, 0xF7FD, 0xF8FD, 0xF9FD, 0xFAFD, 0xFBFD, 0xFCFD, | |
1340 | 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, 0x03FD, 0x04FD, | |
1341 | 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0x09FD, 0xF7FE, 0xF8FE, 0xF9FE, | |
1342 | 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, | |
1343 | 0x02FE, 0x03FE, 0x04FE, 0x05FE, 0x06FE, 0x07FE, 0x08FE, 0x09FE, | |
1344 | 0xF7FF, 0xF8FF, 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, | |
1345 | 0xFFFF, 0x00FF, 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, | |
1346 | 0x07FF, 0x08FF, 0x09FF, 0xF700, 0xF800, 0xF900, 0xFA00, 0xFB00, | |
1347 | 0xFC00, 0xFD00, 0xFE00, 0xFF00, 0x0000, 0x0100, 0x0200, 0x0300, | |
1348 | 0x0400, 0x0500, 0x0600, 0x0700, 0x0800, 0x0900, 0xF701, 0xF801, | |
1349 | 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, 0xFF01, 0x0001, | |
1350 | 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, 0x0701, 0x0801, | |
1351 | 0x0901, 0xF702, 0xF802, 0xF902, 0xFA02, 0xFB02, 0xFC02, 0xFD02, | |
1352 | 0xFE02, 0xFF02, 0x0002, 0x0102, 0x0202, 0x0302, 0x0402, 0x0502, | |
1353 | 0x0602, 0x0702, 0x0802, 0x0902, 0xF703, 0xF803, 0xF903, 0xFA03, | |
1354 | 0xFB03, 0xFC03, 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, | |
1355 | 0x0303, 0x0403, 0x0503, 0x0603, 0x0703, 0x0803, 0x0903, 0xF704, | |
1356 | 0xF804, 0xF904, 0xFA04, 0xFB04, 0xFC04, 0xFD04, 0xFE04, 0xFF04, | |
1357 | 0x0004, 0x0104, 0x0204, 0x0304, 0x0404, 0x0504, 0x0604, 0x0704, | |
1358 | 0x0804, 0x0904, 0xF705, 0xF805, 0xF905, 0xFA05, 0xFB05, 0xFC05, | |
1359 | 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, 0x0305, 0x0405, | |
1360 | 0x0505, 0x0605, 0x0705, 0x0805, 0x0905, 0xF706, 0xF806, 0xF906, | |
1361 | 0xFA06, 0xFB06, 0xFC06, 0xFD06, 0xFE06, 0xFF06, 0x0006, 0x0106, | |
1362 | 0x0206, 0x0306, 0x0406, 0x0506, 0x0606, 0x0706, 0x0806, 0x0906, | |
1363 | 0xF707, 0xF807, 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, | |
1364 | 0xFF07, 0x0007, 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, | |
1365 | 0x0707, 0x0807, 0x0907, 0xF708, 0xF808, 0xF908, 0xFA08, 0xFB08, | |
1366 | 0xFC08, 0xFD08, 0xFE08, 0xFF08, 0x0008, 0x0108, 0x0208, 0x0308, | |
1367 | 0x0408, 0x0508, 0x0608, 0x0708, 0x0808, 0x0908, 0xF709, 0xF809, | |
1368 | 0xF909, 0xFA09, 0xFB09, 0xFC09, 0xFD09, 0xFE09, 0xFF09, 0x0009, | |
1369 | 0x0109, 0x0209, 0x0309, 0x0409, 0x0509, 0x0609, 0x0709, 0x0809, | |
1370 | 0x0909, 0x0A0A, | |
1371 | ]; | |
1372 | const CLV_MVY_1_ESCAPE: u16 = 0x0A0A; | |
1373 | ||
1374 | const CLV_BIASY_1_BITS: &[u8] = &[ | |
1375 | 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, 13, | |
1376 | 13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 10, 10, 10, 9, | |
1377 | 8, 8, 7, 7, 5, 2, 1, 3, 5, 7, 7, 8, 9, 9, 10, 10, | |
1378 | 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, | |
1379 | 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 12, | |
1380 | ]; | |
1381 | const CLV_BIASY_1_CODES: &[u16] = &[ | |
1382 | 0xFFFE, 0x7FFE, 0x7FFC, 0x7FFA, 0x7FF6, 0x7FF7, 0x7FF3, 0x7FF2, | |
1383 | 0x7FEF, 0x7FEE, 0x3FF5, 0x3FF3, 0x3FF1, 0x1FF7, 0x1FF5, 0x1FF2, | |
1384 | 0x1FF0, 0x1FEE, 0x1FEC, 0x1FEA, 0x1FE8, 0x0FF2, 0x0FF0, 0x0FEE, | |
1385 | 0x0FEB, 0x07F4, 0x07F3, 0x07F1, 0x03F7, 0x03F5, 0x03F3, 0x01F7, | |
1386 | 0x00FA, 0x00F8, 0x007A, 0x0078, 0x001C, 0x0002, 0x0000, 0x0006, | |
1387 | 0x001D, 0x0079, 0x007B, 0x00F9, 0x01F6, 0x01F8, 0x03F2, 0x03F4, | |
1388 | 0x03F6, 0x07F0, 0x07F2, 0x0FEA, 0x0FEC, 0x0FEF, 0x0FF1, 0x0FF3, | |
1389 | 0x1FE9, 0x1FEB, 0x1FED, 0x1FEF, 0x1FF1, 0x1FF3, 0x1FF4, 0x1FF6, | |
1390 | 0x3FF0, 0x3FF2, 0x3FF4, 0x3FF6, 0x7FF0, 0x7FF1, 0x7FF4, 0x7FF8, | |
1391 | 0x7FF5, 0x7FF9, 0x7FFB, 0x7FFD, 0xFFFF, 0x0FED, | |
1392 | ]; | |
1393 | const CLV_BIASY_1_SYMS: &[u16] = &[ | |
1394 | 0xFF68, 0xFF6C, 0xFF70, 0xFF74, 0xFF78, 0xFF7C, 0xFF80, 0xFF84, | |
1395 | 0xFF88, 0xFF8C, 0xFF90, 0xFF94, 0xFF98, 0xFF9C, 0xFFA0, 0xFFA4, | |
1396 | 0xFFA8, 0xFFAC, 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, | |
1397 | 0xFFC8, 0xFFCC, 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, | |
1398 | 0xFFE8, 0xFFEC, 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, 0x0000, 0x0004, | |
1399 | 0x0008, 0x000C, 0x0010, 0x0014, 0x0018, 0x001C, 0x0020, 0x0024, | |
1400 | 0x0028, 0x002C, 0x0030, 0x0034, 0x0038, 0x003C, 0x0040, 0x0044, | |
1401 | 0x0048, 0x004C, 0x0050, 0x0054, 0x0058, 0x005C, 0x0060, 0x0064, | |
1402 | 0x0068, 0x006C, 0x0070, 0x0074, 0x0078, 0x007C, 0x0080, 0x0084, | |
1403 | 0x0088, 0x008C, 0x0090, 0x0094, 0x0098, 0x0100, | |
1404 | ]; | |
1405 | ||
1406 | const CLV_FLAGSY_1_BITS: &[u8] = &[ | |
1407 | 2, 4, 4, 3, 4, 4, 7, 6, 4, 6, 4, 6, 4, 8, 8, 3, | |
1408 | ]; | |
1409 | const CLV_FLAGSY_1_CODES: &[u16] = &[ | |
1410 | 0x0000, 0x000A, 0x000C, 0x0003, 0x000B, 0x0009, 0x007E, 0x003D, | |
1411 | 0x000D, 0x003E, 0x000E, 0x003C, 0x0008, 0x00FE, 0x00FF, 0x0002, | |
1412 | ]; | |
1413 | ||
1414 | const CLV_MVY_2_BITS: &[u8] = &[ | |
1415 | 16, 16, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, 12, 11, | |
1416 | 12, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, | |
1417 | 15, 15, 15, 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 11, 10, 11, | |
1418 | 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 15, | |
1419 | 15, 15, 15, 14, 14, 14, 14, 14, 14, 13, 13, 13, 11, 10, 11, 13, | |
1420 | 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 15, 15, | |
1421 | 15, 14, 14, 14, 14, 14, 14, 13, 13, 13, 12, 11, 9, 11, 12, 13, | |
1422 | 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 16, 16, 15, 15, 14, | |
1423 | 14, 13, 13, 13, 13, 13, 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, | |
1424 | 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 16, 16, 15, 15, 15, 14, | |
1425 | 13, 13, 13, 13, 13, 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, 13, | |
1426 | 13, 13, 13, 13, 13, 14, 15, 15, 15, 16, 16, 15, 15, 15, 15, 14, | |
1427 | 14, 13, 13, 13, 12, 12, 12, 11, 11, 9, 11, 11, 12, 12, 12, 13, | |
1428 | 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 15, 15, 14, 14, 14, 13, | |
1429 | 13, 13, 12, 12, 12, 12, 11, 10, 8, 10, 11, 12, 12, 12, 12, 13, | |
1430 | 13, 13, 14, 14, 14, 15, 15, 16, 16, 15, 14, 14, 14, 13, 13, 13, | |
1431 | 13, 12, 12, 12, 11, 11, 10, 8, 10, 11, 11, 12, 12, 12, 13, 13, | |
1432 | 13, 13, 14, 14, 14, 15, 16, 15, 15, 14, 14, 13, 13, 13, 13, 13, | |
1433 | 12, 12, 12, 11, 10, 9, 8, 9, 10, 11, 12, 12, 12, 13, 13, 13, | |
1434 | 13, 13, 14, 14, 15, 15, 15, 15, 14, 14, 13, 13, 13, 13, 13, 12, | |
1435 | 12, 11, 11, 10, 10, 7, 10, 10, 11, 11, 12, 12, 13, 13, 13, 13, | |
1436 | 13, 14, 14, 15, 15, 14, 14, 14, 14, 13, 13, 12, 12, 12, 12, 12, | |
1437 | 11, 11, 10, 9, 7, 9, 10, 11, 11, 12, 12, 12, 12, 12, 13, 13, | |
1438 | 14, 14, 14, 14, 15, 13, 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, | |
1439 | 11, 10, 8, 7, 8, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, | |
1440 | 13, 13, 15, 14, 14, 14, 13, 13, 12, 12, 12, 11, 11, 11, 10, 10, | |
1441 | 9, 8, 6, 8, 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 14, | |
1442 | 14, 14, 16, 13, 13, 13, 12, 12, 12, 11, 11, 11, 10, 9, 9, 8, | |
1443 | 6, 4, 6, 8, 9, 9, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, | |
1444 | 16, 12, 12, 12, 12, 11, 11, 10, 10, 9, 9, 8, 8, 8, 7, 4, | |
1445 | 2, 4, 7, 8, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, | |
1446 | 16, 13, 13, 13, 12, 12, 12, 11, 11, 11, 10, 9, 9, 8, 6, 4, | |
1447 | 6, 8, 9, 9, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 16, 14, | |
1448 | 14, 14, 13, 13, 12, 12, 12, 11, 11, 11, 10, 10, 9, 8, 6, 8, | |
1449 | 9, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 14, 14, 14, 15, 13, | |
1450 | 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, 11, 10, 8, 7, 8, 10, | |
1451 | 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 13, 15, 14, 14, 14, | |
1452 | 14, 13, 13, 12, 12, 12, 12, 12, 11, 11, 10, 9, 7, 9, 10, 11, | |
1453 | 11, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 15, 15, 14, 14, | |
1454 | 13, 13, 13, 13, 13, 12, 12, 11, 11, 10, 10, 7, 10, 10, 11, 11, | |
1455 | 12, 12, 13, 13, 13, 13, 13, 14, 14, 15, 15, 15, 15, 14, 14, 13, | |
1456 | 13, 13, 13, 13, 12, 12, 12, 11, 10, 9, 8, 9, 10, 11, 12, 12, | |
1457 | 12, 13, 13, 13, 13, 13, 14, 14, 15, 15, 16, 15, 14, 14, 14, 13, | |
1458 | 13, 13, 13, 12, 12, 12, 11, 11, 10, 8, 10, 11, 11, 12, 12, 12, | |
1459 | 13, 13, 13, 13, 14, 14, 14, 15, 16, 16, 15, 15, 14, 14, 14, 13, | |
1460 | 13, 13, 12, 12, 12, 12, 11, 10, 8, 10, 11, 12, 12, 12, 12, 13, | |
1461 | 13, 13, 14, 14, 14, 15, 15, 16, 16, 15, 15, 15, 15, 14, 14, 13, | |
1462 | 13, 13, 12, 12, 12, 11, 11, 9, 11, 11, 12, 12, 12, 13, 13, 13, | |
1463 | 14, 14, 15, 15, 15, 15, 16, 16, 15, 15, 15, 14, 13, 13, 13, 13, | |
1464 | 13, 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, 13, 13, 13, 13, 13, | |
1465 | 13, 14, 15, 15, 15, 16, 16, 15, 15, 14, 14, 13, 13, 13, 13, 13, | |
1466 | 13, 13, 12, 11, 11, 9, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, | |
1467 | 14, 14, 14, 15, 16, 16, 15, 15, 15, 14, 14, 14, 14, 14, 14, 13, | |
1468 | 13, 13, 12, 11, 9, 11, 12, 13, 13, 13, 14, 14, 14, 14, 14, 14, | |
1469 | 15, 15, 15, 16, 16, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 13, | |
1470 | 13, 13, 11, 10, 11, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, | |
1471 | 15, 15, 16, 16, 15, 15, 15, 15, 15, 14, 14, 14, 14, 13, 13, 13, | |
1472 | 13, 12, 10, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, | |
1473 | 15, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, | |
1474 | 12, 11, 12, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, | |
1475 | 16, 7, | |
1476 | ]; | |
1477 | const CLV_MVY_2_CODES: &[u16] = &[ | |
1478 | 0xFFF5, 0xFFD8, 0x7FE6, 0x7FB9, 0x7FB5, 0x7FB0, 0x7FA0, 0x7F99, | |
1479 | 0x7F93, 0x3FAA, 0x3F9B, 0x3F52, 0x1F76, 0x1EF5, 0x0F0B, 0x06F0, | |
1480 | 0x0F08, 0x1EF0, 0x1F75, 0x3F53, 0x3F9A, 0x3FA8, 0x7F94, 0x7F98, | |
1481 | 0x7F9E, 0x7FAE, 0x7FAF, 0x7FB7, 0x7FE9, 0xFFDB, 0xFFF6, 0xFFFD, | |
1482 | 0x7FD9, 0x7FCC, 0x7FC6, 0x7F9C, 0x7F80, 0x3FA5, 0x3F80, 0x3F6A, | |
1483 | 0x3F31, 0x1F54, 0x1F40, 0x1F11, 0x1F05, 0x075E, 0x0360, 0x075F, | |
1484 | 0x1F07, 0x1F12, 0x1F43, 0x1F56, 0x3F33, 0x3F68, 0x3F83, 0x3FA6, | |
1485 | 0x7F7F, 0x7F9A, 0x7FC9, 0x7FCA, 0x7FDB, 0xFFF8, 0xFFEC, 0x7FDE, | |
1486 | 0x7FE2, 0x7FA6, 0x7F6F, 0x3FA1, 0x3F8D, 0x3F5C, 0x3F39, 0x3F21, | |
1487 | 0x3F18, 0x1F58, 0x1F1E, 0x1EF1, 0x0740, 0x035A, 0x0741, 0x1EF2, | |
1488 | 0x1F1F, 0x1F5A, 0x3F19, 0x3F22, 0x3F3B, 0x3F5E, 0x3F8E, 0x3FA3, | |
1489 | 0x7F6B, 0x7FA2, 0x7FE3, 0x7FE1, 0xFFEE, 0xFFFC, 0x7FC3, 0x7FBC, | |
1490 | 0x7F71, 0x3F96, 0x3F86, 0x3F7A, 0x3F72, 0x3F59, 0x3F46, 0x1F0A, | |
1491 | 0x1EFD, 0x1ED0, 0x0F02, 0x0712, 0x019F, 0x0713, 0x0F03, 0x1ED3, | |
1492 | 0x1EFF, 0x1F09, 0x3F4A, 0x3F5A, 0x3F76, 0x3F7B, 0x3F87, 0x3F97, | |
1493 | 0x7F73, 0x7FBB, 0x7FBF, 0xFFFB, 0xFFEB, 0x7F88, 0x7F5C, 0x3F7C, | |
1494 | 0x3F3C, 0x1F60, 0x1F4C, 0x1F14, 0x1F0C, 0x1F00, 0x1EF9, 0x1ED8, | |
1495 | 0x0F42, 0x075A, 0x0714, 0x0186, 0x0715, 0x075B, 0x0F43, 0x1EDA, | |
1496 | 0x1EFA, 0x1F01, 0x1F0E, 0x1F15, 0x1F4D, 0x1F62, 0x3F3D, 0x3F7D, | |
1497 | 0x3FAC, 0x7F86, 0xFFE8, 0xFFE7, 0x7FA7, 0x7F8C, 0x7F68, 0x3F9C, | |
1498 | 0x1F7C, 0x1F6C, 0x1F69, 0x1EEC, 0x1EE4, 0x1ED5, 0x1ECD, 0x0EF0, | |
1499 | 0x0752, 0x06F6, 0x018C, 0x06F7, 0x0753, 0x0EF1, 0x1ECE, 0x1ED6, | |
1500 | 0x1EE5, 0x1EED, 0x1F6A, 0x1F6E, 0x1F7D, 0x3F9F, 0x7F66, 0x7F8A, | |
1501 | 0x7FA5, 0xFFE6, 0xFFDC, 0x7FDA, 0x7FC0, 0x7FAC, 0x7F61, 0x3F42, | |
1502 | 0x3F0E, 0x1F45, 0x1F2C, 0x1ECA, 0x0F27, 0x0EF6, 0x0EEE, 0x072E, | |
1503 | 0x06F4, 0x0185, 0x06F5, 0x072F, 0x0EEF, 0x0EF7, 0x0F28, 0x1ECB, | |
1504 | 0x1F2F, 0x1F46, 0x3F0F, 0x3F40, 0x7F5F, 0x7FB4, 0x7FC2, 0x7FDC, | |
1505 | 0xFFDA, 0xFFE0, 0x7F72, 0x7F63, 0x3F70, 0x3F1C, 0x3F16, 0x1F82, | |
1506 | 0x1EE2, 0x1EB2, 0x0F4C, 0x0EFC, 0x0EE0, 0x0ED3, 0x0722, 0x036C, | |
1507 | 0x00BF, 0x036D, 0x0723, 0x0ECC, 0x0EE1, 0x0EFF, 0x0F4D, 0x1EB3, | |
1508 | 0x1EE3, 0x1F83, 0x3F17, 0x3F1F, 0x3F75, 0x7F65, 0x7F70, 0xFFE2, | |
1509 | 0xFFD7, 0x7F76, 0x3F2B, 0x3F13, 0x3F0A, 0x1F33, 0x1F23, 0x1EB4, | |
1510 | 0x1EA0, 0x0F46, 0x0F32, 0x0F1A, 0x0756, 0x0728, 0x0356, 0x00B0, | |
1511 | 0x0357, 0x0729, 0x0757, 0x0F1B, 0x0F33, 0x0F47, 0x1EA1, 0x1EB5, | |
1512 | 0x1F20, 0x1F30, 0x3F08, 0x3F10, 0x3F28, 0x7F77, 0xFFD5, 0x7FD5, | |
1513 | 0x7FD1, 0x3F5D, 0x3F25, 0x1F34, 0x1F24, 0x1EE8, 0x1EBC, 0x1EA8, | |
1514 | 0x0F3A, 0x0F2E, 0x0EE2, 0x071C, 0x0374, 0x01A0, 0x00AE, 0x01A1, | |
1515 | 0x0375, 0x071D, 0x0EE3, 0x0F2F, 0x0F3C, 0x1EA9, 0x1EBD, 0x1EE9, | |
1516 | 0x1F25, 0x1F36, 0x3F24, 0x3F61, 0x7FCE, 0x7FD2, 0x7F91, 0x7F7D, | |
1517 | 0x3F6C, 0x3F34, 0x1F72, 0x1F61, 0x1EDD, 0x1EC5, 0x1EA5, 0x0F05, | |
1518 | 0x0ED6, 0x0750, 0x073E, 0x0368, 0x034A, 0x0052, 0x034B, 0x0369, | |
1519 | 0x073F, 0x0751, 0x0ED7, 0x0F07, 0x1EA7, 0x1EC7, 0x1EDF, 0x1F65, | |
1520 | 0x1F70, 0x3F36, 0x3F6F, 0x7F7C, 0x7F8F, 0x3F90, 0x3F66, 0x3F58, | |
1521 | 0x3F4E, 0x1F48, 0x1EBB, 0x0F40, 0x0F18, 0x0F10, 0x0EDA, 0x0ECF, | |
1522 | 0x0732, 0x0704, 0x0354, 0x0190, 0x004F, 0x0191, 0x0355, 0x0705, | |
1523 | 0x0733, 0x0ED0, 0x0EDB, 0x0F11, 0x0F19, 0x0F41, 0x1EB8, 0x1F4B, | |
1524 | 0x3F4F, 0x3F55, 0x3F65, 0x3F92, 0x7F85, 0x1F51, 0x1F39, 0x1F2B, | |
1525 | 0x1F18, 0x1EC2, 0x0F38, 0x0F14, 0x0ECA, 0x074C, 0x0736, 0x0700, | |
1526 | 0x06FC, 0x0350, 0x00BA, 0x004D, 0x00BB, 0x0351, 0x06FD, 0x0701, | |
1527 | 0x0737, 0x074D, 0x0ECB, 0x0F15, 0x0F39, 0x1EC3, 0x1F1B, 0x1F2E, | |
1528 | 0x1F3A, 0x1F53, 0x7F82, 0x3F8A, 0x3F47, 0x3F2E, 0x1F5E, 0x1E9E, | |
1529 | 0x0F24, 0x0F20, 0x0EC6, 0x0746, 0x0726, 0x070E, 0x0370, 0x035E, | |
1530 | 0x018A, 0x00AC, 0x0021, 0x00AD, 0x018B, 0x035F, 0x0371, 0x070F, | |
1531 | 0x0727, 0x0747, 0x0EC7, 0x0F21, 0x0F25, 0x1E9F, 0x1F5F, 0x3F2D, | |
1532 | 0x3F48, 0x3F8B, 0xFFF1, 0x1F78, 0x1F3D, 0x1EAD, 0x0F2B, 0x0EF9, | |
1533 | 0x0EE9, 0x0739, 0x0719, 0x0709, 0x0363, 0x019B, 0x0195, 0x00B3, | |
1534 | 0x0023, 0x0005, 0x0024, 0x00B4, 0x0196, 0x019C, 0x0364, 0x070A, | |
1535 | 0x071A, 0x073A, 0x0EEA, 0x0EFA, 0x0F2C, 0x1EAE, 0x1F3E, 0x1F79, | |
1536 | 0xFFF0, 0x0F0C, 0x0EE6, 0x0EDC, 0x0EC2, 0x0748, 0x0706, 0x0372, | |
1537 | 0x034C, 0x0198, 0x0192, 0x00C0, 0x00BC, 0x00B6, 0x0053, 0x0006, | |
1538 | 0x0000, 0x0007, 0x0054, 0x00B7, 0x00BD, 0x00C1, 0x0193, 0x0199, | |
1539 | 0x034D, 0x0373, 0x0707, 0x0749, 0x0EC3, 0x0EDD, 0x0EE7, 0x0F0D, | |
1540 | 0xFFF2, 0x1F7A, 0x1F3F, 0x1EAF, 0x0F2D, 0x0EFB, 0x0EEB, 0x073B, | |
1541 | 0x071B, 0x070B, 0x0365, 0x019D, 0x0197, 0x00B5, 0x0025, 0x0004, | |
1542 | 0x0022, 0x00B2, 0x0194, 0x019A, 0x0362, 0x0708, 0x0718, 0x0738, | |
1543 | 0x0EE8, 0x0EF8, 0x0F2A, 0x1EAC, 0x1F3C, 0x1F7B, 0xFFF3, 0x3F89, | |
1544 | 0x3F44, 0x3F2F, 0x1F5C, 0x1E9C, 0x0F22, 0x0F1E, 0x0EC4, 0x0744, | |
1545 | 0x0724, 0x070C, 0x036E, 0x035C, 0x0188, 0x00AA, 0x0020, 0x00AB, | |
1546 | 0x0189, 0x035D, 0x036F, 0x070D, 0x0725, 0x0745, 0x0EC5, 0x0F1F, | |
1547 | 0x0F23, 0x1E9D, 0x1F5D, 0x3F2C, 0x3F45, 0x3F88, 0x7F81, 0x1F52, | |
1548 | 0x1F38, 0x1F28, 0x1F19, 0x1EC0, 0x0F36, 0x0F12, 0x0EC8, 0x074A, | |
1549 | 0x0734, 0x06FE, 0x06FA, 0x034E, 0x00B8, 0x004C, 0x00B9, 0x034F, | |
1550 | 0x06FB, 0x06FF, 0x0735, 0x074B, 0x0EC9, 0x0F13, 0x0F37, 0x1EC1, | |
1551 | 0x1F1A, 0x1F29, 0x1F3B, 0x1F50, 0x7F84, 0x3F91, 0x3F64, 0x3F54, | |
1552 | 0x3F4C, 0x1F49, 0x1EB9, 0x0F3B, 0x0F16, 0x0F0E, 0x0ED8, 0x0ECD, | |
1553 | 0x0730, 0x0702, 0x0352, 0x018E, 0x004E, 0x018F, 0x0353, 0x0703, | |
1554 | 0x0731, 0x0ECE, 0x0ED9, 0x0F0F, 0x0F17, 0x0F3D, 0x1EBA, 0x1F4A, | |
1555 | 0x3F4D, 0x3F51, 0x3F67, 0x3F93, 0x7F90, 0x7F7A, 0x3F6E, 0x3F37, | |
1556 | 0x1F71, 0x1F63, 0x1EDC, 0x1EC4, 0x1EA4, 0x0F04, 0x0ED4, 0x074E, | |
1557 | 0x073C, 0x0366, 0x0348, 0x0051, 0x0349, 0x0367, 0x073D, 0x074F, | |
1558 | 0x0ED5, 0x0F06, 0x1EA6, 0x1EC6, 0x1EDE, 0x1F64, 0x1F73, 0x3F35, | |
1559 | 0x3F6D, 0x7F7B, 0x7F8E, 0x7FD4, 0x7FD0, 0x3F5F, 0x3F26, 0x1F35, | |
1560 | 0x1F27, 0x1EEA, 0x1EBE, 0x1EAA, 0x0F3E, 0x0F30, 0x0EE4, 0x071E, | |
1561 | 0x0376, 0x01A2, 0x00AF, 0x01A3, 0x0377, 0x071F, 0x0EE5, 0x0F31, | |
1562 | 0x0F3F, 0x1EAB, 0x1EBF, 0x1EEB, 0x1F26, 0x1F37, 0x3F27, 0x3F62, | |
1563 | 0x7FCF, 0x7FD3, 0xFFD4, 0x7F78, 0x3F29, 0x3F11, 0x3F0B, 0x1F32, | |
1564 | 0x1F22, 0x1EB6, 0x1EA2, 0x0F48, 0x0F34, 0x0F1C, 0x0758, 0x072A, | |
1565 | 0x0358, 0x00B1, 0x0359, 0x072B, 0x0759, 0x0F1D, 0x0F35, 0x0F49, | |
1566 | 0x1EA3, 0x1EB7, 0x1F21, 0x1F31, 0x3F09, 0x3F12, 0x3F2A, 0x7F79, | |
1567 | 0xFFD6, 0xFFE1, 0x7F6D, 0x7F64, 0x3F73, 0x3F1D, 0x3F14, 0x1F81, | |
1568 | 0x1EE0, 0x1EB0, 0x0F4A, 0x0EFD, 0x0EDE, 0x0ED1, 0x0720, 0x036A, | |
1569 | 0x00BE, 0x036B, 0x0721, 0x0ED2, 0x0EDF, 0x0EFE, 0x0F4B, 0x1EB1, | |
1570 | 0x1EE1, 0x1F7E, 0x3F15, 0x3F1E, 0x3F74, 0x7F62, 0x7F75, 0xFFE3, | |
1571 | 0xFFDE, 0x7FDD, 0x7FBE, 0x7FB3, 0x7F60, 0x3F43, 0x3F0C, 0x1F47, | |
1572 | 0x1F2D, 0x1EC8, 0x0F26, 0x0EF4, 0x0EEC, 0x072C, 0x06F2, 0x0184, | |
1573 | 0x06F3, 0x072D, 0x0EED, 0x0EF5, 0x0F29, 0x1EC9, 0x1F2A, 0x1F44, | |
1574 | 0x3F0D, 0x3F41, 0x7F5E, 0x7FB1, 0x7FC1, 0x7FD7, 0xFFDF, 0xFFEA, | |
1575 | 0x7FA3, 0x7F8B, 0x7F69, 0x3F9E, 0x1F7F, 0x1F6D, 0x1F6B, 0x1EEE, | |
1576 | 0x1EE6, 0x1ED4, 0x1ECF, 0x0EF2, 0x0754, 0x06F8, 0x018D, 0x06F9, | |
1577 | 0x0755, 0x0EF3, 0x1ECC, 0x1ED7, 0x1EE7, 0x1EEF, 0x1F68, 0x1F6F, | |
1578 | 0x1F80, 0x3F9D, 0x7F67, 0x7F8D, 0x7FA8, 0xFFE9, 0xFFE5, 0x7F89, | |
1579 | 0x7F5D, 0x3F7F, 0x3F3F, 0x1F67, 0x1F4F, 0x1F17, 0x1F0F, 0x1F02, | |
1580 | 0x1EFB, 0x1ED9, 0x0F45, 0x075C, 0x0716, 0x0187, 0x0717, 0x075D, | |
1581 | 0x0F44, 0x1EDB, 0x1EF8, 0x1F03, 0x1F0D, 0x1F16, 0x1F4E, 0x1F66, | |
1582 | 0x3F3E, 0x3F7E, 0x3FAD, 0x7F87, 0xFFE4, 0xFFF9, 0x7FC4, 0x7FBA, | |
1583 | 0x7F6E, 0x3F95, 0x3F85, 0x3F78, 0x3F77, 0x3F5B, 0x3F49, 0x1F08, | |
1584 | 0x1EFE, 0x1ED2, 0x0F01, 0x0710, 0x019E, 0x0711, 0x0F00, 0x1ED1, | |
1585 | 0x1EFC, 0x1F0B, 0x3F4B, 0x3F57, 0x3F71, 0x3F79, 0x3F84, 0x3F94, | |
1586 | 0x7F74, 0x7FBD, 0x7FC5, 0xFFFE, 0xFFED, 0x7FE0, 0x7FDF, 0x7FA4, | |
1587 | 0x7F6A, 0x3FA0, 0x3F8F, 0x3F63, 0x3F3A, 0x3F23, 0x3F1A, 0x1F59, | |
1588 | 0x1F1D, 0x1EF3, 0x0743, 0x035B, 0x0742, 0x1EF7, 0x1F1C, 0x1F5B, | |
1589 | 0x3F1B, 0x3F20, 0x3F38, 0x3F60, 0x3F8C, 0x3FA2, 0x7F6C, 0x7FA9, | |
1590 | 0x7FE5, 0x7FE4, 0xFFEF, 0xFFFF, 0x7FD6, 0x7FCB, 0x7FC7, 0x7F9B, | |
1591 | 0x7F83, 0x3FA4, 0x3F81, 0x3F69, 0x3F30, 0x1F57, 0x1F41, 0x1F13, | |
1592 | 0x1F06, 0x0EC0, 0x0361, 0x0EC1, 0x1F04, 0x1F10, 0x1F42, 0x1F55, | |
1593 | 0x3F32, 0x3F6B, 0x3F82, 0x3FA7, 0x7F7E, 0x7F9D, 0x7FC8, 0x7FCD, | |
1594 | 0x7FD8, 0xFFFA, 0xFFF7, 0xFFD9, 0x7FE8, 0x7FB6, 0x7FAB, 0x7FAA, | |
1595 | 0x7FA1, 0x7F96, 0x7F95, 0x3FAB, 0x3F98, 0x3F50, 0x1F77, 0x1EF4, | |
1596 | 0x0F0A, 0x06F1, 0x0F09, 0x1EF6, 0x1F74, 0x3F56, 0x3F99, 0x3FA9, | |
1597 | 0x7F92, 0x7F97, 0x7F9F, 0x7FAD, 0x7FB2, 0x7FB8, 0x7FE7, 0xFFDD, | |
1598 | 0xFFF4, 0x0050, | |
1599 | ]; | |
1600 | const CLV_MVY_2_SYMS: &[u16] = &[ | |
1601 | 0xF1F1, 0xF2F1, 0xF3F1, 0xF4F1, 0xF5F1, 0xF6F1, 0xF7F1, 0xF8F1, | |
1602 | 0xF9F1, 0xFAF1, 0xFBF1, 0xFCF1, 0xFDF1, 0xFEF1, 0xFFF1, 0x00F1, | |
1603 | 0x01F1, 0x02F1, 0x03F1, 0x04F1, 0x05F1, 0x06F1, 0x07F1, 0x08F1, | |
1604 | 0x09F1, 0x0AF1, 0x0BF1, 0x0CF1, 0x0DF1, 0x0EF1, 0x0FF1, 0xF1F2, | |
1605 | 0xF2F2, 0xF3F2, 0xF4F2, 0xF5F2, 0xF6F2, 0xF7F2, 0xF8F2, 0xF9F2, | |
1606 | 0xFAF2, 0xFBF2, 0xFCF2, 0xFDF2, 0xFEF2, 0xFFF2, 0x00F2, 0x01F2, | |
1607 | 0x02F2, 0x03F2, 0x04F2, 0x05F2, 0x06F2, 0x07F2, 0x08F2, 0x09F2, | |
1608 | 0x0AF2, 0x0BF2, 0x0CF2, 0x0DF2, 0x0EF2, 0x0FF2, 0xF1F3, 0xF2F3, | |
1609 | 0xF3F3, 0xF4F3, 0xF5F3, 0xF6F3, 0xF7F3, 0xF8F3, 0xF9F3, 0xFAF3, | |
1610 | 0xFBF3, 0xFCF3, 0xFDF3, 0xFEF3, 0xFFF3, 0x00F3, 0x01F3, 0x02F3, | |
1611 | 0x03F3, 0x04F3, 0x05F3, 0x06F3, 0x07F3, 0x08F3, 0x09F3, 0x0AF3, | |
1612 | 0x0BF3, 0x0CF3, 0x0DF3, 0x0EF3, 0x0FF3, 0xF1F4, 0xF2F4, 0xF3F4, | |
1613 | 0xF4F4, 0xF5F4, 0xF6F4, 0xF7F4, 0xF8F4, 0xF9F4, 0xFAF4, 0xFBF4, | |
1614 | 0xFCF4, 0xFDF4, 0xFEF4, 0xFFF4, 0x00F4, 0x01F4, 0x02F4, 0x03F4, | |
1615 | 0x04F4, 0x05F4, 0x06F4, 0x07F4, 0x08F4, 0x09F4, 0x0AF4, 0x0BF4, | |
1616 | 0x0CF4, 0x0DF4, 0x0EF4, 0x0FF4, 0xF1F5, 0xF2F5, 0xF3F5, 0xF4F5, | |
1617 | 0xF5F5, 0xF6F5, 0xF7F5, 0xF8F5, 0xF9F5, 0xFAF5, 0xFBF5, 0xFCF5, | |
1618 | 0xFDF5, 0xFEF5, 0xFFF5, 0x00F5, 0x01F5, 0x02F5, 0x03F5, 0x04F5, | |
1619 | 0x05F5, 0x06F5, 0x07F5, 0x08F5, 0x09F5, 0x0AF5, 0x0BF5, 0x0CF5, | |
1620 | 0x0DF5, 0x0EF5, 0x0FF5, 0xF1F6, 0xF2F6, 0xF3F6, 0xF4F6, 0xF5F6, | |
1621 | 0xF6F6, 0xF7F6, 0xF8F6, 0xF9F6, 0xFAF6, 0xFBF6, 0xFCF6, 0xFDF6, | |
1622 | 0xFEF6, 0xFFF6, 0x00F6, 0x01F6, 0x02F6, 0x03F6, 0x04F6, 0x05F6, | |
1623 | 0x06F6, 0x07F6, 0x08F6, 0x09F6, 0x0AF6, 0x0BF6, 0x0CF6, 0x0DF6, | |
1624 | 0x0EF6, 0x0FF6, 0xF1F7, 0xF2F7, 0xF3F7, 0xF4F7, 0xF5F7, 0xF6F7, | |
1625 | 0xF7F7, 0xF8F7, 0xF9F7, 0xFAF7, 0xFBF7, 0xFCF7, 0xFDF7, 0xFEF7, | |
1626 | 0xFFF7, 0x00F7, 0x01F7, 0x02F7, 0x03F7, 0x04F7, 0x05F7, 0x06F7, | |
1627 | 0x07F7, 0x08F7, 0x09F7, 0x0AF7, 0x0BF7, 0x0CF7, 0x0DF7, 0x0EF7, | |
1628 | 0x0FF7, 0xF1F8, 0xF2F8, 0xF3F8, 0xF4F8, 0xF5F8, 0xF6F8, 0xF7F8, | |
1629 | 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, | |
1630 | 0x00F8, 0x01F8, 0x02F8, 0x03F8, 0x04F8, 0x05F8, 0x06F8, 0x07F8, | |
1631 | 0x08F8, 0x09F8, 0x0AF8, 0x0BF8, 0x0CF8, 0x0DF8, 0x0EF8, 0x0FF8, | |
1632 | 0xF1F9, 0xF2F9, 0xF3F9, 0xF4F9, 0xF5F9, 0xF6F9, 0xF7F9, 0xF8F9, | |
1633 | 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, 0xFFF9, 0x00F9, | |
1634 | 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, 0x07F9, 0x08F9, | |
1635 | 0x09F9, 0x0AF9, 0x0BF9, 0x0CF9, 0x0DF9, 0x0EF9, 0x0FF9, 0xF1FA, | |
1636 | 0xF2FA, 0xF3FA, 0xF4FA, 0xF5FA, 0xF6FA, 0xF7FA, 0xF8FA, 0xF9FA, | |
1637 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
1638 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0x08FA, 0x09FA, | |
1639 | 0x0AFA, 0x0BFA, 0x0CFA, 0x0DFA, 0x0EFA, 0x0FFA, 0xF1FB, 0xF2FB, | |
1640 | 0xF3FB, 0xF4FB, 0xF5FB, 0xF6FB, 0xF7FB, 0xF8FB, 0xF9FB, 0xFAFB, | |
1641 | 0xFBFB, 0xFCFB, 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, | |
1642 | 0x03FB, 0x04FB, 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0x09FB, 0x0AFB, | |
1643 | 0x0BFB, 0x0CFB, 0x0DFB, 0x0EFB, 0x0FFB, 0xF1FC, 0xF2FC, 0xF3FC, | |
1644 | 0xF4FC, 0xF5FC, 0xF6FC, 0xF7FC, 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, | |
1645 | 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, 0x00FC, 0x01FC, 0x02FC, 0x03FC, | |
1646 | 0x04FC, 0x05FC, 0x06FC, 0x07FC, 0x08FC, 0x09FC, 0x0AFC, 0x0BFC, | |
1647 | 0x0CFC, 0x0DFC, 0x0EFC, 0x0FFC, 0xF1FD, 0xF2FD, 0xF3FD, 0xF4FD, | |
1648 | 0xF5FD, 0xF6FD, 0xF7FD, 0xF8FD, 0xF9FD, 0xFAFD, 0xFBFD, 0xFCFD, | |
1649 | 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, 0x03FD, 0x04FD, | |
1650 | 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0x09FD, 0x0AFD, 0x0BFD, 0x0CFD, | |
1651 | 0x0DFD, 0x0EFD, 0x0FFD, 0xF1FE, 0xF2FE, 0xF3FE, 0xF4FE, 0xF5FE, | |
1652 | 0xF6FE, 0xF7FE, 0xF8FE, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
1653 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
1654 | 0x06FE, 0x07FE, 0x08FE, 0x09FE, 0x0AFE, 0x0BFE, 0x0CFE, 0x0DFE, | |
1655 | 0x0EFE, 0x0FFE, 0xF1FF, 0xF2FF, 0xF3FF, 0xF4FF, 0xF5FF, 0xF6FF, | |
1656 | 0xF7FF, 0xF8FF, 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, | |
1657 | 0xFFFF, 0x00FF, 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, | |
1658 | 0x07FF, 0x08FF, 0x09FF, 0x0AFF, 0x0BFF, 0x0CFF, 0x0DFF, 0x0EFF, | |
1659 | 0x0FFF, 0xF100, 0xF200, 0xF300, 0xF400, 0xF500, 0xF600, 0xF700, | |
1660 | 0xF800, 0xF900, 0xFA00, 0xFB00, 0xFC00, 0xFD00, 0xFE00, 0xFF00, | |
1661 | 0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700, | |
1662 | 0x0800, 0x0900, 0x0A00, 0x0B00, 0x0C00, 0x0D00, 0x0E00, 0x0F00, | |
1663 | 0xF101, 0xF201, 0xF301, 0xF401, 0xF501, 0xF601, 0xF701, 0xF801, | |
1664 | 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, 0xFF01, 0x0001, | |
1665 | 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, 0x0701, 0x0801, | |
1666 | 0x0901, 0x0A01, 0x0B01, 0x0C01, 0x0D01, 0x0E01, 0x0F01, 0xF102, | |
1667 | 0xF202, 0xF302, 0xF402, 0xF502, 0xF602, 0xF702, 0xF802, 0xF902, | |
1668 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
1669 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0x0802, 0x0902, | |
1670 | 0x0A02, 0x0B02, 0x0C02, 0x0D02, 0x0E02, 0x0F02, 0xF103, 0xF203, | |
1671 | 0xF303, 0xF403, 0xF503, 0xF603, 0xF703, 0xF803, 0xF903, 0xFA03, | |
1672 | 0xFB03, 0xFC03, 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, | |
1673 | 0x0303, 0x0403, 0x0503, 0x0603, 0x0703, 0x0803, 0x0903, 0x0A03, | |
1674 | 0x0B03, 0x0C03, 0x0D03, 0x0E03, 0x0F03, 0xF104, 0xF204, 0xF304, | |
1675 | 0xF404, 0xF504, 0xF604, 0xF704, 0xF804, 0xF904, 0xFA04, 0xFB04, | |
1676 | 0xFC04, 0xFD04, 0xFE04, 0xFF04, 0x0004, 0x0104, 0x0204, 0x0304, | |
1677 | 0x0404, 0x0504, 0x0604, 0x0704, 0x0804, 0x0904, 0x0A04, 0x0B04, | |
1678 | 0x0C04, 0x0D04, 0x0E04, 0x0F04, 0xF105, 0xF205, 0xF305, 0xF405, | |
1679 | 0xF505, 0xF605, 0xF705, 0xF805, 0xF905, 0xFA05, 0xFB05, 0xFC05, | |
1680 | 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, 0x0305, 0x0405, | |
1681 | 0x0505, 0x0605, 0x0705, 0x0805, 0x0905, 0x0A05, 0x0B05, 0x0C05, | |
1682 | 0x0D05, 0x0E05, 0x0F05, 0xF106, 0xF206, 0xF306, 0xF406, 0xF506, | |
1683 | 0xF606, 0xF706, 0xF806, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
1684 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
1685 | 0x0606, 0x0706, 0x0806, 0x0906, 0x0A06, 0x0B06, 0x0C06, 0x0D06, | |
1686 | 0x0E06, 0x0F06, 0xF107, 0xF207, 0xF307, 0xF407, 0xF507, 0xF607, | |
1687 | 0xF707, 0xF807, 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, | |
1688 | 0xFF07, 0x0007, 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, | |
1689 | 0x0707, 0x0807, 0x0907, 0x0A07, 0x0B07, 0x0C07, 0x0D07, 0x0E07, | |
1690 | 0x0F07, 0xF108, 0xF208, 0xF308, 0xF408, 0xF508, 0xF608, 0xF708, | |
1691 | 0xF808, 0xF908, 0xFA08, 0xFB08, 0xFC08, 0xFD08, 0xFE08, 0xFF08, | |
1692 | 0x0008, 0x0108, 0x0208, 0x0308, 0x0408, 0x0508, 0x0608, 0x0708, | |
1693 | 0x0808, 0x0908, 0x0A08, 0x0B08, 0x0C08, 0x0D08, 0x0E08, 0x0F08, | |
1694 | 0xF109, 0xF209, 0xF309, 0xF409, 0xF509, 0xF609, 0xF709, 0xF809, | |
1695 | 0xF909, 0xFA09, 0xFB09, 0xFC09, 0xFD09, 0xFE09, 0xFF09, 0x0009, | |
1696 | 0x0109, 0x0209, 0x0309, 0x0409, 0x0509, 0x0609, 0x0709, 0x0809, | |
1697 | 0x0909, 0x0A09, 0x0B09, 0x0C09, 0x0D09, 0x0E09, 0x0F09, 0xF10A, | |
1698 | 0xF20A, 0xF30A, 0xF40A, 0xF50A, 0xF60A, 0xF70A, 0xF80A, 0xF90A, | |
1699 | 0xFA0A, 0xFB0A, 0xFC0A, 0xFD0A, 0xFE0A, 0xFF0A, 0x000A, 0x010A, | |
1700 | 0x020A, 0x030A, 0x040A, 0x050A, 0x060A, 0x070A, 0x080A, 0x090A, | |
1701 | 0x0A0A, 0x0B0A, 0x0C0A, 0x0D0A, 0x0E0A, 0x0F0A, 0xF10B, 0xF20B, | |
1702 | 0xF30B, 0xF40B, 0xF50B, 0xF60B, 0xF70B, 0xF80B, 0xF90B, 0xFA0B, | |
1703 | 0xFB0B, 0xFC0B, 0xFD0B, 0xFE0B, 0xFF0B, 0x000B, 0x010B, 0x020B, | |
1704 | 0x030B, 0x040B, 0x050B, 0x060B, 0x070B, 0x080B, 0x090B, 0x0A0B, | |
1705 | 0x0B0B, 0x0C0B, 0x0D0B, 0x0E0B, 0x0F0B, 0xF10C, 0xF20C, 0xF30C, | |
1706 | 0xF40C, 0xF50C, 0xF60C, 0xF70C, 0xF80C, 0xF90C, 0xFA0C, 0xFB0C, | |
1707 | 0xFC0C, 0xFD0C, 0xFE0C, 0xFF0C, 0x000C, 0x010C, 0x020C, 0x030C, | |
1708 | 0x040C, 0x050C, 0x060C, 0x070C, 0x080C, 0x090C, 0x0A0C, 0x0B0C, | |
1709 | 0x0C0C, 0x0D0C, 0x0E0C, 0x0F0C, 0xF10D, 0xF20D, 0xF30D, 0xF40D, | |
1710 | 0xF50D, 0xF60D, 0xF70D, 0xF80D, 0xF90D, 0xFA0D, 0xFB0D, 0xFC0D, | |
1711 | 0xFD0D, 0xFE0D, 0xFF0D, 0x000D, 0x010D, 0x020D, 0x030D, 0x040D, | |
1712 | 0x050D, 0x060D, 0x070D, 0x080D, 0x090D, 0x0A0D, 0x0B0D, 0x0C0D, | |
1713 | 0x0D0D, 0x0E0D, 0x0F0D, 0xF10E, 0xF20E, 0xF30E, 0xF40E, 0xF50E, | |
1714 | 0xF60E, 0xF70E, 0xF80E, 0xF90E, 0xFA0E, 0xFB0E, 0xFC0E, 0xFD0E, | |
1715 | 0xFE0E, 0xFF0E, 0x000E, 0x010E, 0x020E, 0x030E, 0x040E, 0x050E, | |
1716 | 0x060E, 0x070E, 0x080E, 0x090E, 0x0A0E, 0x0B0E, 0x0C0E, 0x0D0E, | |
1717 | 0x0E0E, 0x0F0E, 0xF10F, 0xF20F, 0xF30F, 0xF40F, 0xF50F, 0xF60F, | |
1718 | 0xF70F, 0xF80F, 0xF90F, 0xFA0F, 0xFB0F, 0xFC0F, 0xFD0F, 0xFE0F, | |
1719 | 0xFF0F, 0x000F, 0x010F, 0x020F, 0x030F, 0x040F, 0x050F, 0x060F, | |
1720 | 0x070F, 0x080F, 0x090F, 0x0A0F, 0x0B0F, 0x0C0F, 0x0D0F, 0x0E0F, | |
1721 | 0x0F0F, 0x1010, | |
1722 | ]; | |
1723 | const CLV_MVY_2_ESCAPE: u16 = 0x1010; | |
1724 | ||
1725 | const CLV_BIASY_2_BITS: &[u8] = &[ | |
1726 | 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, | |
1727 | 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 12, 12, 11, | |
1728 | 11, 11, 10, 10, 10, 10, 9, 9, 8, 8, 8, 7, 6, 6, 4, 3, | |
1729 | 1, 3, 4, 6, 6, 7, 8, 8, 8, 9, 9, 10, 10, 10, 10, 11, | |
1730 | 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 15, | |
1731 | 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, | |
1732 | 16, 15, | |
1733 | ]; | |
1734 | const CLV_BIASY_2_CODES: &[u16] = &[ | |
1735 | 0xFFFE, 0xFFFC, 0xFFFA, 0xFFF9, 0xFFF6, 0xFFF5, 0xFFF3, 0x7FF7, | |
1736 | 0x7FF5, 0x7FF1, 0x7FF3, 0x7FF0, 0x7FEE, 0x7FEC, 0x7FE9, 0x7FE6, | |
1737 | 0x7FE4, 0x7FE2, 0x3FEF, 0x3FEE, 0x3FEC, 0x3FEA, 0x1FF2, 0x1FF1, | |
1738 | 0x1FEF, 0x1FED, 0x0FF4, 0x0FF3, 0x0FF1, 0x0FEF, 0x0FED, 0x07F4, | |
1739 | 0x07F3, 0x07F1, 0x03F6, 0x03F4, 0x03F2, 0x03F0, 0x01F6, 0x01F4, | |
1740 | 0x00F8, 0x00F6, 0x00F4, 0x0078, 0x003A, 0x0038, 0x000C, 0x0004, | |
1741 | 0x0000, 0x0005, 0x000D, 0x0039, 0x003B, 0x0079, 0x00F5, 0x00F7, | |
1742 | 0x00F9, 0x01F5, 0x01F7, 0x03F1, 0x03F3, 0x03F5, 0x03F7, 0x07F0, | |
1743 | 0x07F2, 0x07F5, 0x0FEC, 0x0FEE, 0x0FF0, 0x0FF2, 0x0FF5, 0x1FEC, | |
1744 | 0x1FEE, 0x1FF0, 0x1FF3, 0x1FF4, 0x3FEB, 0x3FED, 0x3FF0, 0x7FE3, | |
1745 | 0x7FE5, 0x7FE7, 0x7FEA, 0x7FEB, 0x7FED, 0x7FEF, 0x7FF4, 0x7FF2, | |
1746 | 0x7FF6, 0x7FF8, 0xFFF2, 0xFFF4, 0xFFF7, 0xFFF8, 0xFFFB, 0xFFFD, | |
1747 | 0xFFFF, 0x7FE8, | |
1748 | ]; | |
1749 | const CLV_BIASY_2_SYMS: &[u16] = &[ | |
1750 | 0xFF40, 0xFF44, 0xFF48, 0xFF4C, 0xFF50, 0xFF54, 0xFF58, 0xFF5C, | |
1751 | 0xFF60, 0xFF64, 0xFF68, 0xFF6C, 0xFF70, 0xFF74, 0xFF78, 0xFF7C, | |
1752 | 0xFF80, 0xFF84, 0xFF88, 0xFF8C, 0xFF90, 0xFF94, 0xFF98, 0xFF9C, | |
1753 | 0xFFA0, 0xFFA4, 0xFFA8, 0xFFAC, 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, | |
1754 | 0xFFC0, 0xFFC4, 0xFFC8, 0xFFCC, 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, | |
1755 | 0xFFE0, 0xFFE4, 0xFFE8, 0xFFEC, 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, | |
1756 | 0x0000, 0x0004, 0x0008, 0x000C, 0x0010, 0x0014, 0x0018, 0x001C, | |
1757 | 0x0020, 0x0024, 0x0028, 0x002C, 0x0030, 0x0034, 0x0038, 0x003C, | |
1758 | 0x0040, 0x0044, 0x0048, 0x004C, 0x0050, 0x0054, 0x0058, 0x005C, | |
1759 | 0x0060, 0x0064, 0x0068, 0x006C, 0x0070, 0x0074, 0x0078, 0x007C, | |
1760 | 0x0080, 0x0084, 0x0088, 0x008C, 0x0090, 0x0094, 0x0098, 0x009C, | |
1761 | 0x00A0, 0x00A4, 0x00A8, 0x00AC, 0x00B0, 0x00B4, 0x00B8, 0x00BC, | |
1762 | 0x00C0, 0x0100, | |
1763 | ]; | |
1764 | ||
1765 | const CLV_FLAGSY_2_BITS: &[u8] = &[ | |
1766 | 1, 4, 4, 4, 4, 5, 7, 5, 4, 6, 5, 8, 4, 9, 10, 10, | |
1767 | ]; | |
1768 | const CLV_FLAGSY_2_CODES: &[u16] = &[ | |
1769 | 0x0000, 0x000C, 0x000B, 0x0008, 0x000A, 0x001C, 0x007E, 0x001D, | |
1770 | 0x000D, 0x003E, 0x001E, 0x00FE, 0x0009, 0x01FE, 0x03FE, 0x03FF, | |
1771 | ]; | |
1772 | ||
1773 | const CLV_MVY_3_BITS: &[u8] = &[ | |
1774 | 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 14, 14, 13, | |
1775 | 13, 12, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, | |
1776 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, | |
1777 | 15, 15, 14, 14, 14, 13, 12, 11, 12, 13, 14, 14, 14, 15, 15, 15, | |
1778 | 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, | |
1779 | 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 12, 11, 12, 14, 14, | |
1780 | 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, | |
1781 | 16, 16, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 13, 13, | |
1782 | 12, 11, 12, 13, 13, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, | |
1783 | 15, 16, 16, 16, 16, 16, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, | |
1784 | 14, 14, 14, 13, 13, 12, 10, 12, 13, 13, 14, 14, 14, 14, 14, 14, | |
1785 | 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 15, 15, 15, 15, | |
1786 | 14, 14, 14, 14, 13, 13, 13, 13, 13, 12, 12, 10, 12, 12, 13, 13, | |
1787 | 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 15, 15, | |
1788 | 15, 15, 14, 14, 14, 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, 11, | |
1789 | 10, 11, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, | |
1790 | 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, 13, 13, 12, 12, | |
1791 | 12, 12, 12, 11, 10, 9, 10, 11, 12, 12, 12, 12, 12, 13, 13, 13, | |
1792 | 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, | |
1793 | 12, 12, 12, 12, 12, 12, 12, 11, 11, 10, 9, 10, 11, 11, 12, 12, | |
1794 | 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, 15, 16, 15, 15, | |
1795 | 15, 15, 14, 14, 13, 13, 12, 12, 12, 12, 12, 11, 11, 11, 10, 9, | |
1796 | 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 14, 14, 15, 15, 15, | |
1797 | 15, 16, 15, 15, 14, 14, 14, 14, 14, 13, 13, 12, 12, 12, 12, 12, | |
1798 | 11, 11, 11, 10, 9, 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, | |
1799 | 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, 12, | |
1800 | 12, 12, 12, 12, 12, 11, 11, 11, 10, 8, 10, 11, 11, 11, 12, 12, | |
1801 | 12, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 14, 14, | |
1802 | 14, 14, 13, 13, 12, 12, 12, 12, 12, 11, 11, 11, 10, 10, 8, 10, | |
1803 | 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 15, | |
1804 | 15, 15, 14, 14, 14, 14, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, | |
1805 | 10, 10, 9, 7, 9, 10, 10, 11, 11, 11, 12, 12, 12, 12, 13, 13, | |
1806 | 13, 14, 14, 14, 14, 15, 15, 14, 14, 14, 14, 13, 13, 13, 12, 12, | |
1807 | 12, 12, 11, 11, 11, 10, 10, 9, 7, 9, 10, 10, 11, 11, 11, 12, | |
1808 | 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 14, 14, 14, 14, | |
1809 | 13, 13, 12, 12, 12, 12, 11, 11, 11, 11, 10, 9, 9, 7, 9, 9, | |
1810 | 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 15, | |
1811 | 15, 14, 14, 14, 13, 13, 13, 13, 12, 11, 11, 11, 11, 10, 10, 10, | |
1812 | 9, 8, 6, 8, 9, 10, 10, 10, 11, 11, 11, 11, 12, 13, 13, 13, | |
1813 | 13, 14, 14, 14, 15, 15, 14, 14, 14, 13, 13, 12, 12, 11, 11, 11, | |
1814 | 11, 10, 10, 9, 9, 8, 6, 4, 6, 8, 9, 9, 10, 10, 11, 11, | |
1815 | 11, 11, 12, 12, 13, 13, 14, 14, 14, 15, 13, 13, 13, 12, 12, 12, | |
1816 | 12, 11, 10, 10, 10, 10, 9, 9, 8, 8, 7, 5, 2, 5, 7, 8, | |
1817 | 8, 9, 9, 10, 10, 10, 10, 11, 12, 12, 12, 12, 13, 13, 13, 15, | |
1818 | 14, 14, 14, 13, 13, 12, 12, 11, 11, 11, 11, 10, 10, 9, 9, 8, | |
1819 | 6, 4, 6, 8, 9, 9, 10, 10, 11, 11, 11, 11, 12, 12, 13, 13, | |
1820 | 14, 14, 14, 15, 15, 14, 14, 14, 13, 13, 13, 13, 12, 11, 11, 11, | |
1821 | 11, 10, 10, 10, 9, 8, 6, 8, 9, 10, 10, 10, 11, 11, 11, 11, | |
1822 | 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 14, 14, 14, 14, 13, 13, | |
1823 | 12, 12, 12, 12, 11, 11, 11, 11, 10, 9, 9, 7, 9, 9, 10, 11, | |
1824 | 11, 11, 11, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 15, 15, 14, | |
1825 | 14, 14, 14, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 10, 10, 9, | |
1826 | 7, 9, 10, 10, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 14, 14, | |
1827 | 14, 14, 15, 15, 14, 14, 14, 14, 13, 13, 13, 12, 12, 12, 12, 11, | |
1828 | 11, 11, 10, 10, 9, 7, 9, 10, 10, 11, 11, 11, 12, 12, 12, 12, | |
1829 | 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 14, 14, 14, 14, 13, 13, | |
1830 | 12, 12, 12, 12, 12, 11, 11, 11, 10, 10, 8, 10, 10, 11, 11, 11, | |
1831 | 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, | |
1832 | 14, 14, 14, 13, 13, 12, 12, 12, 12, 12, 12, 11, 11, 11, 10, 8, | |
1833 | 10, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 15, | |
1834 | 15, 15, 15, 15, 14, 14, 14, 14, 14, 13, 13, 12, 12, 12, 12, 12, | |
1835 | 11, 11, 11, 10, 9, 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, | |
1836 | 14, 14, 14, 14, 14, 15, 15, 16, 15, 15, 15, 15, 14, 14, 13, 13, | |
1837 | 12, 12, 12, 12, 12, 11, 11, 11, 10, 9, 10, 11, 11, 11, 12, 12, | |
1838 | 12, 12, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 15, 15, 15, 14, | |
1839 | 14, 14, 13, 13, 12, 12, 12, 12, 12, 12, 12, 11, 11, 10, 9, 10, | |
1840 | 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 15, 15, | |
1841 | 15, 15, 15, 15, 15, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 12, | |
1842 | 12, 11, 10, 9, 10, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, | |
1843 | 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, | |
1844 | 13, 13, 13, 13, 13, 13, 13, 11, 10, 11, 13, 13, 13, 13, 13, 13, | |
1845 | 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 15, 15, | |
1846 | 15, 15, 14, 14, 14, 14, 13, 13, 13, 13, 13, 12, 12, 10, 12, 12, | |
1847 | 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, | |
1848 | 16, 16, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, | |
1849 | 13, 12, 10, 12, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, | |
1850 | 15, 15, 15, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 14, | |
1851 | 14, 14, 14, 14, 13, 13, 12, 11, 12, 13, 13, 14, 14, 14, 14, 14, | |
1852 | 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 15, 15, 15, | |
1853 | 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 14, 12, 11, 12, 14, 14, | |
1854 | 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, | |
1855 | 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, 13, | |
1856 | 12, 11, 12, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 16, 16, | |
1857 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 15, 15, 15, 15, 15, | |
1858 | 15, 14, 14, 13, 13, 12, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, | |
1859 | 15, 15, 16, 16, 16, 16, 16, 16, 16, 7, | |
1860 | ]; | |
1861 | const CLV_MVY_3_CODES: &[u16] = &[ | |
1862 | 0xFFF6, 0xFFEE, 0xFFDC, 0xFFD7, 0xFFB4, 0xFFAA, 0xFFA0, 0x7FCC, | |
1863 | 0x7F8E, 0x7F7B, 0x7F77, 0x7F13, 0x7F11, 0x3F56, 0x3F48, 0x1F16, | |
1864 | 0x1E94, 0x0F28, 0x06F0, 0x0F2A, 0x1E96, 0x1F1C, 0x3F46, 0x3F58, | |
1865 | 0x7F15, 0x7F0E, 0x7F76, 0x7F80, 0x7F90, 0x7FC8, 0xFFA2, 0xFFA7, | |
1866 | 0xFFB5, 0xFFD8, 0xFFDD, 0xFFEC, 0xFFF5, 0xFFF1, 0xFFEA, 0xFFE4, | |
1867 | 0xFFD1, 0xFFC1, 0xFFA8, 0x7F70, 0x7F5C, 0x7F44, 0x7F40, 0x7F2A, | |
1868 | 0x7F16, 0x7EDF, 0x3ED6, 0x3ECA, 0x3ECC, 0x1EB5, 0x0EDE, 0x06D3, | |
1869 | 0x0EDF, 0x1EB6, 0x3ECE, 0x3ED0, 0x3ED8, 0x7EE5, 0x7F19, 0x7F31, | |
1870 | 0x7F3E, 0x7F45, 0x7F5B, 0x7F6F, 0xFFA9, 0xFFC0, 0xFFCE, 0xFFE5, | |
1871 | 0xFFE8, 0xFFF2, 0xFFFE, 0xFFE2, 0xFFBE, 0x7FBB, 0x7F75, 0x7F6B, | |
1872 | 0x7F58, 0x7EF9, 0x7EDC, 0x3F68, 0x3F27, 0x3F28, 0x3EDF, 0x3ED2, | |
1873 | 0x3EC1, 0x3EA6, 0x3E87, 0x0F0F, 0x06B3, 0x0F10, 0x3E89, 0x3EA8, | |
1874 | 0x3EC3, 0x3ED5, 0x3EE0, 0x3F2B, 0x3F26, 0x3F67, 0x7EDA, 0x7EFB, | |
1875 | 0x7F56, 0x7F6A, 0x7F72, 0x7FC1, 0xFFBC, 0xFFE0, 0xFFFF, 0xFFF8, | |
1876 | 0xFFD3, 0xFFB9, 0x7FAC, 0x7F94, 0x7F8B, 0x7F62, 0x7F4A, 0x7F05, | |
1877 | 0x7EEE, 0x3F44, 0x3EA4, 0x3E78, 0x3E6F, 0x3E54, 0x1EEF, 0x1EA9, | |
1878 | 0x0ED4, 0x06A8, 0x0ED5, 0x1EA8, 0x1EEC, 0x3E51, 0x3E69, 0x3E75, | |
1879 | 0x3EA3, 0x3F43, 0x7EF1, 0x7F04, 0x7F4B, 0x7F5D, 0x7F89, 0x7F95, | |
1880 | 0x7FAA, 0xFFBB, 0xFFC8, 0xFFF9, 0xFFD9, 0xFFCA, 0x7FC3, 0x7F8C, | |
1881 | 0x7F38, 0x7F02, 0x3F5A, 0x3F4A, 0x3F30, 0x3EFF, 0x3EF4, 0x3EE9, | |
1882 | 0x3E95, 0x3E73, 0x3E43, 0x1F08, 0x1E81, 0x0E84, 0x0349, 0x0E85, | |
1883 | 0x1E82, 0x1F07, 0x3E45, 0x3E74, 0x3E96, 0x3EEA, 0x3EF1, 0x3F00, | |
1884 | 0x3F32, 0x3F4F, 0x3F5C, 0x7F01, 0x7F3B, 0x7F8D, 0x7FC2, 0xFFCF, | |
1885 | 0xFFD6, 0xFFC7, 0xFFB1, 0xFFA6, 0x7FA1, 0x7F2F, 0x7F24, 0x7F0A, | |
1886 | 0x3EF6, 0x3E97, 0x3E83, 0x3E7F, 0x1F04, 0x1EE1, 0x1ECB, 0x1EAE, | |
1887 | 0x1E7E, 0x0EBA, 0x0E8C, 0x0333, 0x0E8D, 0x0EBB, 0x1E7F, 0x1EAF, | |
1888 | 0x1ECC, 0x1EE2, 0x1F05, 0x3E80, 0x3E84, 0x3E98, 0x3EF9, 0x7F06, | |
1889 | 0x7F1B, 0x7F2D, 0x7F9F, 0xFFAF, 0xFFB0, 0xFFC6, 0x7FB5, 0x7FB1, | |
1890 | 0x7F36, 0x7F25, 0x3F63, 0x3F3A, 0x3F1B, 0x3EBB, 0x3E63, 0x3E5B, | |
1891 | 0x3E40, 0x1F14, 0x1EF5, 0x1EEB, 0x1EBE, 0x1E92, 0x1E6A, 0x070C, | |
1892 | 0x032D, 0x070D, 0x1E6B, 0x1E93, 0x1EBF, 0x1EE8, 0x1EF3, 0x1F15, | |
1893 | 0x3E3F, 0x3E5C, 0x3E64, 0x3EB9, 0x3F1C, 0x3F3C, 0x3F62, 0x7F22, | |
1894 | 0x7F39, 0x7FAF, 0x7FAE, 0x7FC6, 0x7F7F, 0x7F53, 0x7F32, 0x3F66, | |
1895 | 0x3EF0, 0x3E65, 0x1EDA, 0x1ED3, 0x1E98, 0x1E74, 0x0F20, 0x0F1D, | |
1896 | 0x0EEA, 0x0EA9, 0x0E70, 0x0718, 0x033E, 0x0179, 0x033F, 0x0719, | |
1897 | 0x0E71, 0x0EAB, 0x0EE9, 0x0F1F, 0x0F22, 0x1E76, 0x1E9B, 0x1ED5, | |
1898 | 0x1EDD, 0x3E68, 0x3EF3, 0x3F6C, 0x7F33, 0x7F4E, 0x7F7D, 0x7FCB, | |
1899 | 0x7FBD, 0x7F21, 0x7EF6, 0x3F0C, 0x3EBE, 0x3EAE, 0x1EA3, 0x1E85, | |
1900 | 0x0F0C, 0x0F06, 0x0EEE, 0x0EE6, 0x0ECA, 0x0EA2, 0x0E78, 0x0720, | |
1901 | 0x06BA, 0x0326, 0x015D, 0x0327, 0x06BB, 0x0721, 0x0E79, 0x0EA3, | |
1902 | 0x0ECB, 0x0EE7, 0x0EEF, 0x0F07, 0x0F0D, 0x1E86, 0x1EA4, 0x3EAF, | |
1903 | 0x3EBF, 0x3F0A, 0x7EF8, 0x7F1E, 0x7FBF, 0xFF9F, 0x7FB3, 0x7F96, | |
1904 | 0x7F0B, 0x7EF5, 0x3E85, 0x3E4E, 0x1EB3, 0x1E6E, 0x0F2D, 0x0EBD, | |
1905 | 0x0E97, 0x0E93, 0x0E86, 0x071A, 0x06E4, 0x06BC, 0x0338, 0x015A, | |
1906 | 0x0339, 0x06BD, 0x06E5, 0x071B, 0x0E87, 0x0E94, 0x0E98, 0x0EBE, | |
1907 | 0x0F2E, 0x1E6F, 0x1EB4, 0x3E4F, 0x3E88, 0x7EF4, 0x7F07, 0x7F99, | |
1908 | 0x7FB7, 0xFF9D, 0x7FA8, 0x7EEB, 0x3F5D, 0x3EB2, 0x3EAA, 0x3E5D, | |
1909 | 0x3E49, 0x1EFE, 0x1E89, 0x0F16, 0x0F12, 0x0EE0, 0x0E7A, 0x0E6A, | |
1910 | 0x070E, 0x06FA, 0x06B4, 0x0314, 0x0158, 0x0315, 0x06B5, 0x06FB, | |
1911 | 0x070F, 0x0E6B, 0x0E7B, 0x0EE1, 0x0F13, 0x0F17, 0x1E8A, 0x1EFF, | |
1912 | 0x3E4A, 0x3E5E, 0x3EAB, 0x3EB3, 0x3F59, 0x7EEC, 0x7FA2, 0x7F82, | |
1913 | 0x7F5E, 0x7F28, 0x3EDA, 0x3EC9, 0x3E7A, 0x1ED6, 0x1ECE, 0x0EFC, | |
1914 | 0x0EF0, 0x0E9A, 0x0E7E, 0x0E66, 0x0E5E, 0x0722, 0x06C0, 0x06A0, | |
1915 | 0x02FA, 0x00A8, 0x02FB, 0x06A1, 0x06C1, 0x0723, 0x0E5F, 0x0E67, | |
1916 | 0x0E7F, 0x0E9B, 0x0EF1, 0x0EFD, 0x1ECF, 0x1ED7, 0x3E79, 0x3ECD, | |
1917 | 0x3EDB, 0x7F26, 0x7F5A, 0x7F83, 0x7F54, 0x7EE8, 0x3F54, 0x3F0E, | |
1918 | 0x3EFB, 0x3E47, 0x1EC1, 0x1EB9, 0x0EF9, 0x0EF3, 0x0EC1, 0x0E8F, | |
1919 | 0x0E74, 0x0714, 0x06F4, 0x06B0, 0x0336, 0x030A, 0x009F, 0x030B, | |
1920 | 0x0337, 0x06B1, 0x06F5, 0x0715, 0x0E75, 0x0E91, 0x0EC3, 0x0EF6, | |
1921 | 0x0EFB, 0x1EBB, 0x1EC3, 0x3E41, 0x3EF8, 0x3F10, 0x3F4D, 0x7EE9, | |
1922 | 0x7F52, 0x7F9A, 0x3F3F, 0x3F1F, 0x3F03, 0x3EA0, 0x1F0F, 0x1E72, | |
1923 | 0x1E62, 0x0EDA, 0x0ED2, 0x0EB2, 0x0E64, 0x0708, 0x06EA, 0x06DA, | |
1924 | 0x0346, 0x032A, 0x0176, 0x004B, 0x0177, 0x032B, 0x0347, 0x06DB, | |
1925 | 0x06EB, 0x0709, 0x0E65, 0x0EB3, 0x0ED3, 0x0EDB, 0x1E63, 0x1E6C, | |
1926 | 0x1F0E, 0x3E9E, 0x3F01, 0x3F1D, 0x3F3D, 0x7F9B, 0x7EDE, 0x3F36, | |
1927 | 0x3F2E, 0x3F07, 0x3E99, 0x1F0D, 0x1EA1, 0x1E8C, 0x0EB4, 0x0EAC, | |
1928 | 0x0E5A, 0x0E50, 0x0702, 0x06D4, 0x06C6, 0x032E, 0x0310, 0x0162, | |
1929 | 0x0046, 0x0163, 0x0311, 0x032F, 0x06C7, 0x06D5, 0x0703, 0x0E51, | |
1930 | 0x0E5B, 0x0EAD, 0x0EB5, 0x1E8F, 0x1EA7, 0x1F0C, 0x3E9A, 0x3F02, | |
1931 | 0x3F2D, 0x3F35, 0x7EE0, 0x7F66, 0x3F11, 0x3EE1, 0x3EBC, 0x3E56, | |
1932 | 0x1EC4, 0x1E64, 0x0F04, 0x0EC7, 0x0E56, 0x0E4C, 0x06EC, 0x06DC, | |
1933 | 0x069C, 0x0694, 0x0320, 0x016C, 0x0154, 0x0044, 0x0155, 0x016D, | |
1934 | 0x0321, 0x0695, 0x069D, 0x06DD, 0x06ED, 0x0E4D, 0x0E57, 0x0EC4, | |
1935 | 0x0F05, 0x1E65, 0x1EC5, 0x3E55, 0x3EB7, 0x3EE3, 0x3F13, 0x7F67, | |
1936 | 0x7FA7, 0x3F49, 0x3F22, 0x3EE5, 0x1EF6, 0x1EE5, 0x1E9C, 0x1E78, | |
1937 | 0x0EA4, 0x06F6, 0x06DE, 0x06CE, 0x06AA, 0x0340, 0x0318, 0x02FE, | |
1938 | 0x015E, 0x009A, 0x001C, 0x009B, 0x015F, 0x02FF, 0x0319, 0x0341, | |
1939 | 0x06AB, 0x06CF, 0x06DF, 0x06F7, 0x0EA5, 0x1E79, 0x1E9D, 0x1EE7, | |
1940 | 0x1EF7, 0x3EE6, 0x3F23, 0x3F4B, 0x7FA3, 0x7F49, 0x3F14, 0x3E8D, | |
1941 | 0x3E6B, 0x1F17, 0x1EF8, 0x0F24, 0x0ECC, 0x06FE, 0x06CA, 0x06A4, | |
1942 | 0x0698, 0x030C, 0x0302, 0x0170, 0x0168, 0x00A0, 0x001E, 0x0004, | |
1943 | 0x001F, 0x00A1, 0x0169, 0x0171, 0x0303, 0x030D, 0x0699, 0x06A5, | |
1944 | 0x06CB, 0x06FF, 0x0ECD, 0x0F25, 0x1EF9, 0x1F18, 0x3E6C, 0x3E8E, | |
1945 | 0x3F15, 0x7F46, 0x1EF0, 0x1EDE, 0x1EC8, 0x0F1A, 0x0F00, 0x0E9E, | |
1946 | 0x0E54, 0x06C4, 0x031E, 0x031C, 0x0306, 0x02F8, 0x017A, 0x0166, | |
1947 | 0x00A6, 0x00A4, 0x0048, 0x000C, 0x0000, 0x000D, 0x0049, 0x00A5, | |
1948 | 0x00A7, 0x0167, 0x017B, 0x02F9, 0x0307, 0x031D, 0x031F, 0x06C5, | |
1949 | 0x0E55, 0x0E9F, 0x0F01, 0x0F1B, 0x1EC9, 0x1EDF, 0x1EF1, 0x7F47, | |
1950 | 0x3F12, 0x3E8F, 0x3E6D, 0x1F1B, 0x1EFA, 0x0F26, 0x0ECE, 0x0700, | |
1951 | 0x06CC, 0x06A6, 0x069A, 0x030E, 0x0304, 0x0172, 0x016A, 0x00A2, | |
1952 | 0x0020, 0x0005, 0x0021, 0x00A3, 0x016B, 0x0173, 0x0305, 0x030F, | |
1953 | 0x069B, 0x06A7, 0x06CD, 0x0701, 0x0ECF, 0x0F27, 0x1EFB, 0x1F1D, | |
1954 | 0x3E6E, 0x3E90, 0x3F17, 0x7F48, 0x7FA9, 0x3F50, 0x3F24, 0x3EE7, | |
1955 | 0x1EFC, 0x1EE9, 0x1E9E, 0x1E7A, 0x0EA6, 0x06F8, 0x06E0, 0x06D0, | |
1956 | 0x06AC, 0x0342, 0x031A, 0x0300, 0x0160, 0x009C, 0x001D, 0x009D, | |
1957 | 0x0161, 0x0301, 0x031B, 0x0343, 0x06AD, 0x06D1, 0x06E1, 0x06F9, | |
1958 | 0x0EA7, 0x1E7B, 0x1E9F, 0x1EEA, 0x1EFD, 0x3EE8, 0x3F21, 0x3F52, | |
1959 | 0x7F9E, 0x7F68, 0x3F16, 0x3EE2, 0x3EBA, 0x3E57, 0x1EC6, 0x1E66, | |
1960 | 0x0F08, 0x0EC5, 0x0E58, 0x0E4E, 0x06EE, 0x06E2, 0x069E, 0x0696, | |
1961 | 0x0322, 0x016E, 0x0156, 0x0045, 0x0157, 0x016F, 0x0323, 0x0697, | |
1962 | 0x069F, 0x06E3, 0x06EF, 0x0E4F, 0x0E59, 0x0EC6, 0x0F09, 0x1E67, | |
1963 | 0x1EC7, 0x3E58, 0x3EB8, 0x3EE4, 0x3F18, 0x7F69, 0x7EE2, 0x3F38, | |
1964 | 0x3F33, 0x3F04, 0x3E9C, 0x1F0A, 0x1EA5, 0x1E8D, 0x0EB6, 0x0EAE, | |
1965 | 0x0E5C, 0x0E52, 0x0704, 0x06D6, 0x06C8, 0x0330, 0x0312, 0x0164, | |
1966 | 0x0047, 0x0165, 0x0313, 0x0331, 0x06C9, 0x06D7, 0x0705, 0x0E53, | |
1967 | 0x0E5D, 0x0EAF, 0x0EB7, 0x1E8E, 0x1EA6, 0x1F0B, 0x3E9B, 0x3F05, | |
1968 | 0x3F31, 0x3F39, 0x7EE1, 0x7F9C, 0x3F40, 0x3F1E, 0x3F06, 0x3E9D, | |
1969 | 0x1F10, 0x1E70, 0x1E60, 0x0ED8, 0x0ED0, 0x0EB0, 0x0E62, 0x0706, | |
1970 | 0x06E8, 0x06D8, 0x0344, 0x0328, 0x0174, 0x004A, 0x0175, 0x0329, | |
1971 | 0x0345, 0x06D9, 0x06E9, 0x0707, 0x0E63, 0x0EB1, 0x0ED1, 0x0ED9, | |
1972 | 0x1E61, 0x1E71, 0x1F11, 0x3E9F, 0x3F08, 0x3F20, 0x3F3E, 0x7F9D, | |
1973 | 0x7F4F, 0x7EE6, 0x3F53, 0x3F0D, 0x3EFA, 0x3E46, 0x1EC0, 0x1EB8, | |
1974 | 0x0EF8, 0x0EF2, 0x0EC0, 0x0E8E, 0x0E72, 0x0712, 0x06F2, 0x06AE, | |
1975 | 0x0334, 0x0308, 0x009E, 0x0309, 0x0335, 0x06AF, 0x06F3, 0x0713, | |
1976 | 0x0E73, 0x0E90, 0x0EC2, 0x0EF4, 0x0EFA, 0x1EBA, 0x1EC2, 0x3E48, | |
1977 | 0x3EFC, 0x3F0B, 0x3F51, 0x7EE7, 0x7F51, 0x7F84, 0x7F61, 0x7F27, | |
1978 | 0x3EDC, 0x3EC5, 0x3E7C, 0x1ED8, 0x1ED0, 0x0EFE, 0x0EF5, 0x0E9C, | |
1979 | 0x0E80, 0x0E68, 0x0E60, 0x0724, 0x06C2, 0x06A2, 0x02FC, 0x00A9, | |
1980 | 0x02FD, 0x06A3, 0x06C3, 0x0725, 0x0E61, 0x0E69, 0x0E81, 0x0E9D, | |
1981 | 0x0EF7, 0x0EFF, 0x1ED1, 0x1ED9, 0x3E7B, 0x3ECF, 0x3ED9, 0x7F29, | |
1982 | 0x7F65, 0x7F85, 0x7FA0, 0x7EEA, 0x3F60, 0x3EB4, 0x3EAC, 0x3E5F, | |
1983 | 0x3E4B, 0x1F00, 0x1E8B, 0x0F18, 0x0F14, 0x0EE2, 0x0E7C, 0x0E6C, | |
1984 | 0x0710, 0x06FC, 0x06B6, 0x0316, 0x0159, 0x0317, 0x06B7, 0x06FD, | |
1985 | 0x0711, 0x0E6D, 0x0E7D, 0x0EE3, 0x0F15, 0x0F19, 0x1E88, 0x1F01, | |
1986 | 0x3E4C, 0x3E60, 0x3EA9, 0x3EB1, 0x3F5B, 0x7EED, 0x7FA5, 0xFF9E, | |
1987 | 0x7FBE, 0x7F98, 0x7F0D, 0x7EF3, 0x3E8C, 0x3E50, 0x1EB7, 0x1E73, | |
1988 | 0x0F2F, 0x0EBF, 0x0E99, 0x0E95, 0x0E88, 0x071C, 0x06E6, 0x06BE, | |
1989 | 0x033A, 0x015B, 0x033B, 0x06BF, 0x06E7, 0x071D, 0x0E89, 0x0E92, | |
1990 | 0x0E96, 0x0EBC, 0x0F2C, 0x1E6D, 0x1EB0, 0x3E4D, 0x3E8B, 0x7EF2, | |
1991 | 0x7F08, 0x7F97, 0x7FB0, 0xFF9C, 0x7FB2, 0x7F23, 0x7EFA, 0x3F0F, | |
1992 | 0x3EBD, 0x3EAD, 0x1EA0, 0x1E87, 0x0F0A, 0x0F02, 0x0EED, 0x0EE4, | |
1993 | 0x0EC8, 0x0EA0, 0x0E76, 0x071E, 0x06B8, 0x0324, 0x015C, 0x0325, | |
1994 | 0x06B9, 0x071F, 0x0E77, 0x0EA1, 0x0EC9, 0x0EE5, 0x0EEC, 0x0F03, | |
1995 | 0x0F0B, 0x1E84, 0x1EA2, 0x3EB0, 0x3EC4, 0x3F09, 0x7EF7, 0x7F1D, | |
1996 | 0x7FBC, 0x7FCD, 0x7F81, 0x7F50, 0x7F34, 0x3F65, 0x3EED, 0x3E67, | |
1997 | 0x1EDB, 0x1ED2, 0x1E99, 0x1E77, 0x0F21, 0x0F1C, 0x0EE8, 0x0EA8, | |
1998 | 0x0E6E, 0x0716, 0x033C, 0x0178, 0x033D, 0x0717, 0x0E6F, 0x0EAA, | |
1999 | 0x0EEB, 0x0F1E, 0x0F23, 0x1E75, 0x1E9A, 0x1ED4, 0x1EDC, 0x3E66, | |
2000 | 0x3EEE, 0x3F6B, 0x7F35, 0x7F55, 0x7F7A, 0x7FCA, 0x7FB6, 0x7FB8, | |
2001 | 0x7F37, 0x7F1F, 0x3F61, 0x3F37, 0x3F1A, 0x3EB5, 0x3E62, 0x3E5A, | |
2002 | 0x1F1E, 0x1F13, 0x1EF2, 0x1EE6, 0x1EBC, 0x1E91, 0x1E68, 0x070A, | |
2003 | 0x032C, 0x070B, 0x1E69, 0x1E90, 0x1EBD, 0x1EE4, 0x1EF4, 0x1F12, | |
2004 | 0x3E3E, 0x3E59, 0x3E61, 0x3EB6, 0x3F19, 0x3F3B, 0x3F64, 0x7F1C, | |
2005 | 0x7F3D, 0x7FB4, 0x7FB9, 0xFFC5, 0xFFB6, 0xFFAD, 0x7FA4, 0x7F2C, | |
2006 | 0x7F20, 0x7F09, 0x3EF5, 0x3E93, 0x3E82, 0x3E7E, 0x1F02, 0x1EE3, | |
2007 | 0x1ECA, 0x1EAD, 0x1E7C, 0x0EB8, 0x0E8A, 0x0332, 0x0E8B, 0x0EB9, | |
2008 | 0x1E7D, 0x1EAC, 0x1ECD, 0x1EE0, 0x1F03, 0x3E7D, 0x3E81, 0x3E91, | |
2009 | 0x3EF7, 0x7F0C, 0x7F1A, 0x7F2E, 0x7FA6, 0xFFA4, 0xFFB7, 0xFFC4, | |
2010 | 0xFFD4, 0xFFCC, 0x7FC5, 0x7F8A, 0x7F3C, 0x7EFF, 0x3F5E, 0x3F4E, | |
2011 | 0x3F2F, 0x3EFD, 0x3EEF, 0x3EEB, 0x3E92, 0x3E71, 0x3E42, 0x1F09, | |
2012 | 0x1E83, 0x0E82, 0x0348, 0x0E83, 0x1E80, 0x1F06, 0x3E44, 0x3E72, | |
2013 | 0x3E94, 0x3EEC, 0x3EF2, 0x3EFE, 0x3F34, 0x3F4C, 0x3F5F, 0x7EFE, | |
2014 | 0x7F3A, 0x7F86, 0x7FC4, 0xFFD2, 0xFFD5, 0xFFFA, 0xFFCD, 0xFFBA, | |
2015 | 0x7FAB, 0x7F92, 0x7F87, 0x7F63, 0x7F4C, 0x7F03, 0x7EF0, 0x3F42, | |
2016 | 0x3EA1, 0x3E76, 0x3E6A, 0x3E52, 0x1EEE, 0x1EAB, 0x0ED6, 0x06A9, | |
2017 | 0x0ED7, 0x1EAA, 0x1EED, 0x3E53, 0x3E70, 0x3E77, 0x3EA2, 0x3F41, | |
2018 | 0x7EEF, 0x7F00, 0x7F4D, 0x7F60, 0x7F88, 0x7F93, 0x7FAD, 0xFFB8, | |
2019 | 0xFFCB, 0xFFFB, 0xFFFC, 0xFFE1, 0xFFBF, 0x7FBA, 0x7F73, 0x7F6C, | |
2020 | 0x7F57, 0x7EFC, 0x7EDD, 0x3F6A, 0x3F2A, 0x3F25, 0x3EDD, 0x3ED3, | |
2021 | 0x3EC2, 0x3EA7, 0x3E86, 0x0F11, 0x06B2, 0x0F0E, 0x3E8A, 0x3EA5, | |
2022 | 0x3EC0, 0x3ED1, 0x3EDE, 0x3F2C, 0x3F29, 0x3F69, 0x7EDB, 0x7EFD, | |
2023 | 0x7F59, 0x7F6D, 0x7F74, 0x7FC0, 0xFFC3, 0xFFE3, 0xFFFD, 0xFFF0, | |
2024 | 0xFFE9, 0xFFE7, 0xFFC9, 0xFFBD, 0xFFAE, 0x7F71, 0x7F5F, 0x7F42, | |
2025 | 0x7F41, 0x7F30, 0x7F17, 0x7EE4, 0x3ED7, 0x3EC7, 0x3ECB, 0x1EB1, | |
2026 | 0x0EDC, 0x06D2, 0x0EDD, 0x1EB2, 0x3EC6, 0x3EC8, 0x3ED4, 0x7EE3, | |
2027 | 0x7F18, 0x7F2B, 0x7F3F, 0x7F43, 0x7F64, 0x7F6E, 0xFFAB, 0xFFC2, | |
2028 | 0xFFD0, 0xFFE6, 0xFFEF, 0xFFF3, 0xFFF7, 0xFFEB, 0xFFDE, 0xFFDA, | |
2029 | 0xFFB3, 0xFFAC, 0xFFA3, 0x7FC9, 0x7F8F, 0x7F7C, 0x7F79, 0x7F0F, | |
2030 | 0x7F10, 0x3F55, 0x3F45, 0x1F1A, 0x1E95, 0x0F2B, 0x06F1, 0x0F29, | |
2031 | 0x1E97, 0x1F19, 0x3F47, 0x3F57, 0x7F14, 0x7F12, 0x7F78, 0x7F7E, | |
2032 | 0x7F91, 0x7FC7, 0xFFA1, 0xFFA5, 0xFFB2, 0xFFDB, 0xFFDF, 0xFFED, | |
2033 | 0xFFF4, 0x004C, | |
2034 | ]; | |
2035 | const CLV_MVY_3_SYMS: &[u16] = &[ | |
2036 | 0xEEEE, 0xEFEE, 0xF0EE, 0xF1EE, 0xF2EE, 0xF3EE, 0xF4EE, 0xF5EE, | |
2037 | 0xF6EE, 0xF7EE, 0xF8EE, 0xF9EE, 0xFAEE, 0xFBEE, 0xFCEE, 0xFDEE, | |
2038 | 0xFEEE, 0xFFEE, 0x00EE, 0x01EE, 0x02EE, 0x03EE, 0x04EE, 0x05EE, | |
2039 | 0x06EE, 0x07EE, 0x08EE, 0x09EE, 0x0AEE, 0x0BEE, 0x0CEE, 0x0DEE, | |
2040 | 0x0EEE, 0x0FEE, 0x10EE, 0x11EE, 0x12EE, 0xEEEF, 0xEFEF, 0xF0EF, | |
2041 | 0xF1EF, 0xF2EF, 0xF3EF, 0xF4EF, 0xF5EF, 0xF6EF, 0xF7EF, 0xF8EF, | |
2042 | 0xF9EF, 0xFAEF, 0xFBEF, 0xFCEF, 0xFDEF, 0xFEEF, 0xFFEF, 0x00EF, | |
2043 | 0x01EF, 0x02EF, 0x03EF, 0x04EF, 0x05EF, 0x06EF, 0x07EF, 0x08EF, | |
2044 | 0x09EF, 0x0AEF, 0x0BEF, 0x0CEF, 0x0DEF, 0x0EEF, 0x0FEF, 0x10EF, | |
2045 | 0x11EF, 0x12EF, 0xEEF0, 0xEFF0, 0xF0F0, 0xF1F0, 0xF2F0, 0xF3F0, | |
2046 | 0xF4F0, 0xF5F0, 0xF6F0, 0xF7F0, 0xF8F0, 0xF9F0, 0xFAF0, 0xFBF0, | |
2047 | 0xFCF0, 0xFDF0, 0xFEF0, 0xFFF0, 0x00F0, 0x01F0, 0x02F0, 0x03F0, | |
2048 | 0x04F0, 0x05F0, 0x06F0, 0x07F0, 0x08F0, 0x09F0, 0x0AF0, 0x0BF0, | |
2049 | 0x0CF0, 0x0DF0, 0x0EF0, 0x0FF0, 0x10F0, 0x11F0, 0x12F0, 0xEEF1, | |
2050 | 0xEFF1, 0xF0F1, 0xF1F1, 0xF2F1, 0xF3F1, 0xF4F1, 0xF5F1, 0xF6F1, | |
2051 | 0xF7F1, 0xF8F1, 0xF9F1, 0xFAF1, 0xFBF1, 0xFCF1, 0xFDF1, 0xFEF1, | |
2052 | 0xFFF1, 0x00F1, 0x01F1, 0x02F1, 0x03F1, 0x04F1, 0x05F1, 0x06F1, | |
2053 | 0x07F1, 0x08F1, 0x09F1, 0x0AF1, 0x0BF1, 0x0CF1, 0x0DF1, 0x0EF1, | |
2054 | 0x0FF1, 0x10F1, 0x11F1, 0x12F1, 0xEEF2, 0xEFF2, 0xF0F2, 0xF1F2, | |
2055 | 0xF2F2, 0xF3F2, 0xF4F2, 0xF5F2, 0xF6F2, 0xF7F2, 0xF8F2, 0xF9F2, | |
2056 | 0xFAF2, 0xFBF2, 0xFCF2, 0xFDF2, 0xFEF2, 0xFFF2, 0x00F2, 0x01F2, | |
2057 | 0x02F2, 0x03F2, 0x04F2, 0x05F2, 0x06F2, 0x07F2, 0x08F2, 0x09F2, | |
2058 | 0x0AF2, 0x0BF2, 0x0CF2, 0x0DF2, 0x0EF2, 0x0FF2, 0x10F2, 0x11F2, | |
2059 | 0x12F2, 0xEEF3, 0xEFF3, 0xF0F3, 0xF1F3, 0xF2F3, 0xF3F3, 0xF4F3, | |
2060 | 0xF5F3, 0xF6F3, 0xF7F3, 0xF8F3, 0xF9F3, 0xFAF3, 0xFBF3, 0xFCF3, | |
2061 | 0xFDF3, 0xFEF3, 0xFFF3, 0x00F3, 0x01F3, 0x02F3, 0x03F3, 0x04F3, | |
2062 | 0x05F3, 0x06F3, 0x07F3, 0x08F3, 0x09F3, 0x0AF3, 0x0BF3, 0x0CF3, | |
2063 | 0x0DF3, 0x0EF3, 0x0FF3, 0x10F3, 0x11F3, 0x12F3, 0xEEF4, 0xEFF4, | |
2064 | 0xF0F4, 0xF1F4, 0xF2F4, 0xF3F4, 0xF4F4, 0xF5F4, 0xF6F4, 0xF7F4, | |
2065 | 0xF8F4, 0xF9F4, 0xFAF4, 0xFBF4, 0xFCF4, 0xFDF4, 0xFEF4, 0xFFF4, | |
2066 | 0x00F4, 0x01F4, 0x02F4, 0x03F4, 0x04F4, 0x05F4, 0x06F4, 0x07F4, | |
2067 | 0x08F4, 0x09F4, 0x0AF4, 0x0BF4, 0x0CF4, 0x0DF4, 0x0EF4, 0x0FF4, | |
2068 | 0x10F4, 0x11F4, 0x12F4, 0xEEF5, 0xEFF5, 0xF0F5, 0xF1F5, 0xF2F5, | |
2069 | 0xF3F5, 0xF4F5, 0xF5F5, 0xF6F5, 0xF7F5, 0xF8F5, 0xF9F5, 0xFAF5, | |
2070 | 0xFBF5, 0xFCF5, 0xFDF5, 0xFEF5, 0xFFF5, 0x00F5, 0x01F5, 0x02F5, | |
2071 | 0x03F5, 0x04F5, 0x05F5, 0x06F5, 0x07F5, 0x08F5, 0x09F5, 0x0AF5, | |
2072 | 0x0BF5, 0x0CF5, 0x0DF5, 0x0EF5, 0x0FF5, 0x10F5, 0x11F5, 0x12F5, | |
2073 | 0xEEF6, 0xEFF6, 0xF0F6, 0xF1F6, 0xF2F6, 0xF3F6, 0xF4F6, 0xF5F6, | |
2074 | 0xF6F6, 0xF7F6, 0xF8F6, 0xF9F6, 0xFAF6, 0xFBF6, 0xFCF6, 0xFDF6, | |
2075 | 0xFEF6, 0xFFF6, 0x00F6, 0x01F6, 0x02F6, 0x03F6, 0x04F6, 0x05F6, | |
2076 | 0x06F6, 0x07F6, 0x08F6, 0x09F6, 0x0AF6, 0x0BF6, 0x0CF6, 0x0DF6, | |
2077 | 0x0EF6, 0x0FF6, 0x10F6, 0x11F6, 0x12F6, 0xEEF7, 0xEFF7, 0xF0F7, | |
2078 | 0xF1F7, 0xF2F7, 0xF3F7, 0xF4F7, 0xF5F7, 0xF6F7, 0xF7F7, 0xF8F7, | |
2079 | 0xF9F7, 0xFAF7, 0xFBF7, 0xFCF7, 0xFDF7, 0xFEF7, 0xFFF7, 0x00F7, | |
2080 | 0x01F7, 0x02F7, 0x03F7, 0x04F7, 0x05F7, 0x06F7, 0x07F7, 0x08F7, | |
2081 | 0x09F7, 0x0AF7, 0x0BF7, 0x0CF7, 0x0DF7, 0x0EF7, 0x0FF7, 0x10F7, | |
2082 | 0x11F7, 0x12F7, 0xEEF8, 0xEFF8, 0xF0F8, 0xF1F8, 0xF2F8, 0xF3F8, | |
2083 | 0xF4F8, 0xF5F8, 0xF6F8, 0xF7F8, 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, | |
2084 | 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, 0x00F8, 0x01F8, 0x02F8, 0x03F8, | |
2085 | 0x04F8, 0x05F8, 0x06F8, 0x07F8, 0x08F8, 0x09F8, 0x0AF8, 0x0BF8, | |
2086 | 0x0CF8, 0x0DF8, 0x0EF8, 0x0FF8, 0x10F8, 0x11F8, 0x12F8, 0xEEF9, | |
2087 | 0xEFF9, 0xF0F9, 0xF1F9, 0xF2F9, 0xF3F9, 0xF4F9, 0xF5F9, 0xF6F9, | |
2088 | 0xF7F9, 0xF8F9, 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, | |
2089 | 0xFFF9, 0x00F9, 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, | |
2090 | 0x07F9, 0x08F9, 0x09F9, 0x0AF9, 0x0BF9, 0x0CF9, 0x0DF9, 0x0EF9, | |
2091 | 0x0FF9, 0x10F9, 0x11F9, 0x12F9, 0xEEFA, 0xEFFA, 0xF0FA, 0xF1FA, | |
2092 | 0xF2FA, 0xF3FA, 0xF4FA, 0xF5FA, 0xF6FA, 0xF7FA, 0xF8FA, 0xF9FA, | |
2093 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
2094 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0x08FA, 0x09FA, | |
2095 | 0x0AFA, 0x0BFA, 0x0CFA, 0x0DFA, 0x0EFA, 0x0FFA, 0x10FA, 0x11FA, | |
2096 | 0x12FA, 0xEEFB, 0xEFFB, 0xF0FB, 0xF1FB, 0xF2FB, 0xF3FB, 0xF4FB, | |
2097 | 0xF5FB, 0xF6FB, 0xF7FB, 0xF8FB, 0xF9FB, 0xFAFB, 0xFBFB, 0xFCFB, | |
2098 | 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, 0x03FB, 0x04FB, | |
2099 | 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0x09FB, 0x0AFB, 0x0BFB, 0x0CFB, | |
2100 | 0x0DFB, 0x0EFB, 0x0FFB, 0x10FB, 0x11FB, 0x12FB, 0xEEFC, 0xEFFC, | |
2101 | 0xF0FC, 0xF1FC, 0xF2FC, 0xF3FC, 0xF4FC, 0xF5FC, 0xF6FC, 0xF7FC, | |
2102 | 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, | |
2103 | 0x00FC, 0x01FC, 0x02FC, 0x03FC, 0x04FC, 0x05FC, 0x06FC, 0x07FC, | |
2104 | 0x08FC, 0x09FC, 0x0AFC, 0x0BFC, 0x0CFC, 0x0DFC, 0x0EFC, 0x0FFC, | |
2105 | 0x10FC, 0x11FC, 0x12FC, 0xEEFD, 0xEFFD, 0xF0FD, 0xF1FD, 0xF2FD, | |
2106 | 0xF3FD, 0xF4FD, 0xF5FD, 0xF6FD, 0xF7FD, 0xF8FD, 0xF9FD, 0xFAFD, | |
2107 | 0xFBFD, 0xFCFD, 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, | |
2108 | 0x03FD, 0x04FD, 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0x09FD, 0x0AFD, | |
2109 | 0x0BFD, 0x0CFD, 0x0DFD, 0x0EFD, 0x0FFD, 0x10FD, 0x11FD, 0x12FD, | |
2110 | 0xEEFE, 0xEFFE, 0xF0FE, 0xF1FE, 0xF2FE, 0xF3FE, 0xF4FE, 0xF5FE, | |
2111 | 0xF6FE, 0xF7FE, 0xF8FE, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
2112 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
2113 | 0x06FE, 0x07FE, 0x08FE, 0x09FE, 0x0AFE, 0x0BFE, 0x0CFE, 0x0DFE, | |
2114 | 0x0EFE, 0x0FFE, 0x10FE, 0x11FE, 0x12FE, 0xEEFF, 0xEFFF, 0xF0FF, | |
2115 | 0xF1FF, 0xF2FF, 0xF3FF, 0xF4FF, 0xF5FF, 0xF6FF, 0xF7FF, 0xF8FF, | |
2116 | 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, 0xFFFF, 0x00FF, | |
2117 | 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, 0x07FF, 0x08FF, | |
2118 | 0x09FF, 0x0AFF, 0x0BFF, 0x0CFF, 0x0DFF, 0x0EFF, 0x0FFF, 0x10FF, | |
2119 | 0x11FF, 0x12FF, 0xEE00, 0xEF00, 0xF000, 0xF100, 0xF200, 0xF300, | |
2120 | 0xF400, 0xF500, 0xF600, 0xF700, 0xF800, 0xF900, 0xFA00, 0xFB00, | |
2121 | 0xFC00, 0xFD00, 0xFE00, 0xFF00, 0x0000, 0x0100, 0x0200, 0x0300, | |
2122 | 0x0400, 0x0500, 0x0600, 0x0700, 0x0800, 0x0900, 0x0A00, 0x0B00, | |
2123 | 0x0C00, 0x0D00, 0x0E00, 0x0F00, 0x1000, 0x1100, 0x1200, 0xEE01, | |
2124 | 0xEF01, 0xF001, 0xF101, 0xF201, 0xF301, 0xF401, 0xF501, 0xF601, | |
2125 | 0xF701, 0xF801, 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, | |
2126 | 0xFF01, 0x0001, 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, | |
2127 | 0x0701, 0x0801, 0x0901, 0x0A01, 0x0B01, 0x0C01, 0x0D01, 0x0E01, | |
2128 | 0x0F01, 0x1001, 0x1101, 0x1201, 0xEE02, 0xEF02, 0xF002, 0xF102, | |
2129 | 0xF202, 0xF302, 0xF402, 0xF502, 0xF602, 0xF702, 0xF802, 0xF902, | |
2130 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
2131 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0x0802, 0x0902, | |
2132 | 0x0A02, 0x0B02, 0x0C02, 0x0D02, 0x0E02, 0x0F02, 0x1002, 0x1102, | |
2133 | 0x1202, 0xEE03, 0xEF03, 0xF003, 0xF103, 0xF203, 0xF303, 0xF403, | |
2134 | 0xF503, 0xF603, 0xF703, 0xF803, 0xF903, 0xFA03, 0xFB03, 0xFC03, | |
2135 | 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, 0x0303, 0x0403, | |
2136 | 0x0503, 0x0603, 0x0703, 0x0803, 0x0903, 0x0A03, 0x0B03, 0x0C03, | |
2137 | 0x0D03, 0x0E03, 0x0F03, 0x1003, 0x1103, 0x1203, 0xEE04, 0xEF04, | |
2138 | 0xF004, 0xF104, 0xF204, 0xF304, 0xF404, 0xF504, 0xF604, 0xF704, | |
2139 | 0xF804, 0xF904, 0xFA04, 0xFB04, 0xFC04, 0xFD04, 0xFE04, 0xFF04, | |
2140 | 0x0004, 0x0104, 0x0204, 0x0304, 0x0404, 0x0504, 0x0604, 0x0704, | |
2141 | 0x0804, 0x0904, 0x0A04, 0x0B04, 0x0C04, 0x0D04, 0x0E04, 0x0F04, | |
2142 | 0x1004, 0x1104, 0x1204, 0xEE05, 0xEF05, 0xF005, 0xF105, 0xF205, | |
2143 | 0xF305, 0xF405, 0xF505, 0xF605, 0xF705, 0xF805, 0xF905, 0xFA05, | |
2144 | 0xFB05, 0xFC05, 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, | |
2145 | 0x0305, 0x0405, 0x0505, 0x0605, 0x0705, 0x0805, 0x0905, 0x0A05, | |
2146 | 0x0B05, 0x0C05, 0x0D05, 0x0E05, 0x0F05, 0x1005, 0x1105, 0x1205, | |
2147 | 0xEE06, 0xEF06, 0xF006, 0xF106, 0xF206, 0xF306, 0xF406, 0xF506, | |
2148 | 0xF606, 0xF706, 0xF806, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
2149 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
2150 | 0x0606, 0x0706, 0x0806, 0x0906, 0x0A06, 0x0B06, 0x0C06, 0x0D06, | |
2151 | 0x0E06, 0x0F06, 0x1006, 0x1106, 0x1206, 0xEE07, 0xEF07, 0xF007, | |
2152 | 0xF107, 0xF207, 0xF307, 0xF407, 0xF507, 0xF607, 0xF707, 0xF807, | |
2153 | 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, 0xFF07, 0x0007, | |
2154 | 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, 0x0707, 0x0807, | |
2155 | 0x0907, 0x0A07, 0x0B07, 0x0C07, 0x0D07, 0x0E07, 0x0F07, 0x1007, | |
2156 | 0x1107, 0x1207, 0xEE08, 0xEF08, 0xF008, 0xF108, 0xF208, 0xF308, | |
2157 | 0xF408, 0xF508, 0xF608, 0xF708, 0xF808, 0xF908, 0xFA08, 0xFB08, | |
2158 | 0xFC08, 0xFD08, 0xFE08, 0xFF08, 0x0008, 0x0108, 0x0208, 0x0308, | |
2159 | 0x0408, 0x0508, 0x0608, 0x0708, 0x0808, 0x0908, 0x0A08, 0x0B08, | |
2160 | 0x0C08, 0x0D08, 0x0E08, 0x0F08, 0x1008, 0x1108, 0x1208, 0xEE09, | |
2161 | 0xEF09, 0xF009, 0xF109, 0xF209, 0xF309, 0xF409, 0xF509, 0xF609, | |
2162 | 0xF709, 0xF809, 0xF909, 0xFA09, 0xFB09, 0xFC09, 0xFD09, 0xFE09, | |
2163 | 0xFF09, 0x0009, 0x0109, 0x0209, 0x0309, 0x0409, 0x0509, 0x0609, | |
2164 | 0x0709, 0x0809, 0x0909, 0x0A09, 0x0B09, 0x0C09, 0x0D09, 0x0E09, | |
2165 | 0x0F09, 0x1009, 0x1109, 0x1209, 0xEE0A, 0xEF0A, 0xF00A, 0xF10A, | |
2166 | 0xF20A, 0xF30A, 0xF40A, 0xF50A, 0xF60A, 0xF70A, 0xF80A, 0xF90A, | |
2167 | 0xFA0A, 0xFB0A, 0xFC0A, 0xFD0A, 0xFE0A, 0xFF0A, 0x000A, 0x010A, | |
2168 | 0x020A, 0x030A, 0x040A, 0x050A, 0x060A, 0x070A, 0x080A, 0x090A, | |
2169 | 0x0A0A, 0x0B0A, 0x0C0A, 0x0D0A, 0x0E0A, 0x0F0A, 0x100A, 0x110A, | |
2170 | 0x120A, 0xEE0B, 0xEF0B, 0xF00B, 0xF10B, 0xF20B, 0xF30B, 0xF40B, | |
2171 | 0xF50B, 0xF60B, 0xF70B, 0xF80B, 0xF90B, 0xFA0B, 0xFB0B, 0xFC0B, | |
2172 | 0xFD0B, 0xFE0B, 0xFF0B, 0x000B, 0x010B, 0x020B, 0x030B, 0x040B, | |
2173 | 0x050B, 0x060B, 0x070B, 0x080B, 0x090B, 0x0A0B, 0x0B0B, 0x0C0B, | |
2174 | 0x0D0B, 0x0E0B, 0x0F0B, 0x100B, 0x110B, 0x120B, 0xEE0C, 0xEF0C, | |
2175 | 0xF00C, 0xF10C, 0xF20C, 0xF30C, 0xF40C, 0xF50C, 0xF60C, 0xF70C, | |
2176 | 0xF80C, 0xF90C, 0xFA0C, 0xFB0C, 0xFC0C, 0xFD0C, 0xFE0C, 0xFF0C, | |
2177 | 0x000C, 0x010C, 0x020C, 0x030C, 0x040C, 0x050C, 0x060C, 0x070C, | |
2178 | 0x080C, 0x090C, 0x0A0C, 0x0B0C, 0x0C0C, 0x0D0C, 0x0E0C, 0x0F0C, | |
2179 | 0x100C, 0x110C, 0x120C, 0xEE0D, 0xEF0D, 0xF00D, 0xF10D, 0xF20D, | |
2180 | 0xF30D, 0xF40D, 0xF50D, 0xF60D, 0xF70D, 0xF80D, 0xF90D, 0xFA0D, | |
2181 | 0xFB0D, 0xFC0D, 0xFD0D, 0xFE0D, 0xFF0D, 0x000D, 0x010D, 0x020D, | |
2182 | 0x030D, 0x040D, 0x050D, 0x060D, 0x070D, 0x080D, 0x090D, 0x0A0D, | |
2183 | 0x0B0D, 0x0C0D, 0x0D0D, 0x0E0D, 0x0F0D, 0x100D, 0x110D, 0x120D, | |
2184 | 0xEE0E, 0xEF0E, 0xF00E, 0xF10E, 0xF20E, 0xF30E, 0xF40E, 0xF50E, | |
2185 | 0xF60E, 0xF70E, 0xF80E, 0xF90E, 0xFA0E, 0xFB0E, 0xFC0E, 0xFD0E, | |
2186 | 0xFE0E, 0xFF0E, 0x000E, 0x010E, 0x020E, 0x030E, 0x040E, 0x050E, | |
2187 | 0x060E, 0x070E, 0x080E, 0x090E, 0x0A0E, 0x0B0E, 0x0C0E, 0x0D0E, | |
2188 | 0x0E0E, 0x0F0E, 0x100E, 0x110E, 0x120E, 0xEE0F, 0xEF0F, 0xF00F, | |
2189 | 0xF10F, 0xF20F, 0xF30F, 0xF40F, 0xF50F, 0xF60F, 0xF70F, 0xF80F, | |
2190 | 0xF90F, 0xFA0F, 0xFB0F, 0xFC0F, 0xFD0F, 0xFE0F, 0xFF0F, 0x000F, | |
2191 | 0x010F, 0x020F, 0x030F, 0x040F, 0x050F, 0x060F, 0x070F, 0x080F, | |
2192 | 0x090F, 0x0A0F, 0x0B0F, 0x0C0F, 0x0D0F, 0x0E0F, 0x0F0F, 0x100F, | |
2193 | 0x110F, 0x120F, 0xEE10, 0xEF10, 0xF010, 0xF110, 0xF210, 0xF310, | |
2194 | 0xF410, 0xF510, 0xF610, 0xF710, 0xF810, 0xF910, 0xFA10, 0xFB10, | |
2195 | 0xFC10, 0xFD10, 0xFE10, 0xFF10, 0x0010, 0x0110, 0x0210, 0x0310, | |
2196 | 0x0410, 0x0510, 0x0610, 0x0710, 0x0810, 0x0910, 0x0A10, 0x0B10, | |
2197 | 0x0C10, 0x0D10, 0x0E10, 0x0F10, 0x1010, 0x1110, 0x1210, 0xEE11, | |
2198 | 0xEF11, 0xF011, 0xF111, 0xF211, 0xF311, 0xF411, 0xF511, 0xF611, | |
2199 | 0xF711, 0xF811, 0xF911, 0xFA11, 0xFB11, 0xFC11, 0xFD11, 0xFE11, | |
2200 | 0xFF11, 0x0011, 0x0111, 0x0211, 0x0311, 0x0411, 0x0511, 0x0611, | |
2201 | 0x0711, 0x0811, 0x0911, 0x0A11, 0x0B11, 0x0C11, 0x0D11, 0x0E11, | |
2202 | 0x0F11, 0x1011, 0x1111, 0x1211, 0xEE12, 0xEF12, 0xF012, 0xF112, | |
2203 | 0xF212, 0xF312, 0xF412, 0xF512, 0xF612, 0xF712, 0xF812, 0xF912, | |
2204 | 0xFA12, 0xFB12, 0xFC12, 0xFD12, 0xFE12, 0xFF12, 0x0012, 0x0112, | |
2205 | 0x0212, 0x0312, 0x0412, 0x0512, 0x0612, 0x0712, 0x0812, 0x0912, | |
2206 | 0x0A12, 0x0B12, 0x0C12, 0x0D12, 0x0E12, 0x0F12, 0x1012, 0x1112, | |
2207 | 0x1212, 0x1313, | |
2208 | ]; | |
2209 | const CLV_MVY_3_ESCAPE: u16 = 0x1313; | |
2210 | ||
2211 | const CLV_BIASY_3_BITS: &[u8] = &[ | |
2212 | 16, 16, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 14, 14, | |
2213 | 14, 14, 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, 11, 10, 10, 10, | |
2214 | 10, 9, 9, 9, 9, 8, 8, 7, 7, 6, 5, 4, 4, 2, 2, 3, | |
2215 | 4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, | |
2216 | 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 14, | |
2217 | 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 15, | |
2218 | ]; | |
2219 | const CLV_BIASY_3_CODES: &[u16] = &[ | |
2220 | 0xFFFF, 0xFFFC, 0xFFFA, 0x7FFC, 0x7FF9, 0x7FF6, 0x7FF4, 0x7FF2, | |
2221 | 0x7FF1, 0x7FEF, 0x7FEC, 0x7FEB, 0x7FE9, 0x3FF3, 0x3FF0, 0x3FEE, | |
2222 | 0x3FED, 0x3FEA, 0x1FF3, 0x1FF2, 0x1FF0, 0x1FEE, 0x0FF4, 0x0FF3, | |
2223 | 0x0FF1, 0x07F7, 0x07F5, 0x07F3, 0x07F1, 0x03F7, 0x03F4, 0x03F2, | |
2224 | 0x03F0, 0x01F6, 0x01F4, 0x01F2, 0x01F0, 0x00F6, 0x00F4, 0x0078, | |
2225 | 0x0076, 0x0039, 0x001B, 0x000C, 0x000A, 0x0001, 0x0000, 0x0004, | |
2226 | 0x000B, 0x001A, 0x0038, 0x003A, 0x0077, 0x0079, 0x00F5, 0x00F7, | |
2227 | 0x01F1, 0x01F3, 0x01F5, 0x01F7, 0x03F1, 0x03F3, 0x03F5, 0x03F6, | |
2228 | 0x07F0, 0x07F2, 0x07F4, 0x07F6, 0x0FF0, 0x0FF2, 0x0FF5, 0x0FF6, | |
2229 | 0x1FEF, 0x1FF1, 0x1FF4, 0x3FEB, 0x3FEC, 0x3FEF, 0x3FF1, 0x3FF2, | |
2230 | 0x7FE8, 0x7FEA, 0x7FED, 0x7FEE, 0x7FF0, 0x7FF3, 0x7FF5, 0x7FF7, | |
2231 | 0x7FFA, 0x7FFB, 0xFFFB, 0xFFFD, 0xFFFE, 0x7FF8, | |
2232 | ]; | |
2233 | const CLV_BIASY_3_SYMS: &[u16] = &[ | |
2234 | 0xFF48, 0xFF4C, 0xFF50, 0xFF54, 0xFF58, 0xFF5C, 0xFF60, 0xFF64, | |
2235 | 0xFF68, 0xFF6C, 0xFF70, 0xFF74, 0xFF78, 0xFF7C, 0xFF80, 0xFF84, | |
2236 | 0xFF88, 0xFF8C, 0xFF90, 0xFF94, 0xFF98, 0xFF9C, 0xFFA0, 0xFFA4, | |
2237 | 0xFFA8, 0xFFAC, 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, | |
2238 | 0xFFC8, 0xFFCC, 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, | |
2239 | 0xFFE8, 0xFFEC, 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, 0x0000, 0x0004, | |
2240 | 0x0008, 0x000C, 0x0010, 0x0014, 0x0018, 0x001C, 0x0020, 0x0024, | |
2241 | 0x0028, 0x002C, 0x0030, 0x0034, 0x0038, 0x003C, 0x0040, 0x0044, | |
2242 | 0x0048, 0x004C, 0x0050, 0x0054, 0x0058, 0x005C, 0x0060, 0x0064, | |
2243 | 0x0068, 0x006C, 0x0070, 0x0074, 0x0078, 0x007C, 0x0080, 0x0084, | |
2244 | 0x0088, 0x008C, 0x0090, 0x0094, 0x0098, 0x009C, 0x00A0, 0x00A4, | |
2245 | 0x00A8, 0x00AC, 0x00B0, 0x00B4, 0x00B8, 0x0100, | |
2246 | ]; | |
2247 | ||
2248 | const CLV_FLAGSU_0_BITS: &[u8] = &[ | |
2249 | 1, 4, 4, 4, 5, 5, 9, 7, 5, 9, 4, 7, 4, 8, 7, 4, | |
2250 | ]; | |
2251 | const CLV_FLAGSU_0_CODES: &[u16] = &[ | |
2252 | 0x0000, 0x000B, 0x000D, 0x0009, 0x001D, 0x001C, 0x01FF, 0x007D, | |
2253 | 0x001E, 0x01FE, 0x000C, 0x007C, 0x000A, 0x00FE, 0x007E, 0x0008, | |
2254 | ]; | |
2255 | ||
2256 | const CLV_MVU_1_BITS: &[u8] = &[ | |
2257 | 16, 14, 14, 14, 13, 12, 12, 10, 12, 12, 13, 14, 14, 14, 16, 15, | |
2258 | 13, 13, 12, 12, 11, 11, 7, 11, 11, 12, 12, 13, 13, 15, 16, 16, | |
2259 | 16, 13, 12, 10, 10, 6, 10, 10, 12, 13, 16, 16, 16, 14, 14, 11, | |
2260 | 11, 11, 11, 9, 7, 9, 11, 11, 11, 11, 14, 14, 15, 13, 13, 12, | |
2261 | 9, 8, 8, 4, 8, 8, 9, 12, 13, 13, 15, 14, 14, 11, 11, 10, | |
2262 | 9, 8, 4, 8, 9, 10, 11, 12, 14, 14, 12, 12, 11, 10, 10, 8, | |
2263 | 6, 3, 6, 8, 10, 10, 11, 12, 12, 11, 10, 9, 6, 6, 6, 5, | |
2264 | 4, 5, 6, 6, 6, 9, 10, 11, 12, 12, 11, 10, 10, 8, 6, 3, | |
2265 | 6, 7, 10, 10, 11, 12, 12, 14, 14, 11, 11, 10, 9, 8, 4, 8, | |
2266 | 9, 10, 11, 11, 14, 14, 15, 13, 13, 12, 9, 8, 8, 4, 8, 8, | |
2267 | 9, 12, 13, 13, 15, 14, 14, 11, 11, 11, 11, 9, 7, 9, 11, 11, | |
2268 | 11, 11, 14, 14, 16, 16, 16, 13, 12, 10, 10, 6, 10, 10, 12, 13, | |
2269 | 16, 16, 16, 15, 13, 13, 12, 12, 11, 11, 7, 11, 11, 12, 12, 13, | |
2270 | 13, 15, 16, 14, 14, 14, 13, 12, 12, 10, 12, 12, 13, 14, 14, 14, | |
2271 | 16, 7, | |
2272 | ]; | |
2273 | const CLV_MVU_1_CODES: &[u16] = &[ | |
2274 | 0xFFFC, 0x3FED, 0x3FE5, 0x3FE3, 0x1FD9, 0x0FD9, 0x0FD6, 0x03CE, | |
2275 | 0x0FD3, 0x0FD8, 0x1FD6, 0x3FE0, 0x3FE8, 0x3FEC, 0xFFFE, 0x7FF3, | |
2276 | 0x1FE7, 0x1FDA, 0x0FCF, 0x0FCC, 0x07DD, 0x07CC, 0x006B, 0x07CD, | |
2277 | 0x07DE, 0x0FCE, 0x0FD2, 0x1FDD, 0x1FEC, 0x7FF0, 0xFFF6, 0xFFFA, | |
2278 | 0xFFF2, 0x1FDE, 0x0FDB, 0x03D8, 0x03CA, 0x002E, 0x03CB, 0x03D9, | |
2279 | 0x0FDC, 0x1FDF, 0xFFF3, 0xFFF9, 0xFFF5, 0x3FF3, 0x3FDD, 0x07DA, | |
2280 | 0x07D2, 0x07CA, 0x07C2, 0x01DE, 0x0069, 0x01DF, 0x07C3, 0x07CB, | |
2281 | 0x07D3, 0x07DB, 0x3FDF, 0x3FF6, 0x7FF7, 0x1FED, 0x1FE5, 0x0FDF, | |
2282 | 0x01D8, 0x00E3, 0x00DF, 0x0007, 0x00E0, 0x00E4, 0x01D9, 0x0FE0, | |
2283 | 0x1FE3, 0x1FE9, 0x7FF4, 0x3FF5, 0x3FE7, 0x07E4, 0x07C6, 0x03D2, | |
2284 | 0x01E2, 0x00E9, 0x0006, 0x00EA, 0x01E3, 0x03D3, 0x07C7, 0x0FCA, | |
2285 | 0x3FE9, 0x3FF0, 0x0FE8, 0x0FE5, 0x07D5, 0x03DD, 0x03D5, 0x00DC, | |
2286 | 0x002B, 0x0001, 0x002C, 0x00DD, 0x03D6, 0x03DE, 0x07D6, 0x0FE4, | |
2287 | 0x0FE9, 0x07E0, 0x03C8, 0x01D6, 0x0032, 0x0030, 0x0028, 0x0012, | |
2288 | 0x0004, 0x0013, 0x0029, 0x0031, 0x0033, 0x01D7, 0x03C9, 0x07E1, | |
2289 | 0x0FEA, 0x0FE6, 0x07D7, 0x03DF, 0x03D7, 0x00DE, 0x002D, 0x0000, | |
2290 | 0x002A, 0x006D, 0x03D4, 0x03DC, 0x07D4, 0x0FE3, 0x0FE7, 0x3FF1, | |
2291 | 0x3FE4, 0x07E2, 0x07C4, 0x03D0, 0x01E0, 0x00E7, 0x0005, 0x00E8, | |
2292 | 0x01E1, 0x03D1, 0x07C5, 0x07E3, 0x3FEA, 0x3FF7, 0x7FF6, 0x1FE6, | |
2293 | 0x1FE4, 0x0FE1, 0x01DA, 0x00E5, 0x00E1, 0x0008, 0x00E2, 0x00E6, | |
2294 | 0x01DB, 0x0FE2, 0x1FE2, 0x1FEB, 0x7FF5, 0x3FF4, 0x3FDC, 0x07D9, | |
2295 | 0x07D0, 0x07C8, 0x07C0, 0x01DC, 0x0068, 0x01DD, 0x07C1, 0x07C9, | |
2296 | 0x07D1, 0x07D8, 0x3FDE, 0x3FF2, 0xFFFB, 0xFFF4, 0xFFF0, 0x1FE1, | |
2297 | 0x0FDD, 0x03DA, 0x03CC, 0x002F, 0x03CD, 0x03DB, 0x0FDE, 0x1FE0, | |
2298 | 0xFFF1, 0xFFF7, 0xFFF8, 0x7FF2, 0x1FEA, 0x1FDC, 0x0FD1, 0x0FCD, | |
2299 | 0x07DC, 0x07CF, 0x006C, 0x07CE, 0x07DF, 0x0FCB, 0x0FD0, 0x1FDB, | |
2300 | 0x1FE8, 0x7FF1, 0xFFFD, 0x3FEE, 0x3FEB, 0x3FE1, 0x1FD7, 0x0FD7, | |
2301 | 0x0FD5, 0x03CF, 0x0FD4, 0x0FDA, 0x1FD8, 0x3FE2, 0x3FE6, 0x3FEF, | |
2302 | 0xFFFF, 0x006A, | |
2303 | ]; | |
2304 | const CLV_MVU_1_SYMS: &[u16] = &[ | |
2305 | 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, 0xFFF9, 0x00F9, | |
2306 | 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, 0x07F9, 0xF9FA, | |
2307 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
2308 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0xF9FB, 0xFAFB, | |
2309 | 0xFBFB, 0xFCFB, 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, | |
2310 | 0x03FB, 0x04FB, 0x05FB, 0x06FB, 0x07FB, 0xF9FC, 0xFAFC, 0xFBFC, | |
2311 | 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, 0x00FC, 0x01FC, 0x02FC, 0x03FC, | |
2312 | 0x04FC, 0x05FC, 0x06FC, 0x07FC, 0xF9FD, 0xFAFD, 0xFBFD, 0xFCFD, | |
2313 | 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, 0x03FD, 0x04FD, | |
2314 | 0x05FD, 0x06FD, 0x07FD, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
2315 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
2316 | 0x06FE, 0x07FE, 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, | |
2317 | 0xFFFF, 0x00FF, 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, | |
2318 | 0x07FF, 0xF900, 0xFA00, 0xFB00, 0xFC00, 0xFD00, 0xFE00, 0xFF00, | |
2319 | 0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700, | |
2320 | 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, 0xFF01, 0x0001, | |
2321 | 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, 0x0701, 0xF902, | |
2322 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
2323 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0xF903, 0xFA03, | |
2324 | 0xFB03, 0xFC03, 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, | |
2325 | 0x0303, 0x0403, 0x0503, 0x0603, 0x0703, 0xF904, 0xFA04, 0xFB04, | |
2326 | 0xFC04, 0xFD04, 0xFE04, 0xFF04, 0x0004, 0x0104, 0x0204, 0x0304, | |
2327 | 0x0404, 0x0504, 0x0604, 0x0704, 0xF905, 0xFA05, 0xFB05, 0xFC05, | |
2328 | 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, 0x0305, 0x0405, | |
2329 | 0x0505, 0x0605, 0x0705, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
2330 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
2331 | 0x0606, 0x0706, 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, | |
2332 | 0xFF07, 0x0007, 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, | |
2333 | 0x0707, 0x0808, | |
2334 | ]; | |
2335 | const CLV_MVU_1_ESCAPE: u16 = 0x0808; | |
2336 | ||
2337 | const CLV_BIASU_1_BITS: &[u8] = &[ | |
2338 | 16, 15, 14, 13, 13, 13, 12, 12, 12, 12, 11, 10, 10, 9, 9, 8, | |
2339 | 7, 6, 5, 2, 1, 3, 5, 7, 7, 8, 9, 9, 10, 10, 11, 12, | |
2340 | 12, 12, 12, 13, 13, 13, 14, 15, 15, 16, | |
2341 | ]; | |
2342 | const CLV_BIASU_1_CODES: &[u16] = &[ | |
2343 | 0xFFFE, 0x7FFC, 0x3FFC, 0x1FFC, 0x1FFA, 0x1FF9, 0x0FFA, 0x0FF7, | |
2344 | 0x0FF8, 0x0FF5, 0x07F8, 0x03FA, 0x03F8, 0x01FA, 0x01F9, 0x00FA, | |
2345 | 0x007B, 0x003C, 0x001C, 0x0002, 0x0000, 0x0006, 0x001D, 0x007A, | |
2346 | 0x007C, 0x00FB, 0x01F8, 0x01FB, 0x03F9, 0x03FB, 0x07F9, 0x0FF4, | |
2347 | 0x0FF6, 0x0FF9, 0x0FFB, 0x1FF8, 0x1FFB, 0x1FFD, 0x3FFD, 0x7FFD, | |
2348 | 0x7FFE, 0xFFFF, | |
2349 | ]; | |
2350 | const CLV_BIASU_1_SYMS: &[u16] = &[ | |
2351 | 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, 0xFFC8, 0xFFCC, | |
2352 | 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, 0xFFE8, 0xFFEC, | |
2353 | 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, 0x0000, 0x0004, 0x0008, 0x000C, | |
2354 | 0x0010, 0x0014, 0x0018, 0x001C, 0x0020, 0x0024, 0x0028, 0x002C, | |
2355 | 0x0030, 0x0034, 0x0038, 0x003C, 0x0040, 0x0044, 0x0048, 0x004C, | |
2356 | 0x0050, 0x0100, | |
2357 | ]; | |
2358 | ||
2359 | const CLV_FLAGSU_1_BITS: &[u8] = &[ | |
2360 | 1, 4, 4, 4, 4, 4, 8, 6, 4, 8, 5, 8, 4, 10, 9, 10, | |
2361 | ]; | |
2362 | const CLV_FLAGSU_1_CODES: &[u16] = &[ | |
2363 | 0x0000, 0x000C, 0x0008, 0x000A, 0x000B, 0x000E, 0x00FD, 0x003E, | |
2364 | 0x000D, 0x00FC, 0x001E, 0x00FE, 0x0009, 0x03FE, 0x01FE, 0x03FF, | |
2365 | ]; | |
2366 | ||
2367 | const CLV_MVU_2_BITS: &[u8] = &[ | |
2368 | 16, 16, 16, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 14, 15, 15, | |
2369 | 15, 15, 16, 16, 16, 16, 15, 15, 15, 14, 14, 14, 14, 14, 13, 13, | |
2370 | 13, 14, 14, 14, 14, 14, 15, 15, 15, 16, 16, 15, 15, 14, 14, 14, | |
2371 | 14, 14, 14, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 16, 16, | |
2372 | 15, 15, 14, 13, 13, 13, 13, 13, 12, 12, 12, 13, 13, 13, 13, 13, | |
2373 | 14, 15, 15, 16, 14, 14, 14, 14, 13, 12, 12, 12, 12, 11, 10, 11, | |
2374 | 12, 12, 12, 12, 13, 14, 14, 14, 14, 14, 14, 14, 13, 12, 12, 12, | |
2375 | 12, 11, 10, 9, 10, 11, 12, 12, 12, 12, 13, 14, 14, 14, 15, 14, | |
2376 | 13, 13, 12, 12, 12, 12, 11, 10, 8, 10, 11, 12, 12, 12, 12, 13, | |
2377 | 13, 14, 15, 14, 14, 14, 13, 12, 12, 11, 11, 10, 9, 7, 9, 10, | |
2378 | 11, 11, 12, 12, 13, 14, 14, 14, 14, 14, 13, 12, 12, 11, 11, 10, | |
2379 | 9, 8, 7, 8, 9, 10, 11, 11, 12, 12, 13, 14, 14, 14, 13, 13, | |
2380 | 12, 11, 9, 9, 8, 7, 6, 5, 6, 7, 8, 9, 9, 11, 12, 13, | |
2381 | 13, 14, 14, 13, 13, 13, 11, 11, 10, 8, 7, 4, 1, 4, 7, 8, | |
2382 | 10, 11, 11, 13, 13, 13, 14, 14, 13, 13, 12, 11, 9, 9, 8, 7, | |
2383 | 6, 5, 6, 7, 8, 9, 9, 11, 12, 13, 13, 14, 14, 14, 13, 12, | |
2384 | 11, 11, 11, 9, 9, 8, 7, 8, 9, 10, 11, 11, 12, 12, 13, 14, | |
2385 | 14, 14, 14, 14, 13, 12, 12, 11, 11, 10, 9, 7, 9, 10, 11, 11, | |
2386 | 12, 12, 13, 14, 14, 14, 15, 14, 13, 13, 12, 12, 12, 12, 11, 10, | |
2387 | 9, 10, 11, 12, 12, 12, 12, 13, 13, 14, 15, 14, 14, 14, 13, 12, | |
2388 | 12, 12, 12, 11, 10, 8, 10, 11, 12, 12, 12, 12, 13, 14, 14, 14, | |
2389 | 14, 14, 14, 14, 13, 12, 12, 12, 12, 11, 10, 11, 12, 12, 12, 12, | |
2390 | 13, 14, 14, 14, 14, 16, 15, 15, 14, 13, 13, 13, 13, 13, 12, 12, | |
2391 | 12, 13, 13, 13, 13, 13, 14, 15, 15, 16, 16, 15, 15, 14, 14, 14, | |
2392 | 14, 14, 14, 13, 12, 13, 14, 14, 14, 14, 14, 14, 15, 15, 16, 16, | |
2393 | 15, 15, 15, 14, 14, 14, 14, 14, 13, 13, 13, 14, 14, 14, 14, 14, | |
2394 | 15, 15, 15, 16, 16, 16, 16, 15, 15, 15, 15, 14, 14, 14, 14, 14, | |
2395 | 14, 14, 15, 15, 15, 15, 16, 16, 16, 6, | |
2396 | ]; | |
2397 | const CLV_MVU_2_CODES: &[u16] = &[ | |
2398 | 0xFFF2, 0xFFEF, 0xFFEA, 0x7FEC, 0x7FD5, 0x7FC5, 0x7FCF, 0x3FD3, | |
2399 | 0x3FC9, 0x3FB4, 0x3F72, 0x3FAE, 0x3FDC, 0x3FE1, 0x7FC4, 0x7FC8, | |
2400 | 0x7FD7, 0x7FF0, 0xFFE9, 0xFFEC, 0xFFF8, 0xFFF4, 0x7FF3, 0x7FDE, | |
2401 | 0x7FD3, 0x3FC0, 0x3F99, 0x3FA8, 0x3FAC, 0x3F8E, 0x1FA8, 0x1F79, | |
2402 | 0x1FA2, 0x3F89, 0x3F93, 0x3F95, 0x3F9C, 0x3FB8, 0x7FD2, 0x7FE6, | |
2403 | 0x7FDA, 0xFFF7, 0xFFFE, 0x7FED, 0x7FE2, 0x3FD5, 0x3FD7, 0x3FB3, | |
2404 | 0x3FA2, 0x3F80, 0x3F7A, 0x1F88, 0x1F70, 0x1F8A, 0x3F83, 0x3F84, | |
2405 | 0x3FAA, 0x3FC4, 0x3FDA, 0x3FDF, 0x7FDB, 0x7FE3, 0xFFF1, 0xFFFB, | |
2406 | 0x7FE1, 0x7FC7, 0x3FB0, 0x1FAA, 0x1FAB, 0x1FA3, 0x1F8E, 0x1F81, | |
2407 | 0x0FA7, 0x0F7F, 0x0FA8, 0x1F82, 0x1F8F, 0x1FA4, 0x1FAC, 0x1FAD, | |
2408 | 0x3FB5, 0x7FC6, 0x7FDD, 0xFFF3, 0x3FDD, 0x3FBE, 0x3FB9, 0x3F7C, | |
2409 | 0x1F77, 0x0FB5, 0x0F9D, 0x0F99, 0x0F90, 0x0794, 0x03BE, 0x0795, | |
2410 | 0x0F92, 0x0F9A, 0x0F9E, 0x0FB6, 0x1F78, 0x3F78, 0x3FB2, 0x3FBF, | |
2411 | 0x3FD2, 0x3FA7, 0x3F8C, 0x3F75, 0x1F9E, 0x0F93, 0x0F94, 0x0F7B, | |
2412 | 0x0F73, 0x07B4, 0x03BB, 0x01D9, 0x03BC, 0x07B5, 0x0F74, 0x0F7C, | |
2413 | 0x0F95, 0x0F96, 0x1FA0, 0x3F76, 0x3F8F, 0x3FA5, 0x7FE5, 0x3FC7, | |
2414 | 0x1F95, 0x1F71, 0x0FAB, 0x0FAC, 0x0F9F, 0x0F7D, 0x0796, 0x03BF, | |
2415 | 0x00DE, 0x03C0, 0x0797, 0x0F7E, 0x0FA0, 0x0FAD, 0x0FAE, 0x1F72, | |
2416 | 0x1F97, 0x3FD1, 0x7FD8, 0x3FA9, 0x3FA0, 0x3F6D, 0x1F99, 0x0F87, | |
2417 | 0x0F77, 0x07A8, 0x079C, 0x03C5, 0x01CA, 0x0067, 0x01CB, 0x03C6, | |
2418 | 0x079D, 0x07A9, 0x0F78, 0x0F8A, 0x1F9F, 0x3F6E, 0x3F98, 0x3F9A, | |
2419 | 0x3FCA, 0x3F70, 0x1FAF, 0x0F8D, 0x0F6F, 0x07AC, 0x07A0, 0x03B7, | |
2420 | 0x01CE, 0x00DA, 0x0063, 0x00DB, 0x01CF, 0x03B8, 0x07A1, 0x07AD, | |
2421 | 0x0F70, 0x0F91, 0x1FB2, 0x3F73, 0x3FD6, 0x3F7D, 0x1F91, 0x1F85, | |
2422 | 0x0FA3, 0x07A2, 0x01D4, 0x01D0, 0x00E0, 0x0068, 0x002C, 0x0014, | |
2423 | 0x002D, 0x0069, 0x00E1, 0x01D1, 0x01D5, 0x07A3, 0x0FA4, 0x1F89, | |
2424 | 0x1F92, 0x3F81, 0x3FA6, 0x1F7B, 0x1F7C, 0x1F7D, 0x07B0, 0x07AE, | |
2425 | 0x03C7, 0x00DC, 0x0064, 0x0008, 0x0000, 0x0009, 0x0065, 0x00DD, | |
2426 | 0x03C8, 0x07AF, 0x07B1, 0x1F7E, 0x1F7F, 0x1F80, 0x3F9E, 0x3F85, | |
2427 | 0x1F93, 0x1F8B, 0x0FA5, 0x07A4, 0x01D6, 0x01D2, 0x00E2, 0x006A, | |
2428 | 0x002E, 0x0015, 0x002F, 0x006B, 0x00E3, 0x01D3, 0x01D7, 0x07A5, | |
2429 | 0x0FA6, 0x1F8C, 0x1F94, 0x3F87, 0x3FCE, 0x3F77, 0x1FB4, 0x0F83, | |
2430 | 0x07B6, 0x07AA, 0x079E, 0x01DA, 0x01CC, 0x00D8, 0x0062, 0x00D9, | |
2431 | 0x01CD, 0x03B6, 0x079F, 0x07AB, 0x0F6E, 0x0F84, 0x1FA9, 0x3F6A, | |
2432 | 0x3FCD, 0x3F90, 0x3F92, 0x3F6B, 0x1F96, 0x0F85, 0x0F75, 0x07A6, | |
2433 | 0x079A, 0x03C3, 0x01C8, 0x0066, 0x01C9, 0x03C4, 0x079B, 0x07A7, | |
2434 | 0x0F76, 0x0F86, 0x1F9D, 0x3F6C, 0x3F96, 0x3F97, 0x7FE9, 0x3FD8, | |
2435 | 0x1F98, 0x1F73, 0x0FAF, 0x0FB0, 0x0FA1, 0x0F80, 0x0798, 0x03C1, | |
2436 | 0x01D8, 0x03C2, 0x0799, 0x0F81, 0x0FA2, 0x0FB1, 0x0FB2, 0x1F74, | |
2437 | 0x1F9A, 0x3FE0, 0x7FEE, 0x3F94, 0x3F8B, 0x3F6F, 0x1F9B, 0x0F88, | |
2438 | 0x0F89, 0x0F79, 0x0F71, 0x07B2, 0x03B9, 0x00DF, 0x03BA, 0x07B3, | |
2439 | 0x0F72, 0x0F7A, 0x0F8B, 0x0F8C, 0x1F9C, 0x3F71, 0x3F8A, 0x3F9B, | |
2440 | 0x3FC8, 0x3FBD, 0x3FC5, 0x3F79, 0x1F75, 0x0FB3, 0x0F9C, 0x0F97, | |
2441 | 0x0F8E, 0x0792, 0x03BD, 0x0793, 0x0F8F, 0x0F98, 0x0F9B, 0x0FB4, | |
2442 | 0x1F76, 0x3F82, 0x3FC3, 0x3FBA, 0x3FC6, 0xFFFD, 0x7FDF, 0x7FCC, | |
2443 | 0x3FBB, 0x1FB0, 0x1FAE, 0x1FA1, 0x1F90, 0x1F83, 0x0FAA, 0x0F82, | |
2444 | 0x0FA9, 0x1F84, 0x1F8D, 0x1FA5, 0x1FB1, 0x1FB3, 0x3FC2, 0x7FCA, | |
2445 | 0x7FE8, 0xFFF5, 0xFFFF, 0x7FDC, 0x7FD9, 0x3FCC, 0x3FD9, 0x3FB7, | |
2446 | 0x3F9F, 0x3F7E, 0x3F86, 0x1F86, 0x0FB7, 0x1F87, 0x3F7B, 0x3F7F, | |
2447 | 0x3FA1, 0x3FBC, 0x3FCB, 0x3FD4, 0x7FF1, 0x7FF2, 0xFFFA, 0xFFFC, | |
2448 | 0x7FE4, 0x7FE7, 0x7FD4, 0x3FAF, 0x3FA3, 0x3F91, 0x3F9D, 0x3F88, | |
2449 | 0x1FA6, 0x1F7A, 0x1FA7, 0x3F8D, 0x3FAB, 0x3FAD, 0x3FA4, 0x3FB6, | |
2450 | 0x7FD0, 0x7FE0, 0x7FEB, 0xFFF0, 0xFFF9, 0xFFEB, 0xFFED, 0x7FEA, | |
2451 | 0x7FD6, 0x7FC9, 0x7FCB, 0x3FD0, 0x3FDE, 0x3FB1, 0x3F74, 0x3FC1, | |
2452 | 0x3FCF, 0x3FDB, 0x7FCD, 0x7FCE, 0x7FD1, 0x7FEF, 0xFFE8, 0xFFEE, | |
2453 | 0xFFF6, 0x0030, | |
2454 | ]; | |
2455 | const CLV_MVU_2_SYMS: &[u16] = &[ | |
2456 | 0xF6F6, 0xF7F6, 0xF8F6, 0xF9F6, 0xFAF6, 0xFBF6, 0xFCF6, 0xFDF6, | |
2457 | 0xFEF6, 0xFFF6, 0x00F6, 0x01F6, 0x02F6, 0x03F6, 0x04F6, 0x05F6, | |
2458 | 0x06F6, 0x07F6, 0x08F6, 0x09F6, 0x0AF6, 0xF6F7, 0xF7F7, 0xF8F7, | |
2459 | 0xF9F7, 0xFAF7, 0xFBF7, 0xFCF7, 0xFDF7, 0xFEF7, 0xFFF7, 0x00F7, | |
2460 | 0x01F7, 0x02F7, 0x03F7, 0x04F7, 0x05F7, 0x06F7, 0x07F7, 0x08F7, | |
2461 | 0x09F7, 0x0AF7, 0xF6F8, 0xF7F8, 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, | |
2462 | 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, 0x00F8, 0x01F8, 0x02F8, 0x03F8, | |
2463 | 0x04F8, 0x05F8, 0x06F8, 0x07F8, 0x08F8, 0x09F8, 0x0AF8, 0xF6F9, | |
2464 | 0xF7F9, 0xF8F9, 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, | |
2465 | 0xFFF9, 0x00F9, 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, | |
2466 | 0x07F9, 0x08F9, 0x09F9, 0x0AF9, 0xF6FA, 0xF7FA, 0xF8FA, 0xF9FA, | |
2467 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
2468 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0x08FA, 0x09FA, | |
2469 | 0x0AFA, 0xF6FB, 0xF7FB, 0xF8FB, 0xF9FB, 0xFAFB, 0xFBFB, 0xFCFB, | |
2470 | 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, 0x03FB, 0x04FB, | |
2471 | 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0x09FB, 0x0AFB, 0xF6FC, 0xF7FC, | |
2472 | 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, | |
2473 | 0x00FC, 0x01FC, 0x02FC, 0x03FC, 0x04FC, 0x05FC, 0x06FC, 0x07FC, | |
2474 | 0x08FC, 0x09FC, 0x0AFC, 0xF6FD, 0xF7FD, 0xF8FD, 0xF9FD, 0xFAFD, | |
2475 | 0xFBFD, 0xFCFD, 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, | |
2476 | 0x03FD, 0x04FD, 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0x09FD, 0x0AFD, | |
2477 | 0xF6FE, 0xF7FE, 0xF8FE, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
2478 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
2479 | 0x06FE, 0x07FE, 0x08FE, 0x09FE, 0x0AFE, 0xF6FF, 0xF7FF, 0xF8FF, | |
2480 | 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, 0xFFFF, 0x00FF, | |
2481 | 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, 0x07FF, 0x08FF, | |
2482 | 0x09FF, 0x0AFF, 0xF600, 0xF700, 0xF800, 0xF900, 0xFA00, 0xFB00, | |
2483 | 0xFC00, 0xFD00, 0xFE00, 0xFF00, 0x0000, 0x0100, 0x0200, 0x0300, | |
2484 | 0x0400, 0x0500, 0x0600, 0x0700, 0x0800, 0x0900, 0x0A00, 0xF601, | |
2485 | 0xF701, 0xF801, 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, | |
2486 | 0xFF01, 0x0001, 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, | |
2487 | 0x0701, 0x0801, 0x0901, 0x0A01, 0xF602, 0xF702, 0xF802, 0xF902, | |
2488 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
2489 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0x0802, 0x0902, | |
2490 | 0x0A02, 0xF603, 0xF703, 0xF803, 0xF903, 0xFA03, 0xFB03, 0xFC03, | |
2491 | 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, 0x0303, 0x0403, | |
2492 | 0x0503, 0x0603, 0x0703, 0x0803, 0x0903, 0x0A03, 0xF604, 0xF704, | |
2493 | 0xF804, 0xF904, 0xFA04, 0xFB04, 0xFC04, 0xFD04, 0xFE04, 0xFF04, | |
2494 | 0x0004, 0x0104, 0x0204, 0x0304, 0x0404, 0x0504, 0x0604, 0x0704, | |
2495 | 0x0804, 0x0904, 0x0A04, 0xF605, 0xF705, 0xF805, 0xF905, 0xFA05, | |
2496 | 0xFB05, 0xFC05, 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, | |
2497 | 0x0305, 0x0405, 0x0505, 0x0605, 0x0705, 0x0805, 0x0905, 0x0A05, | |
2498 | 0xF606, 0xF706, 0xF806, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
2499 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
2500 | 0x0606, 0x0706, 0x0806, 0x0906, 0x0A06, 0xF607, 0xF707, 0xF807, | |
2501 | 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, 0xFF07, 0x0007, | |
2502 | 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, 0x0707, 0x0807, | |
2503 | 0x0907, 0x0A07, 0xF608, 0xF708, 0xF808, 0xF908, 0xFA08, 0xFB08, | |
2504 | 0xFC08, 0xFD08, 0xFE08, 0xFF08, 0x0008, 0x0108, 0x0208, 0x0308, | |
2505 | 0x0408, 0x0508, 0x0608, 0x0708, 0x0808, 0x0908, 0x0A08, 0xF609, | |
2506 | 0xF709, 0xF809, 0xF909, 0xFA09, 0xFB09, 0xFC09, 0xFD09, 0xFE09, | |
2507 | 0xFF09, 0x0009, 0x0109, 0x0209, 0x0309, 0x0409, 0x0509, 0x0609, | |
2508 | 0x0709, 0x0809, 0x0909, 0x0A09, 0xF60A, 0xF70A, 0xF80A, 0xF90A, | |
2509 | 0xFA0A, 0xFB0A, 0xFC0A, 0xFD0A, 0xFE0A, 0xFF0A, 0x000A, 0x010A, | |
2510 | 0x020A, 0x030A, 0x040A, 0x050A, 0x060A, 0x070A, 0x080A, 0x090A, | |
2511 | 0x0A0A, 0x0B0B, | |
2512 | ]; | |
2513 | const CLV_MVU_2_ESCAPE: u16 = 0x0B0B; | |
2514 | ||
2515 | const CLV_BIASU_2_BITS: &[u8] = &[ | |
2516 | 16, 16, 16, 16, 15, 15, 15, 14, 14, 14, 13, 12, 12, 11, 11, 10, | |
2517 | 10, 9, 9, 8, 8, 7, 6, 5, 4, 3, 1, 3, 4, 6, 6, 7, | |
2518 | 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 14, 14, 14, 15, 15, | |
2519 | 15, 16, 16, 16, 16, 14, | |
2520 | ]; | |
2521 | const CLV_BIASU_2_CODES: &[u16] = &[ | |
2522 | 0xFFFC, 0xFFF8, 0xFFFA, 0xFFFD, 0x7FF8, 0x7FFA, 0x7FF7, 0x3FF6, | |
2523 | 0x3FF7, 0x3FF4, 0x1FF9, 0x0FFB, 0x0FF9, 0x07FB, 0x07F9, 0x03FA, | |
2524 | 0x03F8, 0x01FA, 0x01F9, 0x00FB, 0x00F9, 0x007B, 0x003B, 0x001C, | |
2525 | 0x000C, 0x0004, 0x0000, 0x0005, 0x000D, 0x003A, 0x003C, 0x007A, | |
2526 | 0x00F8, 0x00FA, 0x01F8, 0x01FB, 0x03F9, 0x03FB, 0x07F8, 0x07FA, | |
2527 | 0x0FF8, 0x0FFA, 0x1FF8, 0x3FF5, 0x3FF8, 0x3FF9, 0x7FFB, 0x7FF9, | |
2528 | 0x7FF6, 0xFFF9, 0xFFFF, 0xFFFE, 0xFFFB, 0x3FFA, | |
2529 | ]; | |
2530 | const CLV_BIASU_2_SYMS: &[u16] = &[ | |
2531 | 0xFF98, 0xFF9C, 0xFFA0, 0xFFA4, 0xFFA8, 0xFFAC, 0xFFB0, 0xFFB4, | |
2532 | 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, 0xFFC8, 0xFFCC, 0xFFD0, 0xFFD4, | |
2533 | 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, 0xFFE8, 0xFFEC, 0xFFF0, 0xFFF4, | |
2534 | 0xFFF8, 0xFFFC, 0x0000, 0x0004, 0x0008, 0x000C, 0x0010, 0x0014, | |
2535 | 0x0018, 0x001C, 0x0020, 0x0024, 0x0028, 0x002C, 0x0030, 0x0034, | |
2536 | 0x0038, 0x003C, 0x0040, 0x0044, 0x0048, 0x004C, 0x0050, 0x0054, | |
2537 | 0x0058, 0x005C, 0x0060, 0x0064, 0x0068, 0x0100, | |
2538 | ]; | |
2539 | ||
2540 | const CLV_FLAGSV_0_BITS: &[u8] = &[ | |
2541 | 1, 4, 5, 4, 5, 5, 8, 10, 5, 9, 5, 6, 4, 10, 7, 3, | |
2542 | ]; | |
2543 | const CLV_FLAGSV_0_CODES: &[u16] = &[ | |
2544 | 0x0000, 0x000A, 0x001B, 0x000C, 0x001E, 0x001C, 0x00FE, 0x03FE, | |
2545 | 0x001D, 0x01FE, 0x001A, 0x003E, 0x000B, 0x03FF, 0x007E, 0x0004, | |
2546 | ]; | |
2547 | ||
2548 | const CLV_MVV_1_BITS: &[u8] = &[ | |
2549 | 16, 15, 13, 13, 13, 12, 10, 10, 10, 12, 13, 13, 13, 15, 16, 16, | |
2550 | 15, 14, 13, 12, 11, 10, 9, 10, 11, 12, 13, 14, 15, 16, 15, 14, | |
2551 | 13, 13, 11, 10, 10, 5, 10, 10, 11, 13, 13, 14, 15, 12, 12, 12, | |
2552 | 11, 10, 10, 9, 5, 9, 10, 10, 11, 12, 12, 12, 14, 12, 12, 12, | |
2553 | 11, 9, 8, 5, 8, 9, 11, 12, 12, 12, 14, 14, 11, 11, 9, 9, | |
2554 | 9, 7, 5, 7, 9, 9, 9, 11, 11, 14, 13, 12, 11, 10, 10, 8, | |
2555 | 6, 3, 6, 8, 10, 10, 11, 12, 13, 11, 10, 9, 7, 6, 6, 4, | |
2556 | 4, 4, 6, 7, 7, 10, 10, 11, 13, 12, 11, 10, 10, 8, 6, 3, | |
2557 | 6, 8, 10, 10, 11, 12, 13, 14, 11, 11, 9, 9, 9, 7, 5, 7, | |
2558 | 9, 9, 9, 11, 11, 14, 14, 12, 12, 12, 11, 9, 8, 5, 8, 9, | |
2559 | 11, 12, 12, 12, 14, 12, 12, 12, 11, 10, 10, 9, 5, 9, 10, 10, | |
2560 | 11, 12, 12, 12, 15, 14, 13, 13, 11, 10, 10, 5, 10, 10, 11, 13, | |
2561 | 13, 14, 15, 16, 15, 14, 13, 12, 11, 10, 9, 10, 11, 12, 13, 14, | |
2562 | 15, 16, 16, 15, 13, 13, 13, 12, 10, 10, 10, 12, 13, 13, 13, 15, | |
2563 | 16, 7, | |
2564 | ]; | |
2565 | const CLV_MVV_1_CODES: &[u16] = &[ | |
2566 | 0xFFFD, 0x7FF8, 0x1FF2, 0x1FDC, 0x1FDB, 0x0FD2, 0x03D6, 0x03BF, | |
2567 | 0x03D3, 0x0FD0, 0x1FDA, 0x1FDE, 0x1FF0, 0x7FF9, 0xFFFE, 0xFFFA, | |
2568 | 0x7FFB, 0x3FF3, 0x1FE9, 0x0FD6, 0x07CB, 0x03E1, 0x01C8, 0x03E2, | |
2569 | 0x07CC, 0x0FD9, 0x1FE8, 0x3FF6, 0x7FFA, 0xFFF9, 0x7FF1, 0x3FEE, | |
2570 | 0x1FE4, 0x1FE0, 0x07D4, 0x03DB, 0x03CB, 0x0014, 0x03CC, 0x03DC, | |
2571 | 0x07D6, 0x1FE3, 0x1FE7, 0x3FEC, 0x7FF3, 0x0FEA, 0x0FE0, 0x0FDE, | |
2572 | 0x07DE, 0x03C9, 0x03C3, 0x01DC, 0x0013, 0x01DD, 0x03C4, 0x03CA, | |
2573 | 0x07DF, 0x0FDF, 0x0FE3, 0x0FEB, 0x3FF1, 0x0FE7, 0x0FCF, 0x0FC8, | |
2574 | 0x07D8, 0x01D2, 0x00E0, 0x0010, 0x00E1, 0x01D4, 0x07D9, 0x0FC9, | |
2575 | 0x0FCC, 0x0FE6, 0x3FF5, 0x3FEA, 0x07E2, 0x07D2, 0x01D7, 0x01D0, | |
2576 | 0x01CC, 0x006A, 0x000F, 0x006B, 0x01CD, 0x01D1, 0x01D9, 0x07D3, | |
2577 | 0x07E3, 0x3FEB, 0x1FEE, 0x0FD5, 0x07C7, 0x03D8, 0x03D0, 0x00DD, | |
2578 | 0x002D, 0x0001, 0x002E, 0x00DE, 0x03D1, 0x03D9, 0x07C8, 0x0FD8, | |
2579 | 0x1FEF, 0x07CE, 0x03C5, 0x01DE, 0x006C, 0x0032, 0x0030, 0x0005, | |
2580 | 0x0004, 0x0006, 0x0031, 0x0066, 0x006D, 0x03BE, 0x03C6, 0x07CF, | |
2581 | 0x1FEC, 0x0FDA, 0x07C9, 0x03DA, 0x03D2, 0x00DF, 0x002F, 0x0000, | |
2582 | 0x002C, 0x00DC, 0x03CF, 0x03D7, 0x07C6, 0x0FD4, 0x1FED, 0x3FE9, | |
2583 | 0x07E0, 0x07D0, 0x01D3, 0x01CE, 0x01CA, 0x0068, 0x000E, 0x0069, | |
2584 | 0x01CB, 0x01CF, 0x01D5, 0x07D1, 0x07E1, 0x3FE8, 0x3FF4, 0x0FE4, | |
2585 | 0x0FCD, 0x0FCB, 0x07DA, 0x01D6, 0x00E2, 0x0011, 0x00E3, 0x01D8, | |
2586 | 0x07DB, 0x0FCA, 0x0FCE, 0x0FE5, 0x3FF7, 0x0FE8, 0x0FE1, 0x0FDD, | |
2587 | 0x07DD, 0x03C7, 0x03C1, 0x01DA, 0x0012, 0x01DB, 0x03C2, 0x03C8, | |
2588 | 0x07DC, 0x0FDC, 0x0FE2, 0x0FE9, 0x7FF0, 0x3FEF, 0x1FE5, 0x1FE1, | |
2589 | 0x07D7, 0x03DD, 0x03CD, 0x0015, 0x03CE, 0x03DE, 0x07D5, 0x1FE2, | |
2590 | 0x1FE6, 0x3FED, 0x7FF2, 0xFFF8, 0x7FF4, 0x3FF2, 0x1FEB, 0x0FD7, | |
2591 | 0x07CD, 0x03DF, 0x01C9, 0x03E0, 0x07CA, 0x0FDB, 0x1FEA, 0x3FF0, | |
2592 | 0x7FF5, 0xFFFB, 0xFFFC, 0x7FF6, 0x1FF3, 0x1FDD, 0x1FD9, 0x0FD1, | |
2593 | 0x03D5, 0x03C0, 0x03D4, 0x0FD3, 0x1FD8, 0x1FDF, 0x1FF1, 0x7FF7, | |
2594 | 0xFFFF, 0x0067, | |
2595 | ]; | |
2596 | const CLV_MVV_1_SYMS: &[u16] = &[ | |
2597 | 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, 0xFFF9, 0x00F9, | |
2598 | 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, 0x07F9, 0xF9FA, | |
2599 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
2600 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0xF9FB, 0xFAFB, | |
2601 | 0xFBFB, 0xFCFB, 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, | |
2602 | 0x03FB, 0x04FB, 0x05FB, 0x06FB, 0x07FB, 0xF9FC, 0xFAFC, 0xFBFC, | |
2603 | 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, 0x00FC, 0x01FC, 0x02FC, 0x03FC, | |
2604 | 0x04FC, 0x05FC, 0x06FC, 0x07FC, 0xF9FD, 0xFAFD, 0xFBFD, 0xFCFD, | |
2605 | 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, 0x03FD, 0x04FD, | |
2606 | 0x05FD, 0x06FD, 0x07FD, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
2607 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
2608 | 0x06FE, 0x07FE, 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, | |
2609 | 0xFFFF, 0x00FF, 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, | |
2610 | 0x07FF, 0xF900, 0xFA00, 0xFB00, 0xFC00, 0xFD00, 0xFE00, 0xFF00, | |
2611 | 0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700, | |
2612 | 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, 0xFF01, 0x0001, | |
2613 | 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, 0x0701, 0xF902, | |
2614 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
2615 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0xF903, 0xFA03, | |
2616 | 0xFB03, 0xFC03, 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, | |
2617 | 0x0303, 0x0403, 0x0503, 0x0603, 0x0703, 0xF904, 0xFA04, 0xFB04, | |
2618 | 0xFC04, 0xFD04, 0xFE04, 0xFF04, 0x0004, 0x0104, 0x0204, 0x0304, | |
2619 | 0x0404, 0x0504, 0x0604, 0x0704, 0xF905, 0xFA05, 0xFB05, 0xFC05, | |
2620 | 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, 0x0305, 0x0405, | |
2621 | 0x0505, 0x0605, 0x0705, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
2622 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
2623 | 0x0606, 0x0706, 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, | |
2624 | 0xFF07, 0x0007, 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, | |
2625 | 0x0707, 0x0808, | |
2626 | ]; | |
2627 | const CLV_MVV_1_ESCAPE: u16 = 0x0808; | |
2628 | ||
2629 | const CLV_BIASV_1_BITS: &[u8] = &[ | |
2630 | 16, 15, 14, 14, 14, 13, 13, 13, 12, 12, 11, 11, 10, 10, 9, 8, | |
2631 | 7, 6, 5, 2, 1, 3, 5, 6, 8, 8, 9, 10, 10, 11, 12, 12, | |
2632 | 12, 13, 13, 13, 14, 14, 15, 15, 16, 14, | |
2633 | ]; | |
2634 | const CLV_BIASV_1_CODES: &[u16] = &[ | |
2635 | 0xFFFF, 0x7FFD, 0x3FFD, 0x3FFB, 0x3FF9, 0x1FFB, 0x1FF8, 0x1FF6, | |
2636 | 0x0FFA, 0x0FF8, 0x07FA, 0x07F8, 0x03FA, 0x03F8, 0x01FB, 0x00FB, | |
2637 | 0x007C, 0x003C, 0x001C, 0x0002, 0x0000, 0x0006, 0x001D, 0x003D, | |
2638 | 0x00FA, 0x00FC, 0x01FA, 0x03F9, 0x03FB, 0x07F9, 0x0FF6, 0x0FF7, | |
2639 | 0x0FF9, 0x1FF7, 0x1FF9, 0x1FFA, 0x3FFA, 0x3FFC, 0x7FFC, 0x7FFE, | |
2640 | 0xFFFE, 0x3FF8, | |
2641 | ]; | |
2642 | const CLV_BIASV_1_SYMS: &[u16] = &[ | |
2643 | 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, 0xFFC8, 0xFFCC, | |
2644 | 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, 0xFFE8, 0xFFEC, | |
2645 | 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, 0x0000, 0x0004, 0x0008, 0x000C, | |
2646 | 0x0010, 0x0014, 0x0018, 0x001C, 0x0020, 0x0024, 0x0028, 0x002C, | |
2647 | 0x0030, 0x0034, 0x0038, 0x003C, 0x0040, 0x0044, 0x0048, 0x004C, | |
2648 | 0x0050, 0x0100, | |
2649 | ]; | |
2650 | ||
2651 | const CLV_FLAGSV_1_BITS: &[u8] = &[ | |
2652 | 1, 4, 4, 4, 4, 5, 8, 6, 3, 7, 5, 10, 5, 11, 9, 11, | |
2653 | ]; | |
2654 | const CLV_FLAGSV_1_CODES: &[u16] = &[ | |
2655 | 0x0000, 0x000D, 0x000C, 0x000A, 0x000B, 0x001D, 0x00FE, 0x003E, | |
2656 | 0x0004, 0x007E, 0x001E, 0x03FE, 0x001C, 0x07FE, 0x01FE, 0x07FF, | |
2657 | ]; | |
2658 | ||
2659 | const CLV_MVV_2_BITS: &[u8] = &[ | |
2660 | 16, 15, 15, 15, 15, 15, 14, 14, 14, 13, 12, 13, 14, 14, 14, 15, | |
2661 | 15, 15, 15, 15, 16, 16, 16, 16, 15, 15, 14, 14, 14, 13, 13, 12, | |
2662 | 12, 13, 14, 14, 14, 15, 15, 16, 16, 16, 16, 16, 16, 14, 14, 14, | |
2663 | 14, 14, 14, 13, 13, 13, 14, 14, 14, 14, 14, 14, 16, 16, 16, 15, | |
2664 | 15, 14, 14, 14, 13, 13, 13, 13, 12, 12, 12, 13, 13, 13, 13, 14, | |
2665 | 14, 14, 15, 15, 16, 14, 14, 14, 13, 12, 12, 12, 10, 10, 10, 10, | |
2666 | 10, 12, 12, 12, 13, 14, 14, 14, 16, 14, 14, 14, 13, 13, 12, 12, | |
2667 | 12, 10, 10, 7, 10, 10, 12, 12, 12, 13, 13, 14, 14, 14, 14, 14, | |
2668 | 13, 12, 12, 12, 12, 10, 9, 8, 7, 8, 9, 10, 12, 12, 12, 12, | |
2669 | 13, 14, 14, 14, 14, 13, 12, 12, 12, 12, 10, 9, 8, 7, 8, 9, | |
2670 | 10, 12, 12, 12, 12, 13, 14, 14, 14, 14, 13, 13, 12, 12, 11, 10, | |
2671 | 9, 8, 7, 8, 9, 10, 11, 12, 12, 13, 13, 14, 14, 14, 13, 13, | |
2672 | 12, 10, 10, 9, 8, 7, 6, 5, 6, 7, 8, 9, 10, 10, 12, 13, | |
2673 | 13, 14, 13, 13, 13, 13, 11, 10, 9, 8, 7, 5, 1, 5, 7, 8, | |
2674 | 9, 10, 11, 13, 13, 13, 13, 14, 13, 13, 12, 10, 10, 9, 8, 7, | |
2675 | 6, 5, 6, 7, 8, 9, 10, 10, 12, 13, 13, 14, 14, 14, 13, 13, | |
2676 | 12, 12, 11, 9, 9, 8, 7, 8, 9, 9, 11, 12, 12, 13, 13, 14, | |
2677 | 14, 14, 14, 13, 12, 12, 12, 12, 10, 9, 8, 7, 8, 9, 10, 12, | |
2678 | 12, 12, 12, 13, 14, 14, 14, 14, 13, 12, 12, 12, 12, 10, 9, 8, | |
2679 | 7, 8, 9, 10, 12, 12, 12, 12, 13, 14, 14, 14, 14, 14, 13, 13, | |
2680 | 12, 12, 12, 10, 10, 7, 10, 10, 12, 12, 12, 13, 13, 14, 14, 14, | |
2681 | 16, 14, 14, 14, 13, 12, 12, 12, 10, 10, 10, 10, 10, 12, 12, 12, | |
2682 | 13, 14, 14, 14, 16, 15, 15, 14, 14, 14, 13, 13, 13, 13, 12, 12, | |
2683 | 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 16, 16, 16, 14, 14, 14, | |
2684 | 14, 14, 14, 13, 13, 13, 14, 14, 14, 14, 14, 14, 16, 16, 16, 16, | |
2685 | 16, 16, 15, 15, 14, 14, 14, 13, 12, 12, 12, 13, 14, 14, 14, 15, | |
2686 | 15, 16, 16, 16, 16, 15, 15, 15, 15, 15, 14, 14, 14, 13, 10, 13, | |
2687 | 14, 14, 14, 15, 15, 15, 15, 15, 16, 6, | |
2688 | ]; | |
2689 | const CLV_MVV_2_CODES: &[u16] = &[ | |
2690 | 0xFFFF, 0x7FE7, 0x7FD9, 0x7FE6, 0x7FE5, 0x7FCE, 0x3FD6, 0x3FD3, | |
2691 | 0x3F9C, 0x1FB2, 0x0F7A, 0x1FB5, 0x3FA8, 0x3FDD, 0x3FE5, 0x7FD0, | |
2692 | 0x7FEA, 0x7FEC, 0x7FEF, 0x7FDB, 0xFFF3, 0xFFF5, 0xFFE2, 0xFFEB, | |
2693 | 0x7FEB, 0x7FE0, 0x3FA7, 0x3F84, 0x3F79, 0x1FAE, 0x1F70, 0x0F78, | |
2694 | 0x0FAA, 0x1FAA, 0x3F76, 0x3F7E, 0x3FAC, 0x7FE1, 0x7FDD, 0xFFEC, | |
2695 | 0xFFEE, 0xFFF8, 0xFFF9, 0xFFEA, 0xFFE4, 0x3FE1, 0x3FBA, 0x3FC5, | |
2696 | 0x3FB9, 0x3FA1, 0x3FAA, 0x1F8B, 0x1F8D, 0x1F8E, 0x3FA6, 0x3FA9, | |
2697 | 0x3FC4, 0x3FBC, 0x3FC6, 0x3FDB, 0xFFE3, 0xFFE1, 0xFFFB, 0x7FD4, | |
2698 | 0x7FCC, 0x3FCD, 0x3F88, 0x3F7C, 0x1FA1, 0x1FA2, 0x1F95, 0x1F77, | |
2699 | 0x0F95, 0x0F79, 0x0F97, 0x1F78, 0x1F96, 0x1FA3, 0x1FA4, 0x3F7F, | |
2700 | 0x3F8B, 0x3FCB, 0x7FCF, 0x7FD5, 0xFFF6, 0x3FD7, 0x3FE0, 0x3F91, | |
2701 | 0x1F7B, 0x0FB4, 0x0FA5, 0x0FA6, 0x03D5, 0x03CB, 0x03BF, 0x03CC, | |
2702 | 0x03D6, 0x0FA7, 0x0FA8, 0x0FB5, 0x1F7D, 0x3F87, 0x3FD2, 0x3FDF, | |
2703 | 0xFFF0, 0x3F95, 0x3F8A, 0x3F96, 0x1FB7, 0x1F9F, 0x0F9F, 0x0F8F, | |
2704 | 0x0F76, 0x03D1, 0x03BC, 0x0067, 0x03BD, 0x03D2, 0x0F77, 0x0F90, | |
2705 | 0x0FA0, 0x1FA0, 0x1FB9, 0x3F97, 0x3F98, 0x3F99, 0x3FC3, 0x3FAF, | |
2706 | 0x1F81, 0x0FA9, 0x0F91, 0x0F7E, 0x0F68, 0x03B2, 0x01C6, 0x00D4, | |
2707 | 0x0062, 0x00D5, 0x01C7, 0x03B3, 0x0F6A, 0x0F81, 0x0F93, 0x0FAC, | |
2708 | 0x1F83, 0x3FB3, 0x3FB4, 0x3FC7, 0x3FBB, 0x1F86, 0x0FAF, 0x0F98, | |
2709 | 0x0F84, 0x0F6D, 0x03B8, 0x01CC, 0x00DA, 0x0065, 0x00DB, 0x01CD, | |
2710 | 0x03B9, 0x0F6F, 0x0F86, 0x0F9B, 0x0FB1, 0x1F88, 0x3FB8, 0x3FC9, | |
2711 | 0x3FDC, 0x3F80, 0x1FB3, 0x1F93, 0x0F87, 0x0F72, 0x07B0, 0x03B0, | |
2712 | 0x01D4, 0x00E0, 0x0061, 0x00E1, 0x01D5, 0x03B1, 0x07B1, 0x0F73, | |
2713 | 0x0F88, 0x1F94, 0x1FB4, 0x3F81, 0x3FD4, 0x3F9E, 0x1F99, 0x1F73, | |
2714 | 0x0F89, 0x03C4, 0x03C0, 0x01CE, 0x00D0, 0x005C, 0x0028, 0x0010, | |
2715 | 0x0029, 0x005D, 0x00D1, 0x01CF, 0x03C1, 0x03C5, 0x0F8A, 0x1F74, | |
2716 | 0x1F9A, 0x3FA4, 0x1FAC, 0x1F8C, 0x1F7E, 0x1F71, 0x07B2, 0x03CF, | |
2717 | 0x01C4, 0x00DC, 0x005A, 0x0012, 0x0000, 0x0013, 0x005B, 0x00DD, | |
2718 | 0x01C5, 0x03D0, 0x07B3, 0x1F72, 0x1F7F, 0x1F8F, 0x1FAD, 0x3FAB, | |
2719 | 0x1F9B, 0x1F75, 0x0F8B, 0x03C6, 0x03C2, 0x01D0, 0x00D2, 0x005E, | |
2720 | 0x002A, 0x0011, 0x002B, 0x005F, 0x00D3, 0x01D1, 0x03C3, 0x03C7, | |
2721 | 0x0F8C, 0x1F76, 0x1F9C, 0x3FAD, 0x3FCF, 0x3F85, 0x1FBA, 0x1F91, | |
2722 | 0x0F7D, 0x0F70, 0x07AE, 0x01D6, 0x01D2, 0x00DE, 0x0060, 0x00DF, | |
2723 | 0x01D3, 0x01D7, 0x07AF, 0x0F71, 0x0F7F, 0x1F92, 0x1FAF, 0x3F7B, | |
2724 | 0x3FD0, 0x3FC0, 0x3FB1, 0x1F82, 0x0FAB, 0x0F92, 0x0F80, 0x0F69, | |
2725 | 0x03B4, 0x01C8, 0x00D6, 0x0063, 0x00D7, 0x01C9, 0x03B5, 0x0F6B, | |
2726 | 0x0F82, 0x0F94, 0x0FAD, 0x1F84, 0x3FB5, 0x3FC2, 0x3FB6, 0x3FBF, | |
2727 | 0x1F85, 0x0FAE, 0x0F96, 0x0F83, 0x0F6C, 0x03B6, 0x01CA, 0x00D8, | |
2728 | 0x0064, 0x00D9, 0x01CB, 0x03B7, 0x0F6E, 0x0F85, 0x0F99, 0x0FB0, | |
2729 | 0x1F87, 0x3FB0, 0x3FB2, 0x3F93, 0x3F86, 0x3F8E, 0x1FB1, 0x1F9D, | |
2730 | 0x0F9A, 0x0F8D, 0x0F74, 0x03CD, 0x03BA, 0x0066, 0x03BB, 0x03CE, | |
2731 | 0x0F75, 0x0F8E, 0x0F9C, 0x1F9E, 0x1FB0, 0x3F8C, 0x3F94, 0x3F8D, | |
2732 | 0xFFFC, 0x3FCA, 0x3FD5, 0x3F8F, 0x1F79, 0x0FB2, 0x0FA1, 0x0FA2, | |
2733 | 0x03D3, 0x03C9, 0x03BE, 0x03CA, 0x03D4, 0x0FA3, 0x0FA4, 0x0FB3, | |
2734 | 0x1F7A, 0x3F90, 0x3FE3, 0x3FD8, 0xFFF2, 0x7FD7, 0x7FCD, 0x3FE4, | |
2735 | 0x3F92, 0x3F82, 0x1FA6, 0x1FA8, 0x1F98, 0x1F7C, 0x0F9D, 0x0F7B, | |
2736 | 0x0F9E, 0x1F80, 0x1F97, 0x1FA7, 0x1FA5, 0x3F7A, 0x3F89, 0x3FDA, | |
2737 | 0x7FD2, 0x7FD6, 0xFFFE, 0xFFED, 0xFFE8, 0x3FCC, 0x3FBD, 0x3FAE, | |
2738 | 0x3FC1, 0x3F9F, 0x3F9A, 0x1F89, 0x1F90, 0x1F8A, 0x3FA3, 0x3FA0, | |
2739 | 0x3FC8, 0x3FBE, 0x3FB7, 0x3FD1, 0xFFE7, 0xFFE9, 0xFFFD, 0xFFF4, | |
2740 | 0xFFE5, 0xFFEF, 0x7FD8, 0x7FDC, 0x3FA2, 0x3F83, 0x3F78, 0x1FA9, | |
2741 | 0x0FB6, 0x0F7C, 0x0FB7, 0x1FAB, 0x3F77, 0x3F7D, 0x3F9B, 0x7FDE, | |
2742 | 0x7FED, 0xFFE6, 0xFFE0, 0xFFF7, 0xFFF1, 0x7FDA, 0x7FE9, 0x7FE2, | |
2743 | 0x7FE3, 0x7FD1, 0x3FD9, 0x3FE2, 0x3FA5, 0x1FB8, 0x03C8, 0x1FB6, | |
2744 | 0x3F9D, 0x3FDE, 0x3FCE, 0x7FD3, 0x7FEE, 0x7FDF, 0x7FE8, 0x7FE4, | |
2745 | 0xFFFA, 0x002C, | |
2746 | ]; | |
2747 | const CLV_MVV_2_SYMS: &[u16] = &[ | |
2748 | 0xF6F6, 0xF7F6, 0xF8F6, 0xF9F6, 0xFAF6, 0xFBF6, 0xFCF6, 0xFDF6, | |
2749 | 0xFEF6, 0xFFF6, 0x00F6, 0x01F6, 0x02F6, 0x03F6, 0x04F6, 0x05F6, | |
2750 | 0x06F6, 0x07F6, 0x08F6, 0x09F6, 0x0AF6, 0xF6F7, 0xF7F7, 0xF8F7, | |
2751 | 0xF9F7, 0xFAF7, 0xFBF7, 0xFCF7, 0xFDF7, 0xFEF7, 0xFFF7, 0x00F7, | |
2752 | 0x01F7, 0x02F7, 0x03F7, 0x04F7, 0x05F7, 0x06F7, 0x07F7, 0x08F7, | |
2753 | 0x09F7, 0x0AF7, 0xF6F8, 0xF7F8, 0xF8F8, 0xF9F8, 0xFAF8, 0xFBF8, | |
2754 | 0xFCF8, 0xFDF8, 0xFEF8, 0xFFF8, 0x00F8, 0x01F8, 0x02F8, 0x03F8, | |
2755 | 0x04F8, 0x05F8, 0x06F8, 0x07F8, 0x08F8, 0x09F8, 0x0AF8, 0xF6F9, | |
2756 | 0xF7F9, 0xF8F9, 0xF9F9, 0xFAF9, 0xFBF9, 0xFCF9, 0xFDF9, 0xFEF9, | |
2757 | 0xFFF9, 0x00F9, 0x01F9, 0x02F9, 0x03F9, 0x04F9, 0x05F9, 0x06F9, | |
2758 | 0x07F9, 0x08F9, 0x09F9, 0x0AF9, 0xF6FA, 0xF7FA, 0xF8FA, 0xF9FA, | |
2759 | 0xFAFA, 0xFBFA, 0xFCFA, 0xFDFA, 0xFEFA, 0xFFFA, 0x00FA, 0x01FA, | |
2760 | 0x02FA, 0x03FA, 0x04FA, 0x05FA, 0x06FA, 0x07FA, 0x08FA, 0x09FA, | |
2761 | 0x0AFA, 0xF6FB, 0xF7FB, 0xF8FB, 0xF9FB, 0xFAFB, 0xFBFB, 0xFCFB, | |
2762 | 0xFDFB, 0xFEFB, 0xFFFB, 0x00FB, 0x01FB, 0x02FB, 0x03FB, 0x04FB, | |
2763 | 0x05FB, 0x06FB, 0x07FB, 0x08FB, 0x09FB, 0x0AFB, 0xF6FC, 0xF7FC, | |
2764 | 0xF8FC, 0xF9FC, 0xFAFC, 0xFBFC, 0xFCFC, 0xFDFC, 0xFEFC, 0xFFFC, | |
2765 | 0x00FC, 0x01FC, 0x02FC, 0x03FC, 0x04FC, 0x05FC, 0x06FC, 0x07FC, | |
2766 | 0x08FC, 0x09FC, 0x0AFC, 0xF6FD, 0xF7FD, 0xF8FD, 0xF9FD, 0xFAFD, | |
2767 | 0xFBFD, 0xFCFD, 0xFDFD, 0xFEFD, 0xFFFD, 0x00FD, 0x01FD, 0x02FD, | |
2768 | 0x03FD, 0x04FD, 0x05FD, 0x06FD, 0x07FD, 0x08FD, 0x09FD, 0x0AFD, | |
2769 | 0xF6FE, 0xF7FE, 0xF8FE, 0xF9FE, 0xFAFE, 0xFBFE, 0xFCFE, 0xFDFE, | |
2770 | 0xFEFE, 0xFFFE, 0x00FE, 0x01FE, 0x02FE, 0x03FE, 0x04FE, 0x05FE, | |
2771 | 0x06FE, 0x07FE, 0x08FE, 0x09FE, 0x0AFE, 0xF6FF, 0xF7FF, 0xF8FF, | |
2772 | 0xF9FF, 0xFAFF, 0xFBFF, 0xFCFF, 0xFDFF, 0xFEFF, 0xFFFF, 0x00FF, | |
2773 | 0x01FF, 0x02FF, 0x03FF, 0x04FF, 0x05FF, 0x06FF, 0x07FF, 0x08FF, | |
2774 | 0x09FF, 0x0AFF, 0xF600, 0xF700, 0xF800, 0xF900, 0xFA00, 0xFB00, | |
2775 | 0xFC00, 0xFD00, 0xFE00, 0xFF00, 0x0000, 0x0100, 0x0200, 0x0300, | |
2776 | 0x0400, 0x0500, 0x0600, 0x0700, 0x0800, 0x0900, 0x0A00, 0xF601, | |
2777 | 0xF701, 0xF801, 0xF901, 0xFA01, 0xFB01, 0xFC01, 0xFD01, 0xFE01, | |
2778 | 0xFF01, 0x0001, 0x0101, 0x0201, 0x0301, 0x0401, 0x0501, 0x0601, | |
2779 | 0x0701, 0x0801, 0x0901, 0x0A01, 0xF602, 0xF702, 0xF802, 0xF902, | |
2780 | 0xFA02, 0xFB02, 0xFC02, 0xFD02, 0xFE02, 0xFF02, 0x0002, 0x0102, | |
2781 | 0x0202, 0x0302, 0x0402, 0x0502, 0x0602, 0x0702, 0x0802, 0x0902, | |
2782 | 0x0A02, 0xF603, 0xF703, 0xF803, 0xF903, 0xFA03, 0xFB03, 0xFC03, | |
2783 | 0xFD03, 0xFE03, 0xFF03, 0x0003, 0x0103, 0x0203, 0x0303, 0x0403, | |
2784 | 0x0503, 0x0603, 0x0703, 0x0803, 0x0903, 0x0A03, 0xF604, 0xF704, | |
2785 | 0xF804, 0xF904, 0xFA04, 0xFB04, 0xFC04, 0xFD04, 0xFE04, 0xFF04, | |
2786 | 0x0004, 0x0104, 0x0204, 0x0304, 0x0404, 0x0504, 0x0604, 0x0704, | |
2787 | 0x0804, 0x0904, 0x0A04, 0xF605, 0xF705, 0xF805, 0xF905, 0xFA05, | |
2788 | 0xFB05, 0xFC05, 0xFD05, 0xFE05, 0xFF05, 0x0005, 0x0105, 0x0205, | |
2789 | 0x0305, 0x0405, 0x0505, 0x0605, 0x0705, 0x0805, 0x0905, 0x0A05, | |
2790 | 0xF606, 0xF706, 0xF806, 0xF906, 0xFA06, 0xFB06, 0xFC06, 0xFD06, | |
2791 | 0xFE06, 0xFF06, 0x0006, 0x0106, 0x0206, 0x0306, 0x0406, 0x0506, | |
2792 | 0x0606, 0x0706, 0x0806, 0x0906, 0x0A06, 0xF607, 0xF707, 0xF807, | |
2793 | 0xF907, 0xFA07, 0xFB07, 0xFC07, 0xFD07, 0xFE07, 0xFF07, 0x0007, | |
2794 | 0x0107, 0x0207, 0x0307, 0x0407, 0x0507, 0x0607, 0x0707, 0x0807, | |
2795 | 0x0907, 0x0A07, 0xF608, 0xF708, 0xF808, 0xF908, 0xFA08, 0xFB08, | |
2796 | 0xFC08, 0xFD08, 0xFE08, 0xFF08, 0x0008, 0x0108, 0x0208, 0x0308, | |
2797 | 0x0408, 0x0508, 0x0608, 0x0708, 0x0808, 0x0908, 0x0A08, 0xF609, | |
2798 | 0xF709, 0xF809, 0xF909, 0xFA09, 0xFB09, 0xFC09, 0xFD09, 0xFE09, | |
2799 | 0xFF09, 0x0009, 0x0109, 0x0209, 0x0309, 0x0409, 0x0509, 0x0609, | |
2800 | 0x0709, 0x0809, 0x0909, 0x0A09, 0xF60A, 0xF70A, 0xF80A, 0xF90A, | |
2801 | 0xFA0A, 0xFB0A, 0xFC0A, 0xFD0A, 0xFE0A, 0xFF0A, 0x000A, 0x010A, | |
2802 | 0x020A, 0x030A, 0x040A, 0x050A, 0x060A, 0x070A, 0x080A, 0x090A, | |
2803 | 0x0A0A, 0x0B0B, | |
2804 | ]; | |
2805 | const CLV_MVV_2_ESCAPE: u16 = 0x0B0B; | |
2806 | ||
2807 | const CLV_BIASV_2_BITS: &[u8] = &[ | |
2808 | 16, 15, 14, 13, 13, 13, 13, 13, 12, 12, 11, 10, 10, 9, 9, 8, | |
2809 | 7, 6, 5, 4, 3, 1, 3, 4, 5, 7, 7, 8, 9, 9, 10, 10, | |
2810 | 10, 12, 12, 13, 13, 13, 13, 13, 14, 16, 15, 15, | |
2811 | ]; | |
2812 | const CLV_BIASV_2_CODES: &[u16] = &[ | |
2813 | 0xFFFE, 0x7FFD, 0x3FFC, 0x1FFC, 0x1FFB, 0x1FF8, 0x1FF7, 0x1FF4, | |
2814 | 0x0FF8, 0x0FF7, 0x07FA, 0x03FB, 0x03F8, 0x01FA, 0x01F9, 0x00FA, | |
2815 | 0x007B, 0x003C, 0x001C, 0x000C, 0x0004, 0x0000, 0x0005, 0x000D, | |
2816 | 0x001D, 0x007A, 0x007C, 0x00FB, 0x01F8, 0x01FB, 0x03F9, 0x03FA, | |
2817 | 0x03FC, 0x0FF6, 0x0FF9, 0x1FF5, 0x1FF9, 0x1FF6, 0x1FFA, 0x1FFD, | |
2818 | 0x3FFD, 0xFFFF, 0x7FFE, 0x7FFC, | |
2819 | ]; | |
2820 | const CLV_BIASV_2_SYMS: &[u16] = &[ | |
2821 | 0xFFAC, 0xFFB0, 0xFFB4, 0xFFB8, 0xFFBC, 0xFFC0, 0xFFC4, 0xFFC8, | |
2822 | 0xFFCC, 0xFFD0, 0xFFD4, 0xFFD8, 0xFFDC, 0xFFE0, 0xFFE4, 0xFFE8, | |
2823 | 0xFFEC, 0xFFF0, 0xFFF4, 0xFFF8, 0xFFFC, 0x0000, 0x0004, 0x0008, | |
2824 | 0x000C, 0x0010, 0x0014, 0x0018, 0x001C, 0x0020, 0x0024, 0x0028, | |
2825 | 0x002C, 0x0030, 0x0034, 0x0038, 0x003C, 0x0040, 0x0044, 0x0048, | |
2826 | 0x004C, 0x0050, 0x0054, 0x0100, | |
2827 | ]; | |
2828 |