2002-05-17 12:22:24 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert E. Hak
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-05-17 12:22:24 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2002-08-12 07:14:46 +00:00
|
|
|
#include <string.h>
|
2002-09-12 13:33:59 +00:00
|
|
|
#include "lcd.h"
|
|
|
|
#include "font.h"
|
2002-08-09 11:57:31 +00:00
|
|
|
#include "kernel.h"
|
2002-08-12 07:14:46 +00:00
|
|
|
#include "rtc.h"
|
2002-12-18 18:47:11 +00:00
|
|
|
#include "powermgmt.h"
|
2002-05-17 12:22:24 +00:00
|
|
|
|
2002-10-14 12:50:20 +00:00
|
|
|
#include "settings.h"
|
|
|
|
|
2008-10-15 06:38:51 +00:00
|
|
|
#include "metadata.h"
|
2002-05-17 12:22:24 +00:00
|
|
|
#include "icons.h"
|
|
|
|
|
2004-07-19 21:46:37 +00:00
|
|
|
const unsigned char bitmap_icons_5x8[][5] =
|
2002-08-07 10:35:26 +00:00
|
|
|
{
|
2006-11-06 18:07:30 +00:00
|
|
|
[Icon_Lock_Main] =
|
|
|
|
{0x78, 0x7f, 0x49, 0x7f, 0x78}, /* Lock Main */
|
|
|
|
[Icon_Lock_Remote] =
|
|
|
|
{0x78, 0x7f, 0x49, 0x7f, 0x78}, /* Lock Remote */
|
|
|
|
[Icon_Stereo] =
|
|
|
|
{0x7f, 0x22, 0x1c, 0x22, 0x7f}, /* Stereo recording */
|
|
|
|
[Icon_Mono] =
|
|
|
|
{0x00, 0x1c, 0x22, 0x7f, 0x00}, /* Mono recording */
|
2002-08-07 10:35:26 +00:00
|
|
|
};
|
|
|
|
|
2004-07-19 21:46:37 +00:00
|
|
|
const unsigned char bitmap_icons_7x8[][7] =
|
2002-08-07 10:35:26 +00:00
|
|
|
{
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x08,0x1c,0x3e,0x3e,0x3e,0x14,0x14}, /* Power plug */
|
2005-06-23 02:18:29 +00:00
|
|
|
{0x1c,0x14,0x3e,0x2a,0x22,0x1c,0x08}, /* USB plug */
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x01,0x1e,0x1c,0x3e,0x7f,0x20,0x40}, /* Speaker mute */
|
|
|
|
{0x00,0x7f,0x7f,0x3e,0x1c,0x08,0x00}, /* Play */
|
|
|
|
{0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f}, /* Stop */
|
|
|
|
{0x00,0x7f,0x7f,0x00,0x7f,0x7f,0x00}, /* Pause */
|
|
|
|
{0x7f,0x3e,0x1c,0x7f,0x3e,0x1c,0x08}, /* Fast forward */
|
|
|
|
{0x08,0x1c,0x3e,0x7f,0x1c,0x3e,0x7f}, /* Fast backward */
|
|
|
|
{0x1c,0x3e,0x7f,0x7f,0x7f,0x3e,0x1c}, /* Record */
|
|
|
|
{0x1c,0x3e,0x7f,0x00,0x7f,0x3e,0x1c}, /* Record pause */
|
2005-11-19 20:45:32 +00:00
|
|
|
{0x40,0xa0,0xa0,0xa0,0x7f,0x02,0x02}, /* Radio on */
|
|
|
|
{0x42,0xa4,0xa8,0xb0,0x7f,0x22,0x42}, /* Radio mute */
|
2002-10-29 13:59:51 +00:00
|
|
|
{0x44,0x4e,0x5f,0x44,0x44,0x44,0x38}, /* Repeat playmode */
|
|
|
|
{0x44,0x4e,0x5f,0x44,0x38,0x02,0x7f}, /* Repeat-one playmode */
|
2002-10-08 10:10:16 +00:00
|
|
|
{0x3e,0x41,0x51,0x41,0x45,0x41,0x3e}, /* Shuffle playmode (dice) */
|
|
|
|
{0x04,0x0c,0x1c,0x3c,0x1c,0x0c,0x04}, /* Down-arrow */
|
|
|
|
{0x20,0x30,0x38,0x3c,0x38,0x30,0x20}, /* Up-arrow */
|
2005-11-19 20:45:32 +00:00
|
|
|
{0x7f,0x04,0x4e,0x5f,0x44,0x38,0x7f} /* Repeat-AB playmode */
|
2005-03-01 22:55:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-17 04:01:32 +00:00
|
|
|
#if defined(HAVE_RECORDING)
|
2006-11-06 18:07:30 +00:00
|
|
|
const unsigned char bitmap_glyphs_4x8[][4] =
|
2006-09-02 17:30:30 +00:00
|
|
|
{
|
2006-11-06 18:07:30 +00:00
|
|
|
/* Keep digits together and first! */
|
|
|
|
[0] =
|
|
|
|
{0x00, 0x3e, 0x22, 0x3e}, /* 0 */
|
|
|
|
[1] =
|
|
|
|
{0x00, 0x24, 0x3e, 0x20}, /* 1 */
|
|
|
|
[2] =
|
|
|
|
{0x00, 0x3a, 0x2a, 0x2e}, /* 2 */
|
|
|
|
[3] =
|
|
|
|
{0x00, 0x22, 0x2a, 0x36}, /* 3 */
|
|
|
|
[4] =
|
|
|
|
{0x00, 0x0e, 0x08, 0x3e}, /* 4 */
|
|
|
|
[5] =
|
|
|
|
{0x00, 0x2e, 0x2a, 0x3a}, /* 5 */
|
|
|
|
[6] =
|
|
|
|
{0x00, 0x3e, 0x2a, 0x3a}, /* 6 */
|
|
|
|
[7] =
|
|
|
|
{0x00, 0x02, 0x02, 0x3e}, /* 7 */
|
|
|
|
[8] =
|
|
|
|
{0x00, 0x3e, 0x2a, 0x3e}, /* 8 */
|
|
|
|
[9] =
|
|
|
|
{0x00, 0x0e, 0x0a, 0x3e}, /* 9 */
|
|
|
|
[10 ... Glyph_4x8Last-1] =
|
|
|
|
{0x00, 0x00, 0x00, 0x00}, /* auto-blank */
|
|
|
|
[Glyph_4x8_k] =
|
|
|
|
{0x00, 0x3e, 0x10, 0x28}, /* k */
|
2006-09-02 17:30:30 +00:00
|
|
|
};
|
2006-09-12 18:26:27 +00:00
|
|
|
|
2006-11-06 18:07:30 +00:00
|
|
|
const unsigned char bitmap_formats_18x8[Format_18x8Last][18]=
|
2006-09-12 18:26:27 +00:00
|
|
|
{
|
2006-11-06 18:07:30 +00:00
|
|
|
[0 ... Format_18x8Last-1] = /* auto-blank */
|
|
|
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* ___ */
|
2006-11-24 19:49:04 +00:00
|
|
|
[Format_18x8_AIFF] =
|
|
|
|
{0x00, 0x3c, 0x0a, 0x0a, 0x0a, 0x3c, 0x00, 0x3e, 0x00,
|
|
|
|
0x3e, 0x0a, 0x02, 0x02, 0x00, 0x3e, 0x0a, 0x02, 0x02}, /* AIFF */
|
2006-11-06 18:07:30 +00:00
|
|
|
[Format_18x8_MPA_L3] =
|
|
|
|
{0x00, 0x3e, 0x04, 0x08, 0x04, 0x3e, 0x00, 0x00, 0x00,
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, /* M__ */
|
|
|
|
[Format_18x8_WAVPACK] =
|
|
|
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x20,
|
|
|
|
0x18, 0x20, 0x1e, 0x00, 0x0e, 0x10, 0x20, 0x10, 0x0e}, /* _WV */
|
|
|
|
[Format_18x8_PCM_WAV] =
|
|
|
|
{0x00, 0x1e, 0x20, 0x18, 0x20, 0x1e, 0x00, 0x3c, 0x0a,
|
|
|
|
0x0a, 0x0a, 0x3c, 0x00, 0x0e, 0x10, 0x20, 0x10, 0x0e}, /* WAV */
|
2006-09-12 18:26:27 +00:00
|
|
|
};
|
2020-07-17 04:01:32 +00:00
|
|
|
#endif /* defined(HAVE_RECORDING) */
|
2006-09-12 18:26:27 +00:00
|
|
|
|
2005-03-01 22:55:52 +00:00
|
|
|
/* Disk/MMC activity */
|
2005-11-24 00:10:14 +00:00
|
|
|
const unsigned char bitmap_icon_disk[12] =
|
2008-06-27 21:40:06 +00:00
|
|
|
#ifdef HAVE_FLASH_STORAGE
|
2005-03-01 22:55:52 +00:00
|
|
|
{0x15,0x3f,0x7d,0x7B,0x77,0x67,0x79,0x7b,0x57,0x4f,0x47,0x7f};
|
2005-11-24 00:10:14 +00:00
|
|
|
#else
|
2007-04-15 22:16:28 +00:00
|
|
|
{0x00,0x00,0x00,0x1c,0x2e,0x4f,0x77,0x79,0x3a,0x1c,0x00,0x00};
|
2005-11-24 00:10:14 +00:00
|
|
|
#endif
|
2002-08-07 10:35:26 +00:00
|
|
|
|
2021-08-20 02:00:36 +00:00
|
|
|
const struct cbmp_bitmap_info_entry core_bitmaps[CBMP_BitmapFormatLast] = /* */
|
|
|
|
{
|
|
|
|
/* index, pointer, w, h, count */
|
|
|
|
[CBMP_Mono_5x8] = {bitmap_icons_5x8[0], 5,8, Icon5x8Last},
|
|
|
|
[CBMP_Mono_7x8] = {bitmap_icons_7x8[0], 7, 8, Icon7x8Last},
|
|
|
|
[CBMP_Mono_12x8] = {bitmap_icon_disk, 12, 8, 1},
|
|
|
|
};
|
|
|
|
|