summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-14 16:56:40 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-14 16:56:40 -0600
commitfbc35d5a9493c4475bc111a8dba1d24fe5a66622 (patch)
treeb7c989d8483983336d19cc2c0fdda1b1ce0d07f4 /NxWidgets/nxwm
parentcc0a93ea3c814ecca3ef021eea63b004ac37d137 (diff)
downloadnuttx-fbc35d5a9493c4475bc111a8dba1d24fe5a66622.tar.gz
nuttx-fbc35d5a9493c4475bc111a8dba1d24fe5a66622.tar.bz2
nuttx-fbc35d5a9493c4475bc111a8dba1d24fe5a66622.zip
Add larger images for media player. Also options to control spacing and borders on media player windows
Diffstat (limited to 'NxWidgets/nxwm')
-rw-r--r--NxWidgets/nxwm/Makefile3
-rwxr-xr-xNxWidgets/nxwm/images/mediaforward43x41.pngbin0 -> 317 bytes
-rwxr-xr-xNxWidgets/nxwm/images/mediagrip30x30.pngbin0 -> 252 bytes
-rwxr-xr-xNxWidgets/nxwm/images/mediapause21x41.pngbin0 -> 157 bytes
-rwxr-xr-xNxWidgets/nxwm/images/mediaplay21x41.pngbin0 -> 289 bytes
-rwxr-xr-xNxWidgets/nxwm/images/mediaplayer44x50.pngbin1098 -> 1098 bytes
-rwxr-xr-xNxWidgets/nxwm/images/mediarewind43x41.pngbin0 -> 316 bytes
-rw-r--r--NxWidgets/nxwm/include/nxwmconfig.hxx4
-rw-r--r--NxWidgets/nxwm/src/cmediaplayer.cxx113
-rw-r--r--NxWidgets/nxwm/src/glyph_mediagrip30x30.cxx266
-rw-r--r--NxWidgets/nxwm/src/glyph_mediaplayer44x50.cxx90
-rw-r--r--NxWidgets/nxwm/src/glyph_mplayer_controls43x41.cxx342
12 files changed, 741 insertions, 77 deletions
diff --git a/NxWidgets/nxwm/Makefile b/NxWidgets/nxwm/Makefile
index 624be08c2..ad9b39e24 100644
--- a/NxWidgets/nxwm/Makefile
+++ b/NxWidgets/nxwm/Makefile
@@ -88,7 +88,8 @@ endif
ifeq ($(CONFIG_NXWM_MEDIAPLAYER),y)
CXXSRCS += cmediaplayer.cxx
ifeq ($(CONFIG_NXWM_LARGE_ICONS),y)
-CXXSRCS += glyph_mediaplayer44x50.cxx glyph_mplayer_controls32x32.cxx
+CXXSRCS += glyph_mediaplayer44x50.cxx glyph_mplayer_controls43x41.cxx
+CXXSRCS += glyph_mediagrip30x30.cxx
else
CXXSRCS += glyph_mediaplayer24x24.cxx glyph_mplayer_controls32x32.cxx
endif
diff --git a/NxWidgets/nxwm/images/mediaforward43x41.png b/NxWidgets/nxwm/images/mediaforward43x41.png
new file mode 100755
index 000000000..3165856dd
--- /dev/null
+++ b/NxWidgets/nxwm/images/mediaforward43x41.png
Binary files differ
diff --git a/NxWidgets/nxwm/images/mediagrip30x30.png b/NxWidgets/nxwm/images/mediagrip30x30.png
new file mode 100755
index 000000000..40add47b7
--- /dev/null
+++ b/NxWidgets/nxwm/images/mediagrip30x30.png
Binary files differ
diff --git a/NxWidgets/nxwm/images/mediapause21x41.png b/NxWidgets/nxwm/images/mediapause21x41.png
new file mode 100755
index 000000000..35e815930
--- /dev/null
+++ b/NxWidgets/nxwm/images/mediapause21x41.png
Binary files differ
diff --git a/NxWidgets/nxwm/images/mediaplay21x41.png b/NxWidgets/nxwm/images/mediaplay21x41.png
new file mode 100755
index 000000000..aa96551ec
--- /dev/null
+++ b/NxWidgets/nxwm/images/mediaplay21x41.png
Binary files differ
diff --git a/NxWidgets/nxwm/images/mediaplayer44x50.png b/NxWidgets/nxwm/images/mediaplayer44x50.png
index c70a2ed7b..9eaa4e269 100755
--- a/NxWidgets/nxwm/images/mediaplayer44x50.png
+++ b/NxWidgets/nxwm/images/mediaplayer44x50.png
Binary files differ
diff --git a/NxWidgets/nxwm/images/mediarewind43x41.png b/NxWidgets/nxwm/images/mediarewind43x41.png
new file mode 100755
index 000000000..772186e6e
--- /dev/null
+++ b/NxWidgets/nxwm/images/mediarewind43x41.png
Binary files differ
diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx
index d6202c066..c6781bcd5 100644
--- a/NxWidgets/nxwm/include/nxwmconfig.hxx
+++ b/NxWidgets/nxwm/include/nxwmconfig.hxx
@@ -632,6 +632,10 @@
# define CONFIG_NXWM_MEDIAPLAYER_BACKGROUNDCOLOR CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR
#endif
+#ifndef CONFIG_NXWM_MEDIAPLAYER_XSPACING
+# define CONFIG_NXWM_MEDIAPLAYER_XSPACING 16
+#endif
+
#ifndef CONFIG_NXWM_MEDIAPLAYER_ICON
# define CONFIG_NXWM_MEDIAPLAYER_ICON NxWM::g_mediaplayerBitmap
#endif
diff --git a/NxWidgets/nxwm/src/cmediaplayer.cxx b/NxWidgets/nxwm/src/cmediaplayer.cxx
index 9c7601058..8f377ba8f 100644
--- a/NxWidgets/nxwm/src/cmediaplayer.cxx
+++ b/NxWidgets/nxwm/src/cmediaplayer.cxx
@@ -364,63 +364,116 @@ bool CMediaPlayer::createPlayer(void)
m_text->setFont(m_font);
- // Create the Play Image
+ // Create all bitmaps
NXWidgets::CRlePaletteBitmap *playBitmap = new NXWidgets::
CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_PLAY_ICON);
- uint32_t playControlX = (m_windowSize.w >> 1) - (playBitmap->getWidth() >> 1);
- uint32_t controlY = (180 * m_windowSize.h) >> 8;
+ NXWidgets::CRlePaletteBitmap *rewBitmap = new NXWidgets::
+ CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_REW_ICON);
- m_playPause = new NXWidgets::
- CImage(control, (nxgl_coord_t)playControlX, (nxgl_coord_t)controlY,
- playBitmap->getWidth(), playBitmap->getHeight(),
- playBitmap);
+ NXWidgets::CRlePaletteBitmap *fwdBitmap = new NXWidgets::
+ CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_FWD_ICON);
- m_playPause->setBorderless(true);
+ // Button widths will depend on if the buttons will be bordered or not
- // Create the Rewind Image
+ nxgl_coord_t playButtonW;
+ nxgl_coord_t rewButtonW;
+ nxgl_coord_t fwdButtonW;
- NXWidgets::CRlePaletteBitmap *rewBitmap = new NXWidgets::
- CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_REW_ICON);
+#ifdef CONFIG_NXWM_MEDIAPLAYER_BORDERS
+ // With the widest button
- uint32_t rewControlX = playControlX - rewBitmap->getWidth() - 16;
+ nxgl_coord_t buttonW = playBitmap->getWidth();
- m_rew = new NXWidgets::
- CImage(control, (nxgl_coord_t)rewControlX, (nxgl_coord_t)controlY,
- rewBitmap->getWidth(), rewBitmap->getHeight(),
- rewBitmap);
+ if (buttonW < rewBitmap->getWidth())
+ {
+ buttonW = rewBitmap->getWidth();
+ }
- m_rew->setBorderless(true);
+ if (buttonW < fwdBitmap->getWidth())
+ {
+ buttonW = fwdBitmap->getWidth();
+ }
- // Create the Forward Image
+ // Add little space around the bitmap and use this width for all buttons
- NXWidgets::CRlePaletteBitmap *fwdBitmap = new NXWidgets::
- CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_REW_ICON);
+ buttonW += 8;
+ playButtonW = buttonW;
+ rewButtonW = buttonW;
+ fwdButtonW = buttonW;
- fwdBitmap = new NXWidgets::
- CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_FWD_ICON);
+#else
+ // Use the bitmap image widths for the button widths (plus a bit)
+
+ playButtonW = playBitmap->getWidth() + 8;
+ rewButtonW = rewBitmap->getWidth() + 8;
+ fwdButtonW = fwdBitmap->getWidth() + 8;
+#endif
+
+ // Use the same height for all buttons
- uint32_t fwdControlX = playControlX + fwdBitmap->getWidth() + 16;
+ nxgl_coord_t buttonH = playBitmap->getHeight();
+
+ if (buttonH < rewBitmap->getHeight())
+ {
+ buttonH = rewBitmap->getHeight();
+ }
+
+ if (buttonH < fwdBitmap->getHeight())
+ {
+ buttonH = fwdBitmap->getHeight();
+ }
+
+ buttonH += 8;
+
+ // Create the Play Image
+
+ nxgl_coord_t playControlX = (m_windowSize.w >> 1) - (playButtonW >> 1);
+ uint32_t controlY = (180 * m_windowSize.h) >> 8;
+
+ m_playPause = new NXWidgets::
+ CImage(control, playControlX, (nxgl_coord_t)controlY,
+ playButtonW, buttonH, playBitmap);
+
+ // Create the Rewind Image
+
+ nxgl_coord_t rewControlX = playControlX - rewButtonW -
+ CONFIG_NXWM_MEDIAPLAYER_XSPACING;
+
+ m_rew = new NXWidgets::
+ CImage(control, rewControlX, (nxgl_coord_t)controlY,
+ rewButtonW, buttonH, rewBitmap);
+
+ // Create the Forward Image
+
+ nxgl_coord_t fwdControlX = playControlX + playButtonW +
+ CONFIG_NXWM_MEDIAPLAYER_XSPACING;
m_fwd = new NXWidgets::
- CImage(control, (nxgl_coord_t)fwdControlX, (nxgl_coord_t)controlY,
- fwdBitmap->getWidth(), fwdBitmap->getHeight(),
- fwdBitmap);
+ CImage(control, fwdControlX, (nxgl_coord_t)controlY,
+ fwdButtonW, buttonH, fwdBitmap);
+
+#ifndef CONFIG_NXWM_MEDIAPLAYER_BORDERS
+ // Make the images boarder-less if that is how we are configured
+ m_playPause->setBorderless(true);
+ m_rew->setBorderless(true);
m_fwd->setBorderless(true);
+#else
+ m_playPause->setBorderless(false);
+ m_rew->setBorderless(false);
+ m_fwd->setBorderless(false);
+#endif
// Create the Volume control
NXWidgets::CRlePaletteBitmap *volBitmap = new NXWidgets::
- CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_REW_ICON);
+ CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_VOL_ICON);
uint32_t volumeControlX = (9 * m_windowSize.w) >> 8;
uint32_t volumeControlY = (232 * m_windowSize.h) >> 8;
- volBitmap = new NXWidgets::
- CRlePaletteBitmap(&CONFIG_NXWM_MPLAYER_VOL_ICON);
-
m_volume = new NXWidgets::
CGlyphSliderHorizontal(control,
(nxgl_coord_t)volumeControlX,
diff --git a/NxWidgets/nxwm/src/glyph_mediagrip30x30.cxx b/NxWidgets/nxwm/src/glyph_mediagrip30x30.cxx
new file mode 100644
index 000000000..ecbf5e4f9
--- /dev/null
+++ b/NxWidgets/nxwm/src/glyph_mediagrip30x30.cxx
@@ -0,0 +1,266 @@
+/********************************************************************************************
+ * NxWidgets/nxwm/src/mediagrip30x30.cxx
+ *
+ * Copyright (C) 2014 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX, NxWidgets, nor the names of its contributors
+ * me be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ********************************************************************************************/
+
+/********************************************************************************************
+ * Included Files
+ ********************************************************************************************/
+
+#include <nuttx/config.h>
+
+#include <sys/types.h>
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <nuttx/nx/nxglib.h>
+#include <nuttx/video/fb.h>
+#include <nuttx/video/rgbcolors.h>
+
+#include "crlepalettebitmap.hxx"
+
+#include "nxwmconfig.hxx"
+#include "nxwmglyphs.hxx"
+
+/********************************************************************************************
+ * Pre-Processor Definitions
+ ********************************************************************************************/
+
+#define BITMAP_NROWS 30
+#define BITMAP_NCOLUMNS 30
+#define BITMAP_NLUTCODES 4
+
+#define MEDIA_GRIP_DARK_ICON 1
+
+/********************************************************************************************
+ * Private Bitmap Data
+ ********************************************************************************************/
+
+using namespace NxWM;
+
+/* RGB24 (8-8-8) Colors */
+
+#if CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
+# ifdef MEDIA_GRIP_DARK_ICON
+
+static const uint32_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x3663ab, 0x002199, 0xbdbdbd /* Codes 0-3 */
+};
+
+static const uint32_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x4884e4, 0x002ccc, 0xfcfcfc /* Codes 0-3 */
+};
+
+# else /* MEDIA_GRIP_DARK_ICON */
+
+static const uint32_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x4884e4, 0x002ccc, 0xfcfcfc /* Codes 0-3 */
+};
+
+static const uint32_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x5aa5ff, 0x0037ff, 0xffffff /* Codes 0-3 */
+};
+# endif /* MEDIA_GRIP_DARK_ICON */
+
+/* RGB16 (565) Colors */
+
+#elif CONFIG_NXWIDGETS_BPP == 16
+# ifdef MEDIA_GRIP_DARK_ICON
+
+static const uint16_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x3315, 0x0113, 0xbdf7 /* Codes 0-3 */
+};
+
+static const uint16_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x4c3c, 0x0179, 0xffff /* Codes 0-3 */
+};
+
+# else /* MEDIA_GRIP_DARK_ICON */
+
+static const uint16_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x4c3c, 0x0179, 0xffff /* Codes 0-3 */
+};
+
+static const uint16_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x5d3f, 0x01bf, 0xffff /* Codes 0-3 */
+};
+
+# endif /* MEDIA_GRIP_DARK_ICON */
+
+/* 8-bit color lookups. NOTE: This is really dumb! The lookup index is 8-bits and it used
+ * to lookup an 8-bit value. There is no savings in that! It would be better to just put
+ * the 8-bit color/greyscale value in the run-length encoded image and save the cost of these
+ * pointless lookups. But these pointless lookups do make the logic compatible with the
+ * 16- and 24-bit types.
+ */
+
+#elif CONFIG_NXWIDGETS_BPP == 8
+# ifdef CONFIG_NXWIDGETS_GREYSCALE
+
+/* 8-bit Greyscale */
+
+# ifdef MEDIA_GRIP_DARK_ICON
+
+static const uint8_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x5d, 0x24, 0xbd /* Codes 0-3 */
+};
+
+static const uint8_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x7d, 0x31, 0xfc /* Codes 0-3 */
+};
+
+# else /* MEDIA_GRIP_DARK_ICON */
+
+static const uint8_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x7d, 0x31, 0xfc /* Codes 0-3 */
+};
+
+static const uint8_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x98, 0x3d, 0xff /* Codes 0-3 */
+};
+
+# endif /* MEDIA_GRIP_DARK_ICON */
+
+# else /* CONFIG_NXWIDGETS_GREYSCALE */
+
+/* RGB8 (332) Colors */
+
+# ifdef MEDIA_GRIP_DARK_ICON
+
+static const nxgl_mxpixel_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x2e, 0x06, 0xb6 /* Codes 0-3 */
+};
+
+static const nxgl_mxpixel_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x53, 0x07, 0xff /* Codes 0-3 */
+};
+
+# else /* MEDIA_GRIP_DARK_ICON */
+
+static const nxgl_mxpixel_t g_gripNormalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x53, 0x07, 0xff /* Codes 0-3 */
+};
+
+static const nxgl_mxpixel_t g_gripBrightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ 0x57, 0x07, 0xff /* Codes 0-3 */
+};
+
+# endif /* MEDIA_GRIP_DARK_ICON */
+# endif /* CONFIG_NXWIDGETS_GREYSCALE */
+#else
+# error Unsupported pixel format
+#endif
+
+static const struct NXWidgets::SRlePaletteBitmapEntry g_gripRleEntries[] =
+{
+ { 1, 0}, { 1, 1}, {26, 2}, { 1, 1}, { 1, 0}, /* Row 0 */
+ { 1, 1}, {28, 2}, { 1, 1}, /* Row 1 */
+ {30, 2}, /* Row 2 */
+ {30, 2}, /* Row 3 */
+ {30, 2}, /* Row 4 */
+ {30, 2}, /* Row 5 */
+ {12, 2}, { 1, 1}, { 4, 3}, { 1, 1}, {12, 2}, /* Row 6 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 7 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 8 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 9 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 10 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 11 */
+ { 6, 2}, { 1, 1}, {16, 3}, { 1, 1}, { 6, 2}, /* Row 12 */
+ { 6, 2}, {18, 3}, { 6, 2}, /* Row 13 */
+ { 6, 2}, {18, 3}, { 6, 2}, /* Row 14 */
+ { 6, 2}, {18, 3}, { 6, 2}, /* Row 15 */
+ { 6, 2}, {18, 3}, { 6, 2}, /* Row 16 */
+ { 6, 2}, { 1, 1}, {16, 3}, { 1, 1}, { 6, 2}, /* Row 17 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 18 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 19 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 20 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 21 */
+ {12, 2}, { 6, 3}, {12, 2}, /* Row 22 */
+ {12, 2}, { 1, 1}, { 4, 3}, { 1, 1}, {12, 2}, /* Row 23 */
+ {30, 2}, /* Row 24 */
+ {30, 2}, /* Row 25 */
+ {30, 2}, /* Row 26 */
+ {30, 2}, /* Row 27 */
+ { 1, 1}, {28, 2}, { 1, 1}, /* Row 28 */
+ { 1, 0}, { 1, 1}, {26, 2}, { 1, 1}, { 1, 0} /* Row 29 */
+};
+
+/********************************************************************************************
+ * Public Bitmap Structure Definitions
+ ********************************************************************************************/
+
+const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerVolBitmap =
+{
+ CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
+ CONFIG_NXWIDGETS_FMT, // fmt - Color format
+ BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
+ BITMAP_NCOLUMNS, // width - Width in pixels
+ BITMAP_NROWS, // height - Height in rows
+ { // lut - Pointer to the beginning of the Look-Up Table (LUT)
+ g_gripNormalLut, // Index 0: Unselected LUT
+ g_gripBrightLut, // Index 1: Selected LUT
+ },
+ g_gripRleEntries // data - Pointer to the beginning of the RLE data
+};
diff --git a/NxWidgets/nxwm/src/glyph_mediaplayer44x50.cxx b/NxWidgets/nxwm/src/glyph_mediaplayer44x50.cxx
index c3a9412a5..0d82e6673 100644
--- a/NxWidgets/nxwm/src/glyph_mediaplayer44x50.cxx
+++ b/NxWidgets/nxwm/src/glyph_mediaplayer44x50.cxx
@@ -56,7 +56,7 @@
* Pre-Processor Definitions
********************************************************************************************/
-#define BITMAP_NROWS 50
+#define BITMAP_NROWS 48
#define BITMAP_NCOLUMNS 44
#define BITMAP_NLUTCODES 5
@@ -215,72 +215,70 @@ static const nxgl_mxpixel_t g_mediaplayerBrightLut[BITMAP_NLUTCODES] =
static const struct NXWidgets::SRlePaletteBitmapEntry g_mediaplayerRleEntries[] =
{
- {41, 0}, { 3, 1}, /* Row 0 */
+ {38, 0}, { 6, 1}, /* Row 0 */
{38, 0}, { 6, 1}, /* Row 1 */
- {38, 0}, { 6, 1}, /* Row 2 */
- {34, 0}, {10, 1}, /* Row 3 */
- {30, 0}, {14, 1}, /* Row 4 */
- {26, 0}, {13, 1}, { 2, 2}, { 3, 1}, /* Row 5 */
- {22, 0}, {13, 1}, { 6, 2}, { 3, 1}, /* Row 6 */
- {22, 0}, {13, 1}, { 6, 2}, { 3, 1}, /* Row 7 */
- {18, 0}, {13, 1}, {10, 2}, { 3, 1}, /* Row 8 */
- {14, 0}, {13, 1}, {14, 2}, { 3, 1}, /* Row 9 */
- {14, 0}, { 9, 1}, {18, 2}, { 3, 1}, /* Row 10 */
- {14, 0}, { 9, 1}, {18, 2}, { 3, 1}, /* Row 11 */
- {14, 0}, { 5, 1}, {19, 2}, { 1, 1}, { 2, 2}, { 3, 1}, /* Row 12 */
- {14, 0}, { 3, 1}, {17, 2}, { 5, 1}, { 2, 2}, { 3, 1}, /* Row 13 */
- {14, 0}, { 3, 1}, {13, 2}, { 9, 1}, { 2, 2}, { 3, 1}, /* Row 14 */
- {14, 0}, { 3, 1}, { 9, 2}, {13, 1}, { 2, 2}, { 3, 1}, /* Row 15 */
- {14, 0}, { 3, 1}, { 9, 2}, {13, 1}, { 2, 2}, { 3, 1}, /* Row 16 */
- {14, 0}, { 3, 1}, { 5, 2}, {10, 1}, { 4, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 17 */
- {14, 0}, { 3, 1}, { 2, 2}, { 9, 1}, { 8, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 18 */
- {14, 0}, { 3, 1}, { 2, 2}, { 6, 1}, {11, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 19 */
- {14, 0}, { 3, 1}, { 2, 2}, { 6, 1}, {11, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 20 */
+ {34, 0}, {10, 1}, /* Row 2 */
+ {30, 0}, {14, 1}, /* Row 3 */
+ {26, 0}, {18, 1}, /* Row 4 */
+ {22, 0}, {17, 1}, { 2, 2}, { 3, 1}, /* Row 5 */
+ {18, 0}, {17, 1}, { 6, 2}, { 3, 1}, /* Row 6 */
+ {14, 0}, {17, 1}, {10, 2}, { 3, 1}, /* Row 7 */
+ {14, 0}, {13, 1}, {14, 2}, { 3, 1}, /* Row 8 */
+ {14, 0}, { 9, 1}, {18, 2}, { 3, 1}, /* Row 9 */
+ {14, 0}, { 5, 1}, {22, 2}, { 3, 1}, /* Row 10 */
+ {14, 0}, { 3, 1}, {21, 2}, { 1, 1}, { 2, 2}, { 3, 1}, /* Row 11 */
+ {14, 0}, { 3, 1}, {17, 2}, { 5, 1}, { 2, 2}, { 3, 1}, /* Row 12 */
+ {14, 0}, { 3, 1}, {13, 2}, { 9, 1}, { 2, 2}, { 3, 1}, /* Row 13 */
+ {14, 0}, { 3, 1}, { 9, 2}, {13, 1}, { 2, 2}, { 3, 1}, /* Row 14 */
+ {14, 0}, { 3, 1}, { 5, 2}, {12, 1}, { 2, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 15 */
+ {14, 0}, { 3, 1}, { 2, 2}, {11, 1}, { 6, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 16 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 7, 1}, {10, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 17 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 18 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 19 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 20 */
{14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 21 */
{14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 22 */
{14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 23 */
{14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 24 */
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 25 */
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 26 */
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 9, 0}, { 1, 3}, { 2, 4}, { 1, 3}, /* Row 27 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 9, 0}, { 1, 3}, { 2, 4}, { 1, 3}, /* Row 25 */
{ 1, 0}, { 3, 1}, { 2, 2}, { 3, 1},
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 6, 0}, { 2, 3}, { 9, 1}, { 2, 2}, /* Row 28 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 6, 0}, { 2, 3}, { 9, 1}, { 2, 2}, /* Row 26 */
{ 3, 1},
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 5, 0}, { 1, 4}, {11, 1}, { 2, 2}, /* Row 29 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 5, 0}, { 1, 4}, {11, 1}, { 2, 2}, /* Row 27 */
{ 3, 1},
- {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 5, 0}, { 7, 1}, { 1, 4}, { 4, 1}, /* Row 30 */
+ {14, 0}, { 3, 1}, { 2, 2}, { 3, 1}, { 5, 0}, { 7, 1}, { 1, 4}, { 4, 1}, /* Row 28 */
{ 2, 2}, { 3, 1},
- { 9, 0}, { 1, 3}, { 2, 4}, { 1, 3}, { 1, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 31 */
+ { 9, 0}, { 1, 3}, { 2, 4}, { 1, 3}, { 1, 0}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 29 */
{ 4, 0}, { 3, 1}, { 1, 4}, { 1, 1}, { 5, 2}, { 2, 4}, { 1, 1}, { 2, 2},
{ 3, 1},
- { 6, 0}, { 2, 4}, { 9, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 1, 4}, { 2, 1}, /* Row 32 */
+ { 6, 0}, { 2, 4}, { 9, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 1, 4}, { 2, 1}, /* Row 30 */
{ 2, 4}, {11, 2}, { 3, 1},
- { 5, 0}, { 1, 4}, {11, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, /* Row 33 */
+ { 5, 0}, { 1, 4}, {11, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, /* Row 31 */
{ 3, 1},
- { 5, 0}, {12, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, /* Row 34 */
- { 4, 0}, { 3, 1}, { 1, 4}, { 1, 1}, { 5, 2}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 35 */
+ { 5, 0}, {12, 1}, { 2, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, /* Row 32 */
+ { 4, 0}, { 3, 1}, { 1, 4}, { 1, 1}, { 5, 2}, { 3, 1}, { 2, 2}, { 3, 1}, /* Row 33 */
{ 2, 0}, { 1, 3}, { 2, 1}, {14, 2}, { 3, 1},
- { 3, 0}, { 1, 4}, { 2, 1}, { 2, 3}, {11, 2}, { 3, 1}, { 2, 0}, { 1, 4}, /* Row 36 */
+ { 3, 0}, { 1, 4}, { 2, 1}, { 2, 3}, {11, 2}, { 3, 1}, { 2, 0}, { 1, 4}, /* Row 34 */
{ 2, 1}, {14, 2}, { 3, 1},
- { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, /* Row 37 */
- { 2, 0}, { 1, 3}, { 2, 1}, {14, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, /* Row 38 */
+ { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, /* Row 35 */
+ { 2, 0}, { 1, 3}, { 2, 1}, {14, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {13, 2}, /* Row 36 */
{ 3, 1},
- { 2, 0}, { 1, 3}, { 2, 1}, {14, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {12, 2}, /* Row 39 */
+ { 2, 0}, { 1, 3}, { 2, 1}, {14, 2}, { 3, 1}, { 3, 0}, { 3, 1}, {12, 2}, /* Row 37 */
{ 1, 4}, { 3, 1},
- { 2, 0}, { 1, 4}, { 2, 1}, {14, 2}, { 3, 1}, { 4, 0}, { 4, 1}, {10, 2}, /* Row 40 */
+ { 2, 0}, { 1, 4}, { 2, 1}, {14, 2}, { 3, 1}, { 4, 0}, { 4, 1}, {10, 2}, /* Row 38 */
{ 3, 1}, { 1, 3},
- { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 4, 0}, { 1, 3}, { 5, 1}, { 1, 4}, /* Row 41 */
+ { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 4, 0}, { 1, 3}, { 5, 1}, { 1, 4}, /* Row 39 */
{ 5, 2}, { 1, 4}, { 4, 1}, { 1, 0},
- { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 5, 0}, { 1, 3}, {14, 1}, { 2, 0}, /* Row 42 */
- { 3, 0}, { 3, 1}, {12, 2}, { 1, 4}, { 2, 1}, { 1, 3}, { 5, 0}, { 1, 3}, /* Row 43 */
+ { 3, 0}, { 3, 1}, {13, 2}, { 3, 1}, { 5, 0}, { 1, 3}, {14, 1}, { 2, 0}, /* Row 40 */
+ { 3, 0}, { 3, 1}, {12, 2}, { 1, 4}, { 2, 1}, { 1, 3}, { 5, 0}, { 1, 3}, /* Row 41 */
{12, 1}, { 1, 4}, { 3, 0},
- { 4, 0}, { 4, 1}, {10, 2}, { 3, 1}, { 1, 4}, { 9, 0}, { 1, 4}, { 7, 1}, /* Row 44 */
+ { 4, 0}, { 4, 1}, {10, 2}, { 3, 1}, { 1, 4}, { 9, 0}, { 1, 4}, { 7, 1}, /* Row 42 */
{ 1, 3}, { 4, 0},
- { 4, 0}, { 1, 3}, { 5, 1}, { 1, 4}, { 5, 2}, { 1, 4}, { 4, 1}, {23, 0}, /* Row 45 */
- { 5, 0}, { 1, 3}, {13, 1}, {25, 0}, /* Row 46 */
- { 7, 0}, {11, 1}, {26, 0}, /* Row 47 */
- { 9, 0}, { 1, 3}, { 4, 1}, { 2, 4}, {28, 0}, /* Row 48 */
- {44, 0} /* Row 49 */
+ { 4, 0}, { 1, 3}, { 5, 1}, { 1, 4}, { 5, 2}, { 1, 4}, { 4, 1}, {23, 0}, /* Row 43 */
+ { 5, 0}, { 1, 3}, {13, 1}, {25, 0}, /* Row 44 */
+ { 7, 0}, {11, 1}, {26, 0}, /* Row 45 */
+ { 9, 0}, { 1, 3}, { 4, 1}, { 2, 4}, {28, 0}, /* Row 46 */
+ {44, 0} /* Row 47 */
};
/********************************************************************************************
diff --git a/NxWidgets/nxwm/src/glyph_mplayer_controls43x41.cxx b/NxWidgets/nxwm/src/glyph_mplayer_controls43x41.cxx
new file mode 100644
index 000000000..505d612d4
--- /dev/null
+++ b/NxWidgets/nxwm/src/glyph_mplayer_controls43x41.cxx
@@ -0,0 +1,342 @@
+/********************************************************************************************
+ * NxWidgets/nxwm/src/glyph_mediaplayer43x41.cxx
+ *
+ * Copyright (C) 2014 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ * 3. Neither the name NuttX, NxWidgets, nor the names of its contributors
+ * me be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ ********************************************************************************************/
+
+/********************************************************************************************
+ * Included Files
+ ********************************************************************************************/
+
+/* Automatically NuttX bitmap file. */
+/* Generated from play_music.png by bitmap_converter.py. */
+
+#include <nuttx/config.h>
+
+#include <sys/types.h>
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <nuttx/nx/nxglib.h>
+#include <nuttx/video/fb.h>
+#include <nuttx/video/rgbcolors.h>
+
+#include "crlepalettebitmap.hxx"
+
+#include "nxwmconfig.hxx"
+#include "nxwmglyphs.hxx"
+
+/********************************************************************************************
+ * Pre-Processor Definitions
+ ********************************************************************************************/
+
+#define FORWARD_BITMAP_NROWS 41
+#define FORWARD_BITMAP_NCOLUMNS 43
+
+#define PLAY_BITMAP_NROWS 41
+#define PLAY_BITMAP_NCOLUMNS 21
+
+#define REWIND_BITMAPNROWS 41
+#define REWIND_BITMAPNCOLUMNS 43
+
+#define PAUSE_BITMAP_NROWS 41
+#define PAUSE_BITMAP_NCOLUMNS 21
+
+#define BITMAP_NLUTCODES 8
+
+/********************************************************************************************
+ * Private Data
+ ********************************************************************************************/
+
+using namespace NxWM;
+
+/* RGB Colors */
+
+static const NXWidgets::nxwidget_pixel_t g_normalLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ MKRGB(189,189,189) /* Code 1 */
+};
+
+static const NXWidgets::nxwidget_pixel_t g_brightLut[BITMAP_NLUTCODES] =
+{
+ CONFIG_NXWM_DEFAULT_BACKGROUNDCOLOR, /* Code 0 */
+ MKRGB(252,252,252) /* Code 1 */
+};
+
+/* Bitmap definition for the "Forward" button */
+
+static const struct NXWidgets::SRlePaletteBitmapEntry g_forwardRleEntries[] =
+{
+ { 1, 1}, {21, 0}, { 1, 1}, {20, 0}, /* Row 0 */
+ { 2, 1}, {20, 0}, { 2, 1}, {19, 0}, /* Row 1 */
+ { 3, 1}, {19, 0}, { 3, 1}, {18, 0}, /* Row 2 */
+ { 4, 1}, {18, 0}, { 4, 1}, {17, 0}, /* Row 3 */
+ { 5, 1}, {17, 0}, { 5, 1}, {16, 0}, /* Row 4 */
+ { 6, 1}, {16, 0}, { 6, 1}, {15, 0}, /* Row 5 */
+ { 7, 1}, {15, 0}, { 7, 1}, {14, 0}, /* Row 6 */
+ { 8, 1}, {14, 0}, { 8, 1}, {13, 0}, /* Row 7 */
+ { 9, 1}, {13, 0}, { 9, 1}, {12, 0}, /* Row 8 */
+ {10, 1}, {12, 0}, {10, 1}, {11, 0}, /* Row 9 */
+ {11, 1}, {11, 0}, {11, 1}, {10, 0}, /* Row 10 */
+ {12, 1}, {10, 0}, {12, 1}, { 9, 0}, /* Row 11 */
+ {13, 1}, { 9, 0}, {13, 1}, { 8, 0}, /* Row 12 */
+ {14, 1}, { 8, 0}, {14, 1}, { 7, 0}, /* Row 13 */
+ {15, 1}, { 7, 0}, {15, 1}, { 6, 0}, /* Row 14 */
+ {16, 1}, { 6, 0}, {16, 1}, { 5, 0}, /* Row 15 */
+ {17, 1}, { 5, 0}, {17, 1}, { 4, 0}, /* Row 16 */
+ {18, 1}, { 4, 0}, {18, 1}, { 3, 0}, /* Row 17 */
+ {19, 1}, { 3, 0}, {19, 1}, { 2, 0}, /* Row 18 */
+ {20, 1}, { 2, 0}, {20, 1}, { 1, 0}, /* Row 19 */
+ {21, 1}, { 1, 0}, {21, 1}, /* Row 20 */
+ {20, 1}, { 2, 0}, {20, 1}, { 1, 0}, /* Row 21 */
+ {19, 1}, { 3, 0}, {19, 1}, { 2, 0}, /* Row 22 */
+ {18, 1}, { 4, 0}, {18, 1}, { 3, 0}, /* Row 23 */
+ {17, 1}, { 5, 0}, {17, 1}, { 4, 0}, /* Row 24 */
+ {16, 1}, { 6, 0}, {16, 1}, { 5, 0}, /* Row 25 */
+ {15, 1}, { 7, 0}, {15, 1}, { 6, 0}, /* Row 26 */
+ {14, 1}, { 8, 0}, {14, 1}, { 7, 0}, /* Row 27 */
+ {13, 1}, { 9, 0}, {13, 1}, { 8, 0}, /* Row 28 */
+ {12, 1}, {10, 0}, {12, 1}, { 9, 0}, /* Row 29 */
+ {11, 1}, {11, 0}, {11, 1}, {10, 0}, /* Row 30 */
+ {10, 1}, {12, 0}, {10, 1}, {11, 0}, /* Row 31 */
+ { 9, 1}, {13, 0}, { 9, 1}, {12, 0}, /* Row 32 */
+ { 8, 1}, {14, 0}, { 8, 1}, {13, 0}, /* Row 33 */
+ { 7, 1}, {15, 0}, { 7, 1}, {14, 0}, /* Row 34 */
+ { 6, 1}, {16, 0}, { 6, 1}, {15, 0}, /* Row 35 */
+ { 5, 1}, {17, 0}, { 5, 1}, {16, 0}, /* Row 36 */
+ { 4, 1}, {18, 0}, { 4, 1}, {17, 0}, /* Row 37 */
+ { 3, 1}, {19, 0}, { 3, 1}, {18, 0}, /* Row 38 */
+ { 2, 1}, {20, 0}, { 2, 1}, {19, 0}, /* Row 39 */
+ { 1, 1}, {21, 0}, { 1, 1}, {20, 0} /* Row 40 */
+};
+
+/* Bitmap definition for the "Play" button */
+
+static const struct NXWidgets::SRlePaletteBitmapEntry g_playRleEntries[] =
+{
+ { 1, 1}, {20, 0}, /* Row 0 */
+ { 2, 1}, {19, 0}, /* Row 1 */
+ { 3, 1}, {18, 0}, /* Row 2 */
+ { 4, 1}, {17, 0}, /* Row 3 */
+ { 5, 1}, {16, 0}, /* Row 4 */
+ { 6, 1}, {15, 0}, /* Row 5 */
+ { 7, 1}, {14, 0}, /* Row 6 */
+ { 8, 1}, {13, 0}, /* Row 7 */
+ { 9, 1}, {12, 0}, /* Row 8 */
+ {10, 1}, {11, 0}, /* Row 9 */
+ {11, 1}, {10, 0}, /* Row 10 */
+ {12, 1}, { 9, 0}, /* Row 11 */
+ {13, 1}, { 8, 0}, /* Row 12 */
+ {14, 1}, { 7, 0}, /* Row 13 */
+ {15, 1}, { 6, 0}, /* Row 14 */
+ {16, 1}, { 5, 0}, /* Row 15 */
+ {17, 1}, { 4, 0}, /* Row 16 */
+ {18, 1}, { 3, 0}, /* Row 17 */
+ {19, 1}, { 2, 0}, /* Row 18 */
+ {20, 1}, { 1, 0}, /* Row 19 */
+ {21, 1}, /* Row 20 */
+ {20, 1}, { 1, 0}, /* Row 21 */
+ {19, 1}, { 2, 0}, /* Row 22 */
+ {18, 1}, { 3, 0}, /* Row 23 */
+ {17, 1}, { 4, 0}, /* Row 24 */
+ {16, 1}, { 5, 0}, /* Row 25 */
+ {15, 1}, { 6, 0}, /* Row 26 */
+ {14, 1}, { 7, 0}, /* Row 27 */
+ {13, 1}, { 8, 0}, /* Row 28 */
+ {12, 1}, { 9, 0}, /* Row 29 */
+ {11, 1}, {10, 0}, /* Row 30 */
+ {10, 1}, {11, 0}, /* Row 31 */
+ { 9, 1}, {12, 0}, /* Row 32 */
+ { 8, 1}, {13, 0}, /* Row 33 */
+ { 7, 1}, {14, 0}, /* Row 34 */
+ { 6, 1}, {15, 0}, /* Row 35 */
+ { 5, 1}, {16, 0}, /* Row 36 */
+ { 4, 1}, {17, 0}, /* Row 37 */
+ { 3, 1}, {18, 0}, /* Row 38 */
+ { 2, 1}, {19, 0}, /* Row 39 */
+ { 1, 1}, {20, 0} /* Row 40 */
+};
+
+/* Bitmap definition for "Rewind" control */
+
+static const struct NXWidgets::SRlePaletteBitmapEntry g_rewindRleEntries[] =
+{
+ {20, 0}, { 1, 1}, {21, 0}, { 1, 1}, /* Row 0 */
+ {19, 0}, { 2, 1}, {20, 0}, { 2, 1}, /* Row 1 */
+ {18, 0}, { 3, 1}, {19, 0}, { 3, 1}, /* Row 2 */
+ {17, 0}, { 4, 1}, {18, 0}, { 4, 1}, /* Row 3 */
+ {16, 0}, { 5, 1}, {17, 0}, { 5, 1}, /* Row 4 */
+ {15, 0}, { 6, 1}, {16, 0}, { 6, 1}, /* Row 5 */
+ {14, 0}, { 7, 1}, {15, 0}, { 7, 1}, /* Row 6 */
+ {13, 0}, { 8, 1}, {14, 0}, { 8, 1}, /* Row 7 */
+ {12, 0}, { 9, 1}, {13, 0}, { 9, 1}, /* Row 8 */
+ {11, 0}, {10, 1}, {12, 0}, {10, 1}, /* Row 9 */
+ {10, 0}, {11, 1}, {11, 0}, {11, 1}, /* Row 10 */
+ { 9, 0}, {12, 1}, {10, 0}, {12, 1}, /* Row 11 */
+ { 8, 0}, {13, 1}, { 9, 0}, {13, 1}, /* Row 12 */
+ { 7, 0}, {14, 1}, { 8, 0}, {14, 1}, /* Row 13 */
+ { 6, 0}, {15, 1}, { 7, 0}, {15, 1}, /* Row 14 */
+ { 5, 0}, {16, 1}, { 6, 0}, {16, 1}, /* Row 15 */
+ { 4, 0}, {17, 1}, { 5, 0}, {17, 1}, /* Row 16 */
+ { 3, 0}, {18, 1}, { 4, 0}, {18, 1}, /* Row 17 */
+ { 2, 0}, {19, 1}, { 3, 0}, {19, 1}, /* Row 18 */
+ { 1, 0}, {20, 1}, { 2, 0}, {20, 1}, /* Row 19 */
+ {21, 1}, { 1, 0}, {21, 1}, /* Row 20 */
+ { 1, 0}, {20, 1}, { 2, 0}, {20, 1}, /* Row 21 */
+ { 2, 0}, {19, 1}, { 3, 0}, {19, 1}, /* Row 22 */
+ { 3, 0}, {18, 1}, { 4, 0}, {18, 1}, /* Row 23 */
+ { 4, 0}, {17, 1}, { 5, 0}, {17, 1}, /* Row 24 */
+ { 5, 0}, {16, 1}, { 6, 0}, {16, 1}, /* Row 25 */
+ { 6, 0}, {15, 1}, { 7, 0}, {15, 1}, /* Row 26 */
+ { 7, 0}, {14, 1}, { 8, 0}, {14, 1}, /* Row 27 */
+ { 8, 0}, {13, 1}, { 9, 0}, {13, 1}, /* Row 28 */
+ { 9, 0}, {12, 1}, {10, 0}, {12, 1}, /* Row 29 */
+ {10, 0}, {11, 1}, {11, 0}, {11, 1}, /* Row 30 */
+ {11, 0}, {10, 1}, {12, 0}, {10, 1}, /* Row 31 */
+ {12, 0}, { 9, 1}, {13, 0}, { 9, 1}, /* Row 32 */
+ {13, 0}, { 8, 1}, {14, 0}, { 8, 1}, /* Row 33 */
+ {14, 0}, { 7, 1}, {15, 0}, { 7, 1}, /* Row 34 */
+ {15, 0}, { 6, 1}, {16, 0}, { 6, 1}, /* Row 35 */
+ {16, 0}, { 5, 1}, {17, 0}, { 5, 1}, /* Row 36 */
+ {17, 0}, { 4, 1}, {18, 0}, { 4, 1}, /* Row 37 */
+ {18, 0}, { 3, 1}, {19, 0}, { 3, 1}, /* Row 38 */
+ {19, 0}, { 2, 1}, {20, 0}, { 2, 1}, /* Row 39 */
+ {20, 0}, { 1, 1}, {21, 0}, { 1, 1} /* Row 40 */
+};
+
+/* Bitmap definition for the "Pause" button */
+
+static const struct NXWidgets::SRlePaletteBitmapEntry g_pauseRleEntries[] =
+{
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 0 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 1 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 2 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 3 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 4 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 5 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 6 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 7 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 8 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 9 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 10 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 11 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 12 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 13 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 14 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 15 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 16 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 17 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 18 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 19 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 20 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 21 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 22 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 23 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 24 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 25 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 26 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 27 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 28 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 29 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 30 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 31 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 32 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 33 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 34 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 35 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 36 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 37 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 38 */
+ { 2, 1}, { 5, 0}, {14, 1}, /* Row 39 */
+ { 2, 1}, { 5, 0}, {14, 1} /* Row 40 */
+};
+
+/********************************************************************************************
+ * Public Data
+ ********************************************************************************************/
+
+const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerFwdBitmap =
+{
+ CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
+ CONFIG_NXWIDGETS_FMT, // fmt - Color format
+ BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
+ FORWARD_BITMAP_NCOLUMNS, // width - Width in pixels
+ FORWARD_BITMAP_NROWS, // height - Height in rows
+ { // lut - Pointer to the beginning of the Look-Up Table (LUT)
+ g_normalLut, // Index 0: Unselected LUT
+ g_brightLut, // Index 1: Selected LUT
+ },
+ g_forwardRleEntries // data - Pointer to the beginning of the RLE data
+};
+
+const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerPlayBitmap =
+{
+ CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
+ CONFIG_NXWIDGETS_FMT, // fmt - Color format
+ BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
+ PLAY_BITMAP_NCOLUMNS, // width - Width in pixels
+ PLAY_BITMAP_NROWS, // height - Height in rows
+ { // lut - Pointer to the beginning of the Look-Up Table (LUT)
+ g_normalLut, // Index 0: Unselected LUT
+ g_brightLut, // Index 1: Selected LUT
+ },
+ g_playRleEntries // data - Pointer to the beginning of the RLE data
+};
+
+const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerRewBitmap =
+{
+ CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
+ CONFIG_NXWIDGETS_FMT, // fmt - Color format
+ BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
+ REWIND_BITMAPNCOLUMNS, // width - Width in pixels
+ REWIND_BITMAPNROWS, // height - Height in rows
+ { // lut - Pointer to the beginning of the Look-Up Table (LUT)
+ g_normalLut, // Index 0: Unselected LUT
+ g_brightLut, // Index 1: Selected LUT
+ },
+ g_rewindRleEntries // data - Pointer to the beginning of the RLE data
+};
+
+const struct NXWidgets::SRlePaletteBitmap NxWM::g_mplayerPauseBitmap =
+{
+ CONFIG_NXWIDGETS_BPP, // bpp - Bits per pixel
+ CONFIG_NXWIDGETS_FMT, // fmt - Color format
+ BITMAP_NLUTCODES, // nlut - Number of colors in the lLook-Up Table (LUT)
+ PAUSE_BITMAP_NCOLUMNS, // width - Width in pixels
+ PAUSE_BITMAP_NROWS, // height - Height in rows
+ { // lut - Pointer to the beginning of the Look-Up Table (LUT)
+ g_normalLut, // Index 0: Unselected LUT
+ g_brightLut, // Index 1: Selected LUT
+ },
+ g_pauseRleEntries // data - Pointer to the beginning of the RLE data
+};