NXWidgets  1.19
glyph_calculator47x49.cxx
Go to the documentation of this file.
1 /********************************************************************************************
2  * NxWidgets/nxwm/src/glyph_calculator47x47.cxx
3  *
4  * Copyright (C) 2012 Gregory Nutt. All rights reserved.
5  * Author: Gregory Nutt <gnutt@nuttx.org>
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in
15  * the documentation and/or other materials provided with the
16  * distribution.
17  * 3. Neither the name NuttX, NxWidgets, nor the names of its contributors
18  * me be used to endorse or promote products derived from this software
19  * without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *
34  ********************************************************************************************/
35 
36 /********************************************************************************************
37  * Included Files
38  ********************************************************************************************/
39 
40 #include <nuttx/config.h>
41 
42 #include <sys/types.h>
43 #include <stdint.h>
44 #include <stdbool.h>
45 
46 #include <nuttx/nx/nxglib.h>
47 #include <nuttx/video/fb.h>
48 #include <nuttx/video/rgbcolors.h>
49 
50 #include "crlepalettebitmap.hxx"
51 
52 #include "nxwmconfig.hxx"
53 #include "nxwmglyphs.hxx"
54 
55 /********************************************************************************************
56  * Pre-Processor Definitions
57  ********************************************************************************************/
58 
59 #define BITMAP_NROWS 49
60 #define BITMAP_NCOLUMNS 47
61 #define BITMAP_NLUTCODES 13
62 
63 #define DARK_CALCULATOR_ICON 1
64 
65 /********************************************************************************************
66  * Private Bitmap Data
67  ********************************************************************************************/
68 
69 using namespace NxWM;
70 
71 /* RGB24 (8-8-8) Colors */
72 
73 #if CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
74 # ifdef DARK_CALCULATOR_ICON
75 
76 static const uint32_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
77 {
78  0xababab, 0x969696, 0xbdbdbd, 0x545454, 0x546c96, 0x548196, 0x2a3f6c, 0x3f6c96, /* Codes 0-7 */
79  0x2a2a6c, 0x2a5481, 0x818181, 0x3f3f3f, 0x6c6c6c /* Codes 8-12 */
80 };
81 
82 static const uint32_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
83 {
84  0xe4e4e4, 0xc8c8c8, 0xfcfcfc, 0x707070, 0x7090c8, 0x70acc8, 0x385490, 0x5490c8, /* Codes 0-7 */
85  0x383890, 0x3870ac, 0xacacac, 0x545454, 0x909090 /* Codes 8-12 */
86 };
87 
88 # else /* DARK_CALCULATOR_ICON */
89 
90 static const uint32_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
91 {
92  0xe4e4e4, 0xc8c8c8, 0xfcfcfc, 0x707070, 0x7090c8, 0x70acc8, 0x385490, 0x5490c8, /* Codes 0-7 */
93  0x383890, 0x3870ac, 0xacacac, 0x545454, 0x909090 /* Codes 8-12 */
94 };
95 
96 static const uint32_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
97 {
98  0xffffff, 0xfafafa, 0xffffff, 0x8c8c8c, 0x8cb4fa, 0x8cd7fa, 0x4669b4, 0x69b4fa, /* Codes 0-7 */
99  0x4646b4, 0x468cd7, 0xd7d7d7, 0x696969, 0xb4b4b4 /* Codes 8-12 */
100 };
101 # endif /* DARK_CALCULATOR_ICON */
102 
103 /* RGB16 (565) Colors */
104 
105 #elif CONFIG_NXWIDGETS_BPP == 16
106 # ifdef DARK_CALCULATOR_ICON
107 
108 static const uint16_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
109 {
110  0xad55, 0x94b2, 0xbdf7, 0x52aa, 0x5372, 0x5412, 0x29ed, 0x3b72, 0x294d, 0x2ab0, /* Codes 0-9 */
111  0x8410, 0x39e7, 0x6b6d, /* Codes 10-12 */
112 };
113 
114 static const uint16_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
115 {
116  0xe73c, 0xce59, 0xffff, 0x738e, 0x7499, 0x7579, 0x3ab2, 0x5499, 0x39d2, 0x3b95, /* Codes 0-9 */
117  0xad75, 0x52aa, 0x9492 /* Codes 10-12 */
118 };
119 
120 # else /* DARK_CALCULATOR_ICON */
121 
122 static const uint16_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
123 {
124  0xe73c, 0xce59, 0xffff, 0x738e, 0x7499, 0x7579, 0x3ab2, 0x5499, 0x39d2, 0x3b95, /* Codes 0-9 */
125  0xad75, 0x52aa, 0x9492 /* Codes 10-12 */
126 };
127 
128 static const uint16_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
129 {
130  0xffff, 0xffdf, 0xffff, 0x8c71, 0x8dbf, 0x8ebf, 0x4356, 0x6dbf, 0x4236, 0x447a, /* Codes 0-9 */
131  0xd6ba, 0x6b4d, 0xb5b6 /* Codes 10-12 */
132 };
133 
134 # endif /* DARK_CALCULATOR_ICON */
135 
136 /* 8-bit color lookups. NOTE: This is really dumb! The lookup index is 8-bits and it used
137  * to lookup an 8-bit value. There is no savings in that! It would be better to just put
138  * the 8-bit color/greyscale value in the run-length encoded image and save the cost of these
139  * pointless lookups. But these pointless lookups do make the logic compatible with the
140  * 16- and 24-bit types.
141  */
142 
143 #elif CONFIG_NXWIDGETS_BPP == 8
144 # ifdef CONFIG_NXWIDGETS_GREYSCALE
145 
146 /* 8-bit Greyscale */
147 
148 # ifdef DARK_CALCULATOR_ICON
149 
150 static const uint8_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
151 {
152  0xab, 0x96, 0xbd, 0x54, 0x69, 0x75, 0x3d, 0x63, 0x31, 0x4c, 0x81, 0x3f, 0x6c /* Codes 0-12 */
153 };
154 
155 static const uint8_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
156 {
157  0xe4, 0xc8, 0xfc, 0x70, 0x8c, 0x9d, 0x52, 0x84, 0x42, 0x66, 0xac, 0x54, 0x90 /* Codes 0-12 */
158 };
159 
160 # else /* DARK_CALCULATOR_ICON */
161 
162 static const uint8_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
163 {
164  0xe4, 0xc8, 0xfc, 0x70, 0x8c, 0x9d, 0x52, 0x84, 0x42, 0x66, 0xac, 0x54, 0x90 /* Codes 0-12 */
165 };
166 
167 static const uint8_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
168 {
169  0xff, 0xfa, 0xff, 0x8c, 0xb0, 0xc4, 0x67, 0xa5, 0x52, 0x7f, 0xd7, 0x69, 0xb4 /* Codes 0-12 */
170 };
171 
172 # endif /* DARK_CALCULATOR_ICON */
173 
174 # else /* CONFIG_NXWIDGETS_GREYSCALE */
175 
176 /* RGB8 (332) Colors */
177 
178 # ifdef DARK_CALCULATOR_ICON
179 
180 static const nxgl_mxpixel_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
181 {
182  0xb6, 0x92, 0xb6, 0x49, 0x4e, 0x52, 0x25, 0x2e, 0x25, 0x2a, 0x92, 0x24, 0x6d /* Codes 0-12 */
183 };
184 
185 static const nxgl_mxpixel_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
186 {
187  0xff, 0xdb, 0xff, 0x6d, 0x73, 0x77, 0x2a, 0x53, 0x26, 0x2e, 0xb6, 0x49, 0x92 /* Codes 0-12 */
188 };
189 
190 # else /* DARK_CALCULATOR_ICON */
191 
192 static const nxgl_mxpixel_t g_calculatorNormalLut[BITMAP_NLUTCODES] =
193 {
194  0xff, 0xdb, 0xff, 0x6d, 0x73, 0x77, 0x2a, 0x53, 0x26, 0x2e, 0xb6, 0x49, 0x92 /* Codes 0-12 */
195 };
196 
197 static const nxgl_mxpixel_t g_calculatorBrightLut[BITMAP_NLUTCODES] =
198 {
199  0xff, 0xff, 0xff, 0x92, 0x97, 0x9b, 0x4e, 0x77, 0x4a, 0x53, 0xdb, 0x6d, 0xb6 /* Codes 0-12 */
200 };
201 
202 # endif /* DARK_CALCULATOR_ICON */
203 # endif /* CONFIG_NXWIDGETS_GREYSCALE */
204 #else
205 # error Unsupported pixel format
206 #endif
207 
209 {
210  {46, 0}, { 1, 1}, /* Row 0 */
211  { 1, 0}, {45, 2}, { 1, 1}, /* Row 1 */
212  { 1, 0}, { 1, 2}, {43, 1}, { 1, 2}, { 1, 1}, /* Row 2 */
213  { 1, 0}, { 1, 2}, { 1, 1}, {41, 3}, { 1, 0}, { 1, 2}, { 1, 1}, /* Row 3 */
214  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 4}, {36, 5}, { 1, 4}, { 1, 6}, /* Row 4 */
215  { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
216  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, {37, 7}, { 1, 8}, { 1, 3}, /* Row 5 */
217  { 1, 0}, { 1, 2}, { 1, 1},
218  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 6 */
219  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
220  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 7 */
221  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
222  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 8 */
223  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
224  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 9 */
225  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
226  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 10 */
227  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
228  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 11 */
229  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
230  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 5}, { 1, 7}, {35, 4}, { 1, 7}, /* Row 12 */
231  { 1, 8}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
232  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 4}, {36, 7}, { 1, 9}, { 1, 8}, /* Row 13 */
233  { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
234  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 6}, {38, 8}, { 1, 3}, { 1, 0}, /* Row 14 */
235  { 1, 2}, { 1, 1},
236  { 1, 0}, { 1, 2}, { 1, 1}, {41, 3}, { 1, 0}, { 1, 2}, { 1, 1}, /* Row 15 */
237  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, /* Row 16 */
238  { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3},
239  { 1, 0}, { 1, 2}, { 1, 1},
240  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, /* Row 17 */
241  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, { 2, 3}, { 1, 1},
242  { 1, 2}, { 5, 0}, { 1, 1}, { 2, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1},
243  { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
244  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, /* Row 18 */
245  { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1},
246  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11},
247  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11}, { 1, 3},
248  { 1, 0}, { 1, 2}, { 1, 1},
249  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3}, /* Row 19 */
250  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
251  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
252  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
253  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
254  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 2, 3}, /* Row 20 */
255  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
256  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
257  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
258  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
259  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 1, 3}, /* Row 21 */
260  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
261  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
262  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
263  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
264  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 3, 12}, /* Row 22 */
265  { 2, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1},
266  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11},
267  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11}, { 1, 3},
268  { 1, 0}, { 1, 2}, { 1, 1},
269  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, /* Row 23 */
270  { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1},
271  { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3},
272  { 1, 0}, { 1, 2}, { 1, 1},
273  { 1, 0}, { 1, 2}, { 1, 1}, { 2, 3}, { 8, 11}, { 2, 3}, { 8, 11}, { 2, 3}, /* Row 24 */
274  { 8, 11}, { 2, 3}, { 8, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
275  { 1, 0}, { 1, 2}, { 1, 1}, {41, 3}, { 1, 0}, { 1, 2}, { 1, 1}, /* Row 25 */
276  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, /* Row 26 */
277  { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3},
278  { 1, 0}, { 1, 2}, { 1, 1},
279  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, /* Row 27 */
280  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, { 1, 11}, { 1, 3},
281  { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, { 2, 3}, { 1, 1}, { 1, 2}, { 5, 0},
282  { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
283  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, /* Row 28 */
284  { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1},
285  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11},
286  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11}, { 1, 3},
287  { 1, 0}, { 1, 2}, { 1, 1},
288  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3}, /* Row 29 */
289  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
290  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
291  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
292  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
293  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3}, /* Row 30 */
294  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
295  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
296  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
297  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
298  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3}, /* Row 31 */
299  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
300  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
301  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
302  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
303  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, /* Row 32 */
304  { 2, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1},
305  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11},
306  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11}, { 1, 3},
307  { 1, 0}, { 1, 2}, { 1, 1},
308  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, /* Row 33 */
309  { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1},
310  { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3},
311  { 1, 0}, { 1, 2}, { 1, 1},
312  { 1, 0}, { 1, 2}, { 1, 1}, { 2, 3}, { 8, 11}, { 2, 3}, { 8, 11}, { 3, 3}, /* Row 34 */
313  { 7, 11}, { 2, 3}, { 8, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
314  { 1, 0}, { 1, 2}, { 1, 1}, {41, 3}, { 1, 0}, { 1, 2}, { 1, 1}, /* Row 35 */
315  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, /* Row 36 */
316  { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3}, { 7, 1}, { 1, 10}, { 2, 3},
317  { 1, 0}, { 1, 2}, { 1, 1},
318  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, /* Row 37 */
319  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, { 1, 11}, { 1, 3},
320  { 1, 1}, { 1, 2}, { 5, 0}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 2},
321  { 5, 0}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
322  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, /* Row 38 */
323  { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1},
324  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11},
325  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 1}, { 4, 10}, { 1, 1}, { 1, 11}, { 1, 3},
326  { 1, 0}, { 1, 2}, { 1, 1},
327  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3}, /* Row 39 */
328  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
329  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
330  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 3},
331  { 1, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
332  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3}, /* Row 40 */
333  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
334  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
335  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 2, 3},
336  { 2, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
337  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3}, /* Row 41 */
338  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
339  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
340  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 1, 3},
341  { 3, 12}, { 1, 1}, { 1, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
342  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, /* Row 42 */
343  { 2, 1}, { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1},
344  { 1, 11}, { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11},
345  { 1, 3}, { 1, 1}, { 1, 0}, { 1, 10}, { 3, 12}, { 2, 1}, { 1, 11}, { 1, 3},
346  { 1, 0}, { 1, 2}, { 1, 1},
347  { 1, 0}, { 1, 2}, { 1, 1}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, /* Row 43 */
348  { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1},
349  { 1, 3}, { 1, 11}, { 1, 3}, { 1, 10}, { 6, 1}, { 1, 3}, { 1, 11}, { 1, 3},
350  { 1, 0}, { 1, 2}, { 1, 1},
351  { 1, 0}, { 1, 2}, { 1, 1}, { 2, 3}, { 8, 11}, { 2, 3}, { 8, 11}, { 2, 3}, /* Row 44 */
352  { 8, 11}, { 2, 3}, { 8, 11}, { 1, 3}, { 1, 0}, { 1, 2}, { 1, 1},
353  { 1, 0}, { 1, 2}, { 1, 1}, {41, 3}, { 1, 0}, { 1, 2}, { 1, 1}, /* Row 45 */
354  { 1, 0}, { 1, 2}, {43, 0}, { 1, 2}, { 1, 1}, /* Row 46 */
355  { 1, 0}, {45, 2}, { 1, 1}, /* Row 47 */
356  {47, 1} /* Row 48 */
357 };
358 
359 /********************************************************************************************
360  * Public Bitmap Structure Definitions
361  ********************************************************************************************/
362 
364 {
365  CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
366  CONFIG_NXWIDGETS_FMT, // fmt - Color format
367  BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
368  BITMAP_NCOLUMNS, // width - Width in pixels
369  BITMAP_NROWS, // height - Height in rows
370  { // lut - Pointer to the beginning of the Look-Up Table (LUT)
371  g_calculatorNormalLut, // Index 0: Unselected LUT
372  g_calculatorBrightLut, // Index 1: Selected LUT
373  },
374  g_calculatorRleEntries // data - Pointer to the beginning of the RLE data
375 };
376 
static const uint32_t g_calculatorBrightLut[BITMAP_NLUTCODES]
const struct NXWidgets::SRlePaletteBitmap g_calculatorBitmap
Definition: nxwmglyphs.hxx:60
static const struct NXWidgets::SRlePaletteBitmapEntry g_calculatorRleEntries[]
static const uint32_t g_calculatorNormalLut[BITMAP_NLUTCODES]