2 // Red Color Values for CrY<->RGB Color Conversion
4 uint8 redcv[16][16] = {
5 // 0 1 2 3 4 5 6 7 8 9 A B C D E F
6 // ----------------------------------------------------------------------
7 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, // 0
8 { 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 19, 0}, // 1
9 { 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 64, 43, 21, 0}, // 2
10 { 102,102,102,102,102,102,102,102,102,102,102,95, 71, 47, 23, 0}, // 3
11 { 135,135,135,135,135,135,135,135,135,135,130,104,78, 52, 26, 0}, // 4
12 { 169,169,169,169,169,169,169,169,169,170,141,113,85, 56, 28, 0}, // 5
13 { 203,203,203,203,203,203,203,203,203,183,153,122,91, 61, 30, 0}, // 6
14 { 237,237,237,237,237,237,237,237,230,197,164,131,98, 65, 32, 0}, // 7
15 { 255,255,255,255,255,255,255,255,247,214,181,148,15, 82, 49, 7}, // 8
16 { 255,255,255,255,255,255,255,255,255,235,204,173,143,112,81, 51}, // 9
17 { 255,255,255,255,255,255,255,255,255,255,227,198,170,141,113,85}, // A
18 { 255,255,255,255,255,255,255,255,255,255,249,223,197,171,145,119}, // B
19 { 255,255,255,255,255,255,255,255,255,255,255,248,224,200,177,153}, // C
20 { 255,255,255,255,255,255,255,255,255,255,255,255,252,230,208,187}, // D
21 { 255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,221}, // E
22 { 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255} // F
26 // Green Color Values for CrY<->RGB Color Conversion
28 uint8 greencv[16][16] = {
29 // 0 1 2 3 4 5 6 7 8 9 A B C D E F
30 // ----------------------------------------------------------------------
31 { 0, 17, 34, 51,68, 85, 102,119,136,153,170,187,204,221,238,255}, // 0
32 { 0, 19, 38, 57,77, 96, 115,134,154,173,192,211,231,250,255,255}, // 1
33 { 0, 21, 43, 64,86, 107,129,150,172,193,215,236,255,255,255,255}, // 2
34 { 0, 23, 47, 71,95, 119,142,166,190,214,238,255,255,255,255,255}, // 3
35 { 0, 26, 52, 78,104,130,156,182,208,234,255,255,255,255,255,255}, // 4
36 { 0, 28, 56, 85,113,141,170,198,226,255,255,255,255,255,255,255}, // 5
37 { 0, 30, 61, 91,122,153,183,214,244,255,255,255,255,255,255,255}, // 6
38 { 0, 32, 65, 98,131,164,197,230,255,255,255,255,255,255,255,255}, // 7
39 { 0, 32, 65, 98,131,164,197,230,255,255,255,255,255,255,255,255}, // 8
40 { 0, 30, 61, 91,122,153,183,214,244,255,255,255,255,255,255,255}, // 9
41 { 0, 28, 56, 85,113,141,170,198,226,255,255,255,255,255,255,255}, // A
42 { 0, 26, 52, 78,104,130,156,182,208,234,255,255,255,255,255,255}, // B
43 { 0, 23, 47, 71,95, 119,142,166,190,214,238,255,255,255,255,255}, // C
44 { 0, 21, 43, 64,86, 107,129,150,172,193,215,236,255,255,255,255}, // D
45 { 0, 19, 38, 57,77, 96, 115,134,154,173,192,211,231,250,255,255}, // E
46 { 0, 17, 34, 51,68, 85, 102,119,136,153,170,187,204,221,238,255} // F
50 // Blue Color Values for CrY<->RGB Color Conversion
52 uint8 bluecv[16][16] = {
53 // 0 1 2 3 4 5 6 7 8 9 A B C D E F
54 // ----------------------------------------------------------------------
55 { 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255}, // 0
56 { 255,255,255,255,255,255,255,255,255,255,255,255,255,255,240,221}, // 1
57 { 255,255,255,255,255,255,255,255,255,255,255,255,252,230,208,187}, // 2
58 { 255,255,255,255,255,255,255,255,255,255,255,248,224,200,177,153}, // 3
59 { 255,255,255,255,255,255,255,255,255,255,249,223,197,171,145,119}, // 4
60 { 255,255,255,255,255,255,255,255,255,255,227,198,170,141,113,85}, // 5
61 { 255,255,255,255,255,255,255,255,255,235,204,173,143,112,81, 51}, // 6
62 { 255,255,255,255,255,255,255,255,247,214,181,148,115,82, 49, 17}, // 7
63 { 237,237,237,237,237,237,237,237,230,197,164,131,98, 65, 32, 0}, // 8
64 { 203,203,203,203,203,203,203,203,203,183,153,122,91, 61, 30, 0}, // 9
65 { 169,169,169,169,169,169,169,169,169,170,141,113,85, 56, 28, 0}, // A
66 { 135,135,135,135,135,135,135,135,135,135,130,104,78, 52, 26, 0}, // B
67 { 102,102,102,102,102,102,102,102,102,102,102,95, 71, 47, 23, 0}, // C
68 { 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 64, 43, 21, 0}, // D
69 { 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 19, 0}, // E
70 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} // F