Smalled CMediaPlayer image from Ken Pettit

This commit is contained in:
Gregory Nutt 2013-05-12 07:47:16 -06:00
parent 18737449ba
commit 27689b5aa5
4 changed files with 150 additions and 267 deletions

View File

@ -352,3 +352,5 @@
develop and test the MP3 codec chip driver. It really doesn't do
anything yet except display a text box saying "Coming soon", and I
need to minimize the icon size a bit. From Ken Pettit (2013-5-11).
* NxWidgets/nxwm/src/glyph_mediaplayer.cxx: Smaller version of the
media player glyph. From Ken Pettit (2013-5-12).

View File

@ -62,7 +62,7 @@
#define BITMAP_WIDTH 24
#define BITMAP_HEIGHT 24
#define BITMAP_PALETTESIZE 255
#define BITMAP_PALETTESIZE 9
using namespace NxWM;
@ -70,227 +70,82 @@ using namespace NxWM;
static const NXWidgets::nxwidget_pixel_t palette[BITMAP_PALETTESIZE] =
{
MKRGB( 0, 0, 0), MKRGB(255,255,255), MKRGB(116,187,231), MKRGB(120,200,242),
MKRGB(114,186,226), MKRGB(111,182,229), MKRGB(106,181,227), MKRGB( 93,176,231),
MKRGB( 46,106,167), MKRGB( 27,106,185), MKRGB(123,203,244), MKRGB(122,203,244),
MKRGB(119,191,228), MKRGB( 6, 74,154), MKRGB(144,206,241), MKRGB(124,205,245),
MKRGB(143,204,235), MKRGB(121,202,243), MKRGB(134,198,239), MKRGB(135,197,233),
MKRGB(131,193,235), MKRGB(125,191,229), MKRGB(124,191,231), MKRGB(119,191,229),
MKRGB(122,189,231), MKRGB(114,189,225), MKRGB(116,188,227), MKRGB(113,184,229),
MKRGB(105,182,231), MKRGB( 98,181,233), MKRGB(100,180,231), MKRGB(113,176,219),
MKRGB( 91,175,231), MKRGB(102,174,217), MKRGB( 88,173,229), MKRGB( 85,172,229),
MKRGB( 83,171,229), MKRGB( 74,164,225), MKRGB( 67,161,225), MKRGB( 92,154,203),
MKRGB( 62,153,221), MKRGB( 58,152,219), MKRGB( 56,148,217), MKRGB( 58,146,215),
MKRGB( 54,139,207), MKRGB( 54,137,207), MKRGB( 52,135,203), MKRGB( 50,128,199),
MKRGB( 59,127,187), MKRGB( 41,114,189), MKRGB( 36,110,185), MKRGB( 37,101,169),
MKRGB( 29, 95,169), MKRGB( 32, 93,167), MKRGB( 30, 89,161), MKRGB( 21, 78,153),
MKRGB( 19, 77,151), MKRGB( 14, 70,145), MKRGB(130,209,246), MKRGB(130,208,246),
MKRGB(119,200,244), MKRGB(146,199,234), MKRGB(117,198,242), MKRGB(129,197,236),
MKRGB(107,192,238), MKRGB(123,191,232), MKRGB(102,189,234), MKRGB(117,187,230),
MKRGB(110,183,230), MKRGB(100,183,234), MKRGB(119,182,222), MKRGB(109,181,222),
MKRGB(103,180,226), MKRGB( 95,179,230), MKRGB(107,177,220), MKRGB( 95,176,230),
MKRGB( 79,170,226), MKRGB( 77,167,224), MKRGB( 79,162,220), MKRGB( 86,158,206),
MKRGB( 64,155,220), MKRGB( 59,154,220), MKRGB( 60,150,218), MKRGB( 84,147,200),
MKRGB( 55,141,210), MKRGB( 58,140,206), MKRGB( 49,127,198), MKRGB( 45,122,192),
MKRGB( 33,118,192), MKRGB( 25,104,184), MKRGB( 38,103,172), MKRGB( 28, 94,168),
MKRGB( 30, 93,168), MKRGB( 28, 90,162), MKRGB( 26, 87,160), MKRGB( 25, 85,160),
MKRGB( 25, 84,158), MKRGB( 20, 78,150), MKRGB( 19, 78,150), MKRGB( 18, 74,148),
MKRGB( 15, 71,146), MKRGB( 13, 69,144), MKRGB( 11, 67,142), MKRGB(254,255,255),
MKRGB(242,250,253), MKRGB(239,246,249), MKRGB(238,244,247), MKRGB(100,177,227),
MKRGB(222,231,241), MKRGB(220,230,241), MKRGB(213,227,237), MKRGB(171,216,243),
MKRGB(134,214,251), MKRGB(163,212,241), MKRGB(162,211,241), MKRGB(130,211,249),
MKRGB(128,210,249), MKRGB(128,208,247), MKRGB(125,208,247), MKRGB(123,205,247),
MKRGB(123,204,245), MKRGB(122,204,247), MKRGB(179,202,225), MKRGB(123,201,243),
MKRGB(119,201,245), MKRGB(119,200,243), MKRGB(116,200,241), MKRGB(172,197,223),
MKRGB(122,197,233), MKRGB(115,197,243), MKRGB(135,195,233), MKRGB(114,195,241),
MKRGB(108,195,241), MKRGB(122,194,237), MKRGB(110,194,237), MKRGB(126,193,231),
MKRGB(122,193,233), MKRGB(118,192,227), MKRGB(110,192,241), MKRGB(109,191,239),
MKRGB(104,189,239), MKRGB(118,188,229), MKRGB(102,188,235), MKRGB(149,186,219),
MKRGB(121,186,225), MKRGB( 99,184,237), MKRGB(143,183,217), MKRGB(106,183,231),
MKRGB(140,182,217), MKRGB(112,182,229), MKRGB(103,182,225), MKRGB( 95,182,235),
MKRGB(116,181,221), MKRGB( 94,181,235), MKRGB( 92,178,229), MKRGB(100,177,225),
MKRGB( 91,176,231), MKRGB( 84,175,231), MKRGB( 83,175,233), MKRGB( 97,174,225),
MKRGB( 92,174,227), MKRGB( 89,174,229), MKRGB( 89,173,227), MKRGB( 85,173,231),
MKRGB(100,171,221), MKRGB( 87,171,227), MKRGB( 86,171,221), MKRGB( 95,170,219),
MKRGB( 87,169,223), MKRGB( 86,169,223), MKRGB(101,168,213), MKRGB( 78,168,225),
MKRGB( 81,167,225), MKRGB( 79,167,227), MKRGB( 75,167,219), MKRGB( 75,166,223),
MKRGB( 82,165,223), MKRGB( 69,165,225), MKRGB( 90,164,217), MKRGB( 73,164,225),
MKRGB( 90,163,217), MKRGB( 75,163,223), MKRGB( 70,163,223), MKRGB( 75,162,221),
MKRGB( 68,161,221), MKRGB( 73,160,217), MKRGB( 72,159,219), MKRGB(114,158,201),
MKRGB( 90,157,209), MKRGB( 75,156,213), MKRGB( 69,156,217), MKRGB( 68,156,217),
MKRGB( 73,153,209), MKRGB( 63,153,217), MKRGB( 77,152,207), MKRGB( 81,149,205),
MKRGB(100,144,193), MKRGB( 65,142,205), MKRGB( 73,160,221), MKRGB( 68,133,191),
MKRGB( 61,126,185), MKRGB( 66,123,179), MKRGB( 38,117,191), MKRGB( 37,117,191),
MKRGB( 39,116,187), MKRGB( 30,116,191), MKRGB( 43,114,187), MKRGB( 31,114,189),
MKRGB( 29,112,187), MKRGB( 49,111,177), MKRGB( 49,110,177), MKRGB( 38,108,179),
MKRGB( 25,107,183), MKRGB( 29,106,185), MKRGB( 45,105,167), MKRGB( 26,105,185),
MKRGB( 24,103,183), MKRGB( 42,102,165), MKRGB( 22,102,183), MKRGB( 36,100,169),
MKRGB( 36, 99,169), MKRGB( 14, 85,165), MKRGB( 22, 80,153), MKRGB( 21, 80,153),
MKRGB( 2, 72,153), MKRGB(252,253,254), MKRGB(247,249,250), MKRGB(245,248,252),
MKRGB(237,244,248), MKRGB(215,228,240), MKRGB(213,227,238), MKRGB(123,204,246),
MKRGB(122,204,246), MKRGB(140,203,238), MKRGB(121,201,242), MKRGB(119,201,246),
MKRGB(121,200,242), MKRGB(170,198,224), MKRGB(171,197,222), MKRGB(114,196,242),
MKRGB(147,194,228), MKRGB(119,194,230), MKRGB(120,191,228), MKRGB(114,191,236),
MKRGB(119,190,234), MKRGB(118,190,228), MKRGB(119,189,228), MKRGB(118,189,228),
MKRGB(115,189,234), MKRGB(109,187,232), MKRGB(106,187,236), MKRGB(103,187,236),
MKRGB(146,186,218), MKRGB(117,185,230), MKRGB( 95,185,236),
MKRGB(248,252,251), MKRGB(120,198,241), MKRGB( 97,177,228), MKRGB( 31,104,177),
MKRGB( 73,153,213), MKRGB( 46,122,193), MKRGB(140,196,230), MKRGB( 9, 77,154),
CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR
};
static const NXWidgets::nxwidget_pixel_t hilight_palette[BITMAP_PALETTESIZE] =
{
MKRGB( 50, 50, 50), MKRGB(255,255,255), MKRGB(166,237,255), MKRGB(170,250,255),
MKRGB(164,236,255), MKRGB(161,232,255), MKRGB(156,231,255), MKRGB(143,226,255),
MKRGB( 96,156,217), MKRGB( 77,156,235), MKRGB(173,253,255), MKRGB(172,253,255),
MKRGB(169,241,255), MKRGB( 56,124,204), MKRGB(194,255,255), MKRGB(174,255,255),
MKRGB(193,254,255), MKRGB(171,252,255), MKRGB(184,248,255), MKRGB(185,247,255),
MKRGB(181,243,255), MKRGB(175,241,255), MKRGB(174,241,255), MKRGB(169,241,255),
MKRGB(172,239,255), MKRGB(164,239,255), MKRGB(166,238,255), MKRGB(163,234,255),
MKRGB(155,232,255), MKRGB(148,231,255), MKRGB(150,230,255), MKRGB(163,226,255),
MKRGB(141,225,255), MKRGB(152,224,255), MKRGB(138,223,255), MKRGB(135,222,255),
MKRGB(133,221,255), MKRGB(124,214,255), MKRGB(117,211,255), MKRGB(142,204,253),
MKRGB(112,203,255), MKRGB(108,202,255), MKRGB(106,198,255), MKRGB(108,196,255),
MKRGB(104,189,255), MKRGB(104,187,255), MKRGB(102,185,253), MKRGB(100,178,249),
MKRGB(109,177,237), MKRGB( 91,164,239), MKRGB( 86,160,235), MKRGB( 87,151,219),
MKRGB( 79,145,219), MKRGB( 82,143,217), MKRGB( 80,139,211), MKRGB( 71,128,203),
MKRGB( 69,127,201), MKRGB( 64,120,195), MKRGB(180,255,255), MKRGB(180,255,255),
MKRGB(169,250,255), MKRGB(196,249,255), MKRGB(167,248,255), MKRGB(179,247,255),
MKRGB(157,242,255), MKRGB(173,241,255), MKRGB(152,239,255), MKRGB(167,237,255),
MKRGB(160,233,255), MKRGB(150,233,255), MKRGB(169,232,255), MKRGB(159,231,255),
MKRGB(153,230,255), MKRGB(145,229,255), MKRGB(157,227,255), MKRGB(145,226,255),
MKRGB(129,220,255), MKRGB(127,217,255), MKRGB(129,212,255), MKRGB(136,208,255),
MKRGB(114,205,255), MKRGB(109,204,255), MKRGB(110,200,255), MKRGB(134,197,250),
MKRGB(105,191,255), MKRGB(108,190,255), MKRGB( 99,177,248), MKRGB( 95,172,242),
MKRGB( 83,168,242), MKRGB( 75,154,234), MKRGB( 88,153,222), MKRGB( 78,144,218),
MKRGB( 80,143,218), MKRGB( 78,140,212), MKRGB( 76,137,210), MKRGB( 75,135,210),
MKRGB( 75,134,208), MKRGB( 70,128,200), MKRGB( 69,128,200), MKRGB( 68,124,198),
MKRGB( 65,121,196), MKRGB( 63,119,194), MKRGB( 61,117,192), MKRGB(255,255,255),
MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(150,227,255),
MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(221,255,255),
MKRGB(184,255,255), MKRGB(213,255,255), MKRGB(212,255,255), MKRGB(180,255,255),
MKRGB(178,255,255), MKRGB(178,255,255), MKRGB(175,255,255), MKRGB(173,255,255),
MKRGB(173,254,255), MKRGB(172,254,255), MKRGB(229,252,255), MKRGB(173,251,255),
MKRGB(169,251,255), MKRGB(169,250,255), MKRGB(166,250,255), MKRGB(222,247,255),
MKRGB(172,247,255), MKRGB(165,247,255), MKRGB(185,245,255), MKRGB(164,245,255),
MKRGB(158,245,255), MKRGB(172,244,255), MKRGB(160,244,255), MKRGB(176,243,255),
MKRGB(172,243,255), MKRGB(168,242,255), MKRGB(160,242,255), MKRGB(159,241,255),
MKRGB(154,239,255), MKRGB(168,238,255), MKRGB(152,238,255), MKRGB(199,236,255),
MKRGB(171,236,255), MKRGB(149,234,255), MKRGB(193,233,255), MKRGB(156,233,255),
MKRGB(190,232,255), MKRGB(162,232,255), MKRGB(153,232,255), MKRGB(145,232,255),
MKRGB(166,231,255), MKRGB(144,231,255), MKRGB(142,228,255), MKRGB(150,227,255),
MKRGB(141,226,255), MKRGB(134,225,255), MKRGB(133,225,255), MKRGB(147,224,255),
MKRGB(142,224,255), MKRGB(139,224,255), MKRGB(139,223,255), MKRGB(135,223,255),
MKRGB(150,221,255), MKRGB(137,221,255), MKRGB(136,221,255), MKRGB(145,220,255),
MKRGB(137,219,255), MKRGB(136,219,255), MKRGB(151,218,255), MKRGB(128,218,255),
MKRGB(131,217,255), MKRGB(129,217,255), MKRGB(125,217,255), MKRGB(125,216,255),
MKRGB(132,215,255), MKRGB(119,215,255), MKRGB(140,214,255), MKRGB(123,214,255),
MKRGB(140,213,255), MKRGB(125,213,255), MKRGB(120,213,255), MKRGB(125,212,255),
MKRGB(118,211,255), MKRGB(123,210,255), MKRGB(122,209,255), MKRGB(164,208,251),
MKRGB(140,207,255), MKRGB(125,206,255), MKRGB(119,206,255), MKRGB(118,206,255),
MKRGB(123,203,255), MKRGB(113,203,255), MKRGB(127,202,255), MKRGB(131,199,255),
MKRGB(150,194,243), MKRGB(115,192,255), MKRGB(123,210,255), MKRGB(118,183,241),
MKRGB(111,176,235), MKRGB(116,173,229), MKRGB( 88,167,241), MKRGB( 87,167,241),
MKRGB( 89,166,237), MKRGB( 80,166,241), MKRGB( 93,164,237), MKRGB( 81,164,239),
MKRGB( 79,162,237), MKRGB( 99,161,227), MKRGB( 99,160,227), MKRGB( 88,158,229),
MKRGB( 75,157,233), MKRGB( 79,156,235), MKRGB( 95,155,217), MKRGB( 76,155,235),
MKRGB( 74,153,233), MKRGB( 92,152,215), MKRGB( 72,152,233), MKRGB( 86,150,219),
MKRGB( 86,149,219), MKRGB( 64,135,215), MKRGB( 72,130,203), MKRGB( 71,130,203),
MKRGB( 52,122,203), MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(255,255,255),
MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(255,255,255), MKRGB(173,254,255),
MKRGB(172,254,255), MKRGB(190,253,255), MKRGB(171,251,255), MKRGB(169,251,255),
MKRGB(171,250,255), MKRGB(220,248,255), MKRGB(221,247,255), MKRGB(164,246,255),
MKRGB(197,244,255), MKRGB(169,244,255), MKRGB(170,241,255), MKRGB(164,241,255),
MKRGB(169,240,255), MKRGB(168,240,255), MKRGB(169,239,255), MKRGB(168,239,255),
MKRGB(165,239,255), MKRGB(159,237,255), MKRGB(156,237,255), MKRGB(153,237,255),
MKRGB(196,236,255), MKRGB(167,235,255), MKRGB(145,235,255),
MKRGB(255,255,255), MKRGB(170,248,255), MKRGB(147,227,255), MKRGB( 81,154,227),
MKRGB(123,203,255), MKRGB( 96,172,243), MKRGB(190,246,255), MKRGB( 59,127,204),
CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR
};
static const NXWidgets::SRlePaletteBitmapEntry bitmap[] =
{
{ 7, 0}, { 1, 99}, { 1, 100}, { 1, 101}, { 1, 102}, { 2, 98},
{ 1, 102}, { 1, 101}, { 1, 100}, { 1, 99}, { 7, 0}, /* Row 0 */
{ 5, 0}, { 1, 56}, { 1, 57}, { 1, 93}, { 1, 48}, { 1, 79},
{ 1, 33}, { 2, 71}, { 1, 33}, { 1, 79}, { 1, 48}, { 1, 93},
{ 1, 57}, { 1, 56}, { 5, 0}, /* Row 1 */
{ 4, 0}, { 1, 97}, { 1, 223}, { 1, 83}, { 1, 74}, { 1, 25},
{ 1, 26}, { 4, 4}, { 1, 26}, { 1, 25}, { 1, 74}, { 1, 83},
{ 1, 222}, { 1, 97}, { 4, 0}, /* Row 2 */
{ 3, 0}, { 1, 55}, { 1, 220}, { 1, 170}, { 1, 137}, { 1, 245},
{ 1, 247}, { 2, 12}, { 1, 242}, { 1, 12}, { 2, 23}, { 1, 241},
{ 1, 128}, { 1, 74}, { 1, 170}, { 1, 219}, { 1, 55}, { 3, 0}, /* Row 3 */
{ 2, 0}, { 1, 96}, { 1, 51}, { 1, 152}, { 1, 135}, { 1, 21},
{ 1, 246}, { 1, 150}, { 1, 166}, { 2, 174}, { 1, 185}, { 1, 192},
{ 1, 195}, { 1, 199}, { 1, 209}, { 1, 196}, { 1, 201}, { 1, 144},
{ 1, 51}, { 1, 96}, { 2, 0}, /* Row 4 */
{ 1, 0}, { 1, 54}, { 1, 94}, { 1, 31}, { 1, 130}, { 1, 21},
{ 1, 155}, { 1, 78}, { 1, 176}, { 1, 180}, { 1, 79}, { 1, 83},
{ 1, 39}, { 1, 148}, { 1, 237}, { 1, 108}, { 2, 1}, { 1, 8},
{ 1, 233}, { 1, 31}, { 1, 94}, { 1, 54}, { 1, 0}, /* Row 5 */
{ 1, 0}, { 1, 95}, { 1, 39}, { 1, 16}, { 1, 141}, { 2, 168},
{ 1, 160}, { 1, 167}, { 1, 199}, { 1, 238}, { 7, 1}, { 1, 214},
{ 1, 136}, { 1, 16}, { 1, 39}, { 1, 95}, { 1, 0}, /* Row 6 */
{ 1, 53}, { 1, 90}, { 1, 61}, { 1, 27}, { 1, 159}, { 3, 107},
{ 1, 178}, { 1, 225}, { 2, 1}, { 1, 228}, { 1, 229}, { 1, 127},
{ 1, 187}, { 1, 209}, { 1, 1}, { 1, 8}, { 1, 30}, { 1, 27},
{ 1, 61}, { 1, 90}, { 1, 53}, /* Row 7 */
{ 1, 92}, { 1, 83}, { 1, 19}, { 1, 72}, { 4, 6}, { 1, 178},
{ 1, 227}, { 1, 106}, { 1, 122}, { 1, 212}, { 1, 50}, { 1, 188},
{ 1, 164}, { 1, 200}, { 1, 1}, { 1, 8}, { 1, 249}, { 1, 72},
{ 1, 19}, { 1, 83}, { 1, 92}, /* Row 8 */
{ 1, 52}, { 1, 70}, { 1, 68}, { 2, 5}, { 1, 149}, { 1, 27},
{ 1, 253}, { 1, 78}, { 1, 1}, { 1, 194}, { 1, 213}, { 1, 76},
{ 1, 172}, { 1, 165}, { 1, 147}, { 1, 199}, { 1, 1}, { 1, 8},
{ 1, 248}, { 1, 5}, { 1, 68}, { 1, 70}, { 1, 52}, /* Row 9 */
{ 1, 91}, { 1, 65}, { 2, 2}, { 2, 67}, { 1, 160}, { 1, 182},
{ 1, 205}, { 1, 1}, { 1, 89}, { 1, 193}, { 1, 182}, { 2, 184},
{ 1, 177}, { 1, 221}, { 1, 1}, { 1, 217}, { 1, 133}, { 2, 2},
{ 1, 65}, { 1, 91}, /* Row 10 */
{ 1, 211}, { 1, 63}, { 1, 24}, { 1, 22}, { 1, 68}, { 1, 179},
{ 1, 175}, { 1, 76}, { 1, 88}, { 1, 1}, { 1, 9}, { 1, 191},
{ 1, 171}, { 2, 77}, { 1, 36}, { 1, 221}, { 1, 1}, { 1, 224},
{ 1, 243}, { 1, 22}, { 1, 24}, { 1, 63}, { 1, 211}, /* Row 11 */
{ 1, 206}, { 1, 18}, { 1, 20}, { 1, 75}, { 1, 173}, { 2, 36},
{ 1, 163}, { 1, 88}, { 1, 1}, { 1, 9}, { 1, 186}, { 2, 36},
{ 2, 157}, { 1, 13}, { 1, 1}, { 1, 13}, { 1, 158}, { 1, 75},
{ 1, 20}, { 1, 18}, { 1, 206}, /* Row 12 */
{ 1, 50}, { 1, 14}, { 1, 30}, { 1, 35}, { 2, 34}, { 1, 161},
{ 1, 73}, { 1, 88}, { 1, 1}, { 1, 9}, { 1, 78}, { 1, 156},
{ 1, 34}, { 1, 204}, { 1, 224}, { 1, 148}, { 1, 1}, { 1, 13},
{ 1, 153}, { 1, 35}, { 1, 30}, { 1, 14}, { 1, 50}, /* Row 13 */
{ 1, 49}, { 1, 28}, { 1, 32}, { 2, 7}, { 1, 75}, { 1, 7},
{ 1, 181}, { 1, 208}, { 1, 1}, { 1, 215}, { 1, 176}, { 1, 151},
{ 1, 221}, { 1, 146}, { 3, 1}, { 1, 13}, { 1, 145}, { 1, 7},
{ 1, 32}, { 1, 28}, { 1, 49}, /* Row 14 */
{ 1, 87}, { 1, 78}, { 1, 69}, { 1, 29}, { 1, 69}, { 1, 36},
{ 1, 208}, { 1, 74}, { 1, 240}, { 1, 103}, { 1, 89}, { 1, 34},
{ 1, 209}, { 1, 143}, { 4, 1}, { 1, 13}, { 1, 140}, { 1, 29},
{ 1, 69}, { 1, 78}, { 1, 87}, /* Row 15 */
{ 1, 86}, { 1, 85}, { 1, 64}, { 1, 251}, { 1, 254}, { 1, 208},
{ 1, 104}, { 3, 1}, { 1, 216}, { 1, 156}, { 1, 210}, { 1, 252},
{ 3, 1}, { 1, 230}, { 1, 13}, { 1, 132}, { 1, 142}, { 1, 64},
{ 1, 85}, { 1, 86}, /* Row 16 */
{ 1, 0}, { 1, 47}, { 1, 73}, { 1, 129}, { 1, 203}, { 1, 111},
{ 4, 1}, { 1, 218}, { 1, 154}, { 1, 162}, { 1, 90}, { 1, 109},
{ 1, 226}, { 1, 110}, { 1, 102}, { 1, 189}, { 1, 138}, { 1, 139},
{ 1, 73}, { 1, 47}, { 1, 0}, /* Row 17 */
{ 1, 0}, { 1, 46}, { 1, 44}, { 1, 235}, { 1, 202}, { 1, 244},
{ 3, 1}, { 1, 105}, { 1, 216}, { 1, 250}, { 1, 124}, { 1, 197},
{ 1, 52}, { 1, 221}, { 1, 90}, { 1, 169}, { 1, 60}, { 1, 131},
{ 1, 239}, { 1, 44}, { 1, 46}, { 1, 0}, /* Row 18 */
{ 2, 0}, { 1, 45}, { 1, 186}, { 1, 116}, { 1, 208}, { 1, 113},
{ 1, 1}, { 1, 114}, { 1, 212}, { 1, 168}, { 1, 60}, { 1, 62},
{ 1, 60}, { 1, 121}, { 1, 119}, { 1, 232}, { 1, 125}, { 1, 62},
{ 1, 10}, { 1, 190}, { 1, 45}, { 2, 0}, /* Row 19 */
{ 3, 0}, { 1, 84}, { 1, 183}, { 1, 118}, { 1, 207}, { 1, 205},
{ 1, 207}, { 1, 231}, { 1, 10}, { 1, 234}, { 4, 3}, { 1, 236},
{ 1, 123}, { 1, 10}, { 1, 198}, { 1, 84}, { 3, 0}, /* Row 20 */
{ 4, 0}, { 1, 43}, { 1, 193}, { 1, 126}, { 1, 112}, { 1, 115},
{ 1, 15}, { 4, 11}, { 1, 120}, { 1, 15}, { 1, 117}, { 1, 134},
{ 1, 82}, { 1, 43}, { 4, 0}, /* Row 21 */
{ 5, 0}, { 1, 82}, { 1, 42}, { 1, 37}, { 1, 66}, { 1, 17},
{ 1, 58}, { 2, 59}, { 1, 58}, { 1, 17}, { 1, 66}, { 1, 37},
{ 1, 42}, { 1, 82}, { 5, 0}, /* Row 22 */
{ 7, 0}, { 1, 80}, { 1, 40}, { 1, 81}, { 1, 41}, { 2, 38},
{ 1, 41}, { 1, 81}, { 1, 40}, { 1, 80}, { 7, 0}, /* Row 23 */
{ 8, 8}, { 8, 7}, { 8, 8}, /* Row 0 */
{ 6, 8}, { 1, 7}, { 1, 3}, { 1, 5}, { 2, 2}, { 2, 1},
{ 2, 2}, { 1, 5}, { 1, 3}, { 1, 7}, { 6, 8}, /* Row 1 */
{ 4, 8}, { 2, 7}, { 1, 4}, { 1, 2}, { 1, 6}, { 6, 1},
{ 1, 6}, { 1, 2}, { 1, 4}, { 2, 7}, { 4, 8}, /* Row 2 */
{ 3, 8}, { 1, 7}, { 1, 3}, { 1, 2}, { 1, 6}, { 2, 1},
{ 4, 6}, { 2, 1}, { 2, 6}, { 2, 2}, { 1, 3}, { 1, 7},
{ 3, 8}, /* Row 3 */
{ 2, 8}, { 1, 7}, { 1, 3}, { 1, 1}, { 2, 6}, { 3, 1},
{ 2, 2}, { 1, 4}, { 1, 3}, { 5, 5}, { 1, 1}, { 1, 3},
{ 1, 7}, { 2, 8}, /* Row 4 */
{ 2, 8}, { 1, 7}, { 1, 2}, { 1, 6}, { 4, 1}, { 1, 4},
{ 3, 5}, { 2, 6}, { 3, 0}, { 1, 3}, { 2, 2}, { 1, 7},
{ 2, 8}, /* Row 5 */
{ 1, 8}, { 1, 7}, { 1, 4}, { 1, 6}, { 4, 1}, { 1, 2},
{ 1, 5}, { 1, 6}, { 7, 0}, { 1, 3}, { 1, 2}, { 1, 6},
{ 1, 4}, { 1, 7}, { 1, 8}, /* Row 6 */
{ 1, 8}, { 1, 3}, { 1, 6}, { 4, 1}, { 1, 2}, { 1, 5},
{ 4, 0}, { 2, 6}, { 1, 3}, { 1, 5}, { 1, 0}, { 1, 3},
{ 1, 2}, { 1, 1}, { 1, 6}, { 1, 3}, { 1, 8}, /* Row 7 */
{ 1, 3}, { 1, 4}, { 1, 6}, { 4, 1}, { 1, 2}, { 1, 5},
{ 2, 0}, { 1, 6}, { 3, 3}, { 1, 4}, { 1, 5}, { 1, 0},
{ 1, 3}, { 1, 2}, { 1, 1}, { 1, 6}, { 1, 4}, { 1, 3}, /* Row 8 */
{ 1, 3}, { 6, 1}, { 1, 2}, { 1, 5}, { 1, 0}, { 1, 4},
{ 1, 3}, { 1, 4}, { 3, 2}, { 1, 5}, { 1, 0}, { 1, 3},
{ 1, 2}, { 3, 1}, { 1, 3}, /* Row 9 */
{ 1, 3}, { 6, 1}, { 1, 2}, { 1, 5}, { 1, 0}, { 1, 3},
{ 1, 4}, { 4, 2}, { 1, 7}, { 1, 0}, { 1, 3}, { 1, 2},
{ 3, 1}, { 1, 3}, /* Row 10 */
{ 1, 3}, { 6, 1}, { 1, 2}, { 1, 5}, { 1, 0}, { 1, 3},
{ 1, 4}, { 4, 2}, { 1, 7}, { 1, 0}, { 1, 7}, { 1, 2},
{ 3, 1}, { 1, 3}, /* Row 11 */
{ 1, 3}, { 6, 1}, { 1, 2}, { 1, 5}, { 1, 0}, { 1, 3},
{ 1, 4}, { 4, 2}, { 1, 7}, { 1, 0}, { 1, 7}, { 1, 2},
{ 3, 1}, { 1, 5}, /* Row 12 */
{ 1, 3}, { 1, 6}, { 4, 1}, { 2, 2}, { 1, 5}, { 1, 0},
{ 1, 3}, { 1, 4}, { 2, 2}, { 1, 5}, { 1, 7}, { 1, 6},
{ 1, 0}, { 1, 7}, { 1, 2}, { 2, 1}, { 1, 6}, { 1, 3}, /* Row 13 */
{ 1, 3}, { 5, 1}, { 1, 2}, { 2, 3}, { 1, 0}, { 1, 3},
{ 1, 4}, { 1, 2}, { 1, 7}, { 1, 6}, { 3, 0}, { 1, 7},
{ 1, 2}, { 2, 1}, { 1, 2}, { 1, 3}, /* Row 14 */
{ 1, 5}, { 1, 4}, { 3, 1}, { 1, 2}, { 1, 3}, { 1, 2},
{ 1, 6}, { 1, 0}, { 1, 3}, { 1, 2}, { 1, 5}, { 1, 6},
{ 4, 0}, { 1, 7}, { 1, 2}, { 2, 1}, { 1, 4}, { 1, 5}, /* Row 15 */
{ 1, 8}, { 1, 4}, { 2, 1}, { 1, 2}, { 1, 3}, { 4, 0},
{ 1, 3}, { 1, 2}, { 1, 3}, { 1, 6}, { 3, 0}, { 1, 6},
{ 1, 7}, { 1, 2}, { 2, 1}, { 1, 4}, { 1, 8}, /* Row 16 */
{ 1, 8}, { 1, 5}, { 1, 2}, { 1, 1}, { 1, 5}, { 1, 6},
{ 4, 0}, { 1, 3}, { 2, 2}, { 1, 3}, { 1, 6}, { 1, 0},
{ 1, 6}, { 1, 7}, { 1, 4}, { 2, 1}, { 1, 2}, { 1, 5},
{ 1, 8}, /* Row 17 */
{ 2, 8}, { 1, 5}, { 1, 1}, { 1, 5}, { 1, 1}, { 4, 0},
{ 1, 3}, { 1, 2}, { 1, 1}, { 1, 4}, { 1, 3}, { 1, 7},
{ 1, 3}, { 1, 2}, { 3, 1}, { 1, 5}, { 2, 8}, /* Row 18 */
{ 2, 8}, { 1, 5}, { 1, 4}, { 1, 1}, { 1, 3}, { 1, 6},
{ 1, 0}, { 1, 6}, { 1, 3}, { 1, 2}, { 9, 1}, { 1, 4},
{ 1, 5}, { 2, 8}, /* Row 19 */
{ 3, 8}, { 1, 5}, { 1, 4}, { 1, 1}, { 1, 3}, { 1, 5},
{ 1, 3}, { 10, 1}, { 1, 4}, { 1, 5}, { 3, 8}, /* Row 20 */
{ 4, 8}, { 2, 4}, { 12, 1}, { 2, 4}, { 4, 8}, /* Row 21 */
{ 6, 8}, { 2, 4}, { 8, 1}, { 2, 4}, { 6, 8}, /* Row 22 */
{ 8, 8}, { 8, 4}, { 8, 8}, /* Row 23 */
};
const struct NXWidgets::SRlePaletteBitmap NxWM::g_mediaplayerBitmap =

View File

@ -1,51 +1,77 @@
NxWidgets/tools README File
===========================
addobjs.sh
----------
$0 will add all object (.o) files in directory to an archive.
Usage: tools/addobjs.sh [OPTIONS] <lib-path> <obj-dir>
Where:
<lib-path> is the full, absolute path to the library to use
<obj-dir> is full path to the directory containing the object files to be added
OPTIONS include:
-p Prefix to use. For example, to use arm-elf-ar, add '-p arm-elf-'
-w Use Windows style paths insted of POSIX paths
-d Enable script debug
-h Show this usage information
bitmap_converter.py
-------------------
This script converts from any image type supported by Python imaging library to
the RLE-encoded format used by NxWidgets.
indent.sh
---------
This script uses the Linux 'indent' utility to re-format C source files
to match the coding style that I use. It differs from my coding style in that
- I normally put the traiing */ of a multi-line comment on a separate line,
- I usually align things vertically (like '='in assignments.
install.sh
----------
Install a unit test in the NuttX source tree"
USAGE: tools/install.sh <apps-directory-path> <test-sub-directory>
Where:
<apps-directory-path> is the full, absolute path to the NuttX apps/ directory
<test-sub-directory> is the name of a sub-directory in the UnitTests directory
zipme.sh
--------
Pack up the NxWidgets tarball for release.
USAGE: tools/zipme.sh <version>
NxWidgets/tools README File
===========================
addobjs.sh
----------
$0 will add all object (.o) files in directory to an archive.
Usage: tools/addobjs.sh [OPTIONS] <lib-path> <obj-dir>
Where:
<lib-path> is the full, absolute path to the library to use
<obj-dir> is full path to the directory containing the object files to be added
OPTIONS include:
-p Prefix to use. For example, to use arm-elf-ar, add '-p arm-elf-'
-w Use Windows style paths instead of POSIX paths
-d Enable script debug
-h Show this usage information
bitmap_converter.py
-------------------
This script converts from any image type supported by Python imaging library to
the RLE-encoded format used by NxWidgets.
RLE (Run Length Length) is a very simply encoding that compress quite well
with certain kinds of images: Images that that have many pixels of the
same color adjacent on a row (like simple graphics). It does not work well
with photographic images.
But even simple graphics may not encode compactly if, for example, they have
been resized. Resizing an image can create hundreds of unique colors that
may differ by only a bit or two in the RGB representation. This "color
smear" is the result of pixel interpolation (and might be eliminated if
your graphics software supports resizing via pixel replication instead of
interpolation).
When a simple graphics image does not encode well, the symptom is that
the resulting RLE data structures are quite large. The pallette structure,
in particular, may have hundreds of colors in it. There is a way to fix
the graphic image in this case. Here is what I do (in fact, I do this
on all images prior to conversion just to be certain):
- Open the original image in GIMP.
- Select the option to select the number of colors in the image.
- Pick the smallest number of colors that will represent the image
faithfully. For most simple graphic images this might be as few as 6
or 8 colors.
- Save the image as PNG or other lossless format (NOT jpeg).
- Then generate the image.
indent.sh
---------
This script uses the Linux 'indent' utility to re-format C source files
to match the coding style that I use. It differs from my coding style in that
- I normally put the trailing */ of a multi-line comment on a separate line,
- I usually align things vertically (like '='in assignments.
install.sh
----------
Install a unit test in the NuttX source tree"
USAGE: tools/install.sh <apps-directory-path> <test-sub-directory>
Where:
<apps-directory-path> is the full, absolute path to the NuttX apps/ directory
<test-sub-directory> is the name of a sub-directory in the UnitTests directory
zipme.sh
--------
Pack up the NxWidgets tarball for release.
USAGE: tools/zipme.sh <version>

View File

@ -66,7 +66,7 @@ while [ ! -z "$1" ]; do
echo " <obj-dir> is full path to the directory containing the object files to be added"
echo "OPTIONS include:"
echo " -p Prefix to use. For example, to use arm-elf-ar, add '-p arm-elf-'"
echo " -w Use Windows style paths insted of POSIX paths"
echo " -w Use Windows style paths instead of POSIX paths"
echo " -d Enable script debug"
echo " -h Show this usage information"
exit 0
@ -138,4 +138,4 @@ for obj in `ls "${objdir}"/*.o`; do
echo " Object: ${obj}"; \
exit 1; \
}
done
done