40 #include <nuttx/config.h> 42 #include <sys/types.h> 46 #include <nuttx/nx/nxglib.h> 47 #include <nuttx/video/fb.h> 48 #include <nuttx/video/rgbcolors.h> 59 #define BITMAP_NROWS 48 60 #define BITMAP_NCOLUMNS 48 61 #define BITMAP_NLUTCODES 7 63 #define DARK_PLAY_ICON 1 73 #if CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 74 # ifdef DARK_PLAY_ICON 78 0x00a200, 0x00bd00, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
79 0x008400, 0x006600, 0x004e00, 0x003600
84 0x00d800, 0x00fc00, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
85 0x00b000, 0x008800, 0x006800, 0x004800
92 0x00d800, 0x00fc00, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
93 0x00b000, 0x008800, 0x006800, 0x004800
98 0x00ff00, 0x00ff00, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
99 0x00dc00, 0x00aa00, 0x008200, 0x005a00
106 #elif CONFIG_NXWIDGETS_BPP == 16 107 # ifdef DARK_PLAY_ICON 111 0x0500, 0x05e0, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
112 0x0420, 0x0320, 0x0260, 0x01a0
117 0x06c0, 0x07e0, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
118 0x0580, 0x0440, 0x0340, 0x0240
125 0x06c0, 0x07e0, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
126 0x0580, 0x0440, 0x0340, 0x0240
131 0x07e0, 0x07e0, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
132 0x06e0, 0x0540, 0x0400, 0x02c0
144 #elif CONFIG_NXWIDGETS_BPP == 8 145 # ifdef CONFIG_NXWIDGETS_GREYSCALE 149 # ifdef DARK_PLAY_ICON 153 0x5f, 0x6e, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
154 0x4d, 0x3b, 0x2d, 0x1f
159 0x7e, 0x93, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
160 0x67, 0x4f, 0x3d, 0x2a
167 0x7e, 0x93, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
168 0x67, 0x4f, 0x3d, 0x2a
173 0x95, 0x95, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
174 0x81, 0x63, 0x4c, 0x34
182 # ifdef DARK_PLAY_ICON 186 0x14, 0x14, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
187 0x10, 0x0c, 0x08, 0x04
192 0x18, 0x1c, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
193 0x14, 0x10, 0x0c, 0x08
200 0x18, 0x1c, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
201 0x14, 0x10, 0x0c, 0x08
206 0x1c, 0x1c, CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR,
207 0x18, 0x14, 0x10, 0x08
213 # error "Unsupport pixel format" 218 { 1, 0}, { 2, 1}, { 45, 2},
219 { 2, 3}, { 1, 0}, { 2, 1}, { 43, 2},
220 { 4, 3}, { 1, 0}, { 2, 1}, { 41, 2},
221 { 6, 3}, { 1, 0}, { 2, 1}, { 39, 2},
222 { 8, 3}, { 1, 0}, { 2, 1}, { 37, 2},
223 { 10, 3}, { 1, 0}, { 2, 1}, { 35, 2},
224 { 12, 3}, { 1, 0}, { 2, 1}, { 33, 2},
225 { 14, 3}, { 1, 0}, { 2, 1}, { 31, 2},
226 { 16, 3}, { 1, 0}, { 2, 1}, { 29, 2},
227 { 18, 3}, { 1, 0}, { 2, 1}, { 27, 2},
228 { 20, 3}, { 1, 0}, { 2, 1}, { 25, 2},
229 { 22, 3}, { 1, 0}, { 2, 1}, { 23, 2},
230 { 24, 3}, { 1, 0}, { 2, 1}, { 21, 2},
231 { 26, 3}, { 1, 0}, { 2, 1}, { 19, 2},
232 { 28, 3}, { 1, 0}, { 2, 1}, { 17, 2},
233 { 30, 3}, { 1, 0}, { 2, 1}, { 15, 2},
234 { 32, 3}, { 1, 0}, { 2, 1}, { 13, 2},
235 { 34, 3}, { 1, 0}, { 2, 1}, { 11, 2},
236 { 36, 3}, { 1, 0}, { 2, 1}, { 9, 2},
237 { 38, 3}, { 1, 0}, { 2, 1}, { 7, 2},
238 { 40, 3}, { 1, 0}, { 2, 1}, { 5, 2},
239 { 42, 3}, { 1, 0}, { 2, 1}, { 3, 2},
240 { 44, 3}, { 1, 0}, { 2, 1}, { 1, 2},
241 { 46, 3}, { 1, 0}, { 1, 1},
242 { 46, 4}, { 1, 5}, { 1, 6},
243 { 44, 4}, { 1, 5}, { 2, 6}, { 1, 2},
244 { 42, 4}, { 3, 6}, { 3, 2},
245 { 40, 4}, { 1, 5}, { 2, 6}, { 5, 2},
246 { 38, 4}, { 3, 6}, { 7, 2},
247 { 36, 4}, { 1, 5}, { 2, 6}, { 9, 2},
248 { 34, 4}, { 3, 6}, { 11, 2},
249 { 32, 4}, { 1, 5}, { 2, 6}, { 13, 2},
250 { 30, 4}, { 3, 6}, { 15, 2},
251 { 28, 4}, { 1, 5}, { 2, 6}, { 17, 2},
252 { 26, 4}, { 3, 6}, { 19, 2},
253 { 24, 4}, { 1, 5}, { 2, 6}, { 21, 2},
254 { 22, 4}, { 3, 6}, { 23, 2},
255 { 20, 4}, { 1, 5}, { 2, 6}, { 25, 2},
256 { 18, 4}, { 3, 6}, { 27, 2},
257 { 16, 4}, { 1, 5}, { 2, 6}, { 29, 2},
258 { 14, 4}, { 3, 6}, { 31, 2},
259 { 12, 4}, { 1, 5}, { 2, 6}, { 33, 2},
260 { 10, 4}, { 3, 6}, { 35, 2},
261 { 8, 4}, { 1, 5}, { 2, 6}, { 37, 2},
262 { 6, 4}, { 3, 6}, { 39, 2},
263 { 4, 4}, { 1, 5}, { 2, 6}, { 41, 2},
264 { 2, 4}, { 3, 6}, { 43, 2},
265 { 1, 5}, { 2, 6}, { 45, 2},
static const uint32_t g_playNormalLut[BITMAP_NLUTCODES]
static const struct NXWidgets::SRlePaletteBitmapEntry g_playRleEntries[]
const struct NXWidgets::SRlePaletteBitmap g_playBitmap
static const uint32_t g_playBrightLut[BITMAP_NLUTCODES]