From 1c5bfeef64f7eb84c5d04e3e11daaebeeef651e1 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 11 Nov 2016 19:07:55 +0100 Subject: [PATCH] Adding demo to demonstrate image color palette modification --- demos/modules/gdisp/images_palettes/demo.mk | 3 + .../gdisp/images_palettes/expected_result.png | Bin 0 -> 5421 bytes demos/modules/gdisp/images_palettes/gfxconf.h | 60 ++++++++++ .../gdisp/images_palettes/icon_home.bmp | Bin 0 -> 530 bytes demos/modules/gdisp/images_palettes/main.c | 104 ++++++++++++++++++ .../gdisp/images_palettes/romfs_files.h | 7 ++ .../gdisp/images_palettes/romfs_icon_home.h | 48 ++++++++ 7 files changed, 222 insertions(+) create mode 100644 demos/modules/gdisp/images_palettes/demo.mk create mode 100644 demos/modules/gdisp/images_palettes/expected_result.png create mode 100644 demos/modules/gdisp/images_palettes/gfxconf.h create mode 100644 demos/modules/gdisp/images_palettes/icon_home.bmp create mode 100644 demos/modules/gdisp/images_palettes/main.c create mode 100644 demos/modules/gdisp/images_palettes/romfs_files.h create mode 100644 demos/modules/gdisp/images_palettes/romfs_icon_home.h diff --git a/demos/modules/gdisp/images_palettes/demo.mk b/demos/modules/gdisp/images_palettes/demo.mk new file mode 100644 index 00000000..6dab7aa7 --- /dev/null +++ b/demos/modules/gdisp/images_palettes/demo.mk @@ -0,0 +1,3 @@ +DEMODIR = $(GFXLIB)/demos/modules/gdisp/images_palettes +GFXINC += $(DEMODIR) +GFXSRC += $(DEMODIR)/main.c diff --git a/demos/modules/gdisp/images_palettes/expected_result.png b/demos/modules/gdisp/images_palettes/expected_result.png new file mode 100644 index 0000000000000000000000000000000000000000..fb0ef0aae26c5a67405143b30ade8c84033faaca GIT binary patch literal 5421 zcmeI0X*iqdyTBjhPwY~v2Bo6P3}dNMOH0R6wUxHEwg@%$62#inUL8xw(N@cZE;G|s zscl+Y?PDE9RIOD@#a2X05k%s=p`(ZMzvi6t?R=OI@0;topXYhs>w50r{kxwx36^J# zc)3Km006w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wvG-zgUcX=it{DSpUN&H<&aBj( zqMOaW>8nJ3Uw01UYp9DvI))b?Us~(xs1Z|}>a~f?hblSg&z&6Zfkv&@y8cCHntUpM z7j$C*?9X@L{M%yBNfk4}zxp=Nv-w2J7s{fJ*g>{9v&EuXuWkKhIs?~~UhoB@m)kag zSj*4LYxlsdO;hqc6kDgDv)IkA+&A8Ea_BqP7c}T%R!~X+`2aU)zBf%i*X7MXz*~kp)sSP_;P=^C_{?e=W zN%>J1-R|;)gAa^}Ec27V7Ir?*_Hx_`X$^R2lV&N1=%uh4jST^wNm~f2DbC~*3 zee}A%Szg}?0H@fKZ#Z!xG?aT3s+yY89Sg`TAjKd`#{ien5iS(I3Af{~~jblahmaJ}CrFn2fV6H@)Wrok!*Wu9tjW>@|L~>sMbc zhj%Lc-Low!EI`z0m&>R$`ZvicsH8>cRR6@8IrOZ^2G-ZRt}5!HvraFLkGGp$O>~O% z$s;2`)W5ziw$hZcqXtVjP`%JoEWontsGc7h1Z%Qyw7NsOJ$XY#B@m?(}=V(T_ z;Yi1uaU;1^@fiIQ{5#z%OHixg^$yvqFe~hCg*^=3r7$5k#x8|%9Ua-Fu()*8E`_nS z$?hmDx=m+GVX1CnTMDy#v8}L|1KSF7{Jfoq2f{Z;1lQNgwqcGgZ zJqkNZII%}zQ)a?@6eifjzei!cp?ef&m@%}auw(y4Vb7~_hd+@YXK8DAbui{PiOHeW zFF#XGx0kCErJy2k-AVYKW+zI?`EYT%HLZo?BXk3x;(sfzjQ=h#_TBQLGu|=f#dvp# z*#p1GYj;=v%IM#k@}Fs2N5DOO=YKv<{ + * Copyright (c) 2012, 2013, Andrew Hannam aka inmarket + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of the nor the + * names of its contributors may 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 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. + */ + +#ifndef _GFXCONF_H +#define _GFXCONF_H + +/* The operating system to use. One of these must be defined - preferably in your Makefile */ +//#define GFX_USE_OS_CHIBIOS FALSE +//#define GFX_USE_OS_WIN32 FALSE +//#define GFX_USE_OS_LINUX FALSE +//#define GFX_USE_OS_OSX FALSE + +/* GFX sub-systems to turn on */ +#define GFX_USE_GDISP TRUE + +/* Features for the GDISP sub-system. */ +#define GDISP_NEED_VALIDATION TRUE +#define GDISP_NEED_CLIP TRUE +#define GDISP_NEED_IMAGE TRUE +#define GDISP_STARTUP_COLOR HTML2COLOR(0xC0C0C0) + +/* GDISP image decoders */ +//#define GDISP_NEED_IMAGE_NATIVE TRUE +//#define GDISP_NEED_IMAGE_GIF TRUE +#define GDISP_NEED_IMAGE_BMP TRUE +//#define GDISP_NEED_IMAGE_JPG TRUE +//#define GDISP_NEED_IMAGE_PNG TRUE + +#define GFX_USE_GFILE TRUE +#define GFILE_NEED_ROMFS TRUE +//#define GFILE_NEED_NATIVEFS TRUE + +#endif /* _GFXCONF_H */ + diff --git a/demos/modules/gdisp/images_palettes/icon_home.bmp b/demos/modules/gdisp/images_palettes/icon_home.bmp new file mode 100644 index 0000000000000000000000000000000000000000..9a9cff6dbb54839f93f59ed0123e137884f68694 GIT binary patch literal 530 zcmbu5u?oUK42DxH7F`O8Yu%)y*jWlLE;{J!+!t^aS_kKXTi?X7_!6$&U0ehQ>G>zQ zK~O|6H22-5$$!T`U342HalpDoj%+&QNIe7QHn~;X4UvA_W2Up!CO_T6Ar zQ7=i7A+l8zMSIdYyWu(?i=bVauLrv~#t@S6#s_&7#YF!Tmx<1AMAz5I_%Hk^nJ!Vq z^oXuZpXkmU@VgPXw`QhdpL&>K++bT;R+bQuIs}9e5JEtRnH|rW%u$xEvhtKyUwI!W PAF=vcr=R>~*SY=#kr + * Copyright (c) 2016, Andrew Hannam aka inmarket + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * 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. + * * Neither the name of the nor the + * names of its contributors may 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 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. + */ + +/* + * This example demonstrates how the color palette of an image can be modified + * during run-time of the program to exchange colors. + * This example uses a BMP1 image (one-bit BMP) and which only has a palette + * size of two. + * Note that although the demo shows multiple images with different colors at + * the same time there's still just one copy of the image in memory at all times. + */ + +#define USE_PRINTF TRUE + +#include "gfx.h" + +static gdispImage _imgHome; + +int main(void) +{ + int paletteSize = 0; + + // Initialize everything + gfxInit(); + gdispClear(Silver); + + // Open the image file + gdispImageOpenFile(&_imgHome, "icon_home.bmp"); + + // Retrieve the color palette size and dump it - just for fun. + paletteSize = gdispImageGetPaletteSize(&_imgHome); + if (paletteSize != 2) { // With this image we expect the palette to have only two entries! + gdispClear(Red); + while (1); + } + + // Draw the image w/o modifying the palette + gdispImageDraw(&_imgHome, 10, 10, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, Blue); + gdispImageAdjustPalette(&_imgHome, 1, Red); + gdispImageDraw(&_imgHome, 10, 60, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, White); + gdispImageAdjustPalette(&_imgHome, 1, Black); + gdispImageDraw(&_imgHome, 10, 110, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, Lime); + gdispImageAdjustPalette(&_imgHome, 1, Navy); + gdispImageDraw(&_imgHome, 10, 160, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, Gray); + gdispImageAdjustPalette(&_imgHome, 1, Yellow); + gdispImageDraw(&_imgHome, 60, 60, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, Green); + gdispImageAdjustPalette(&_imgHome, 1, Black); + gdispImageDraw(&_imgHome, 60, 110, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // Modify the palette & redraw at a different location + gdispImageAdjustPalette(&_imgHome, 0, Lime); + gdispImageAdjustPalette(&_imgHome, 1, Teal); + gdispImageDraw(&_imgHome, 60, 160, gdispGetWidth(), gdispGetHeight(), 0, 0); + + // We're done. Clean up. + gdispImageClose(&_imgHome); + + while(1) { + gfxSleepMilliseconds(500); + } + + return 0; +} diff --git a/demos/modules/gdisp/images_palettes/romfs_files.h b/demos/modules/gdisp/images_palettes/romfs_files.h new file mode 100644 index 00000000..356f6d39 --- /dev/null +++ b/demos/modules/gdisp/images_palettes/romfs_files.h @@ -0,0 +1,7 @@ +/** + * This file contains the list of files for the ROMFS. + * + * The files have been converted using... + * file2c -dbcs infile outfile + */ +#include "romfs_icon_home.h" diff --git a/demos/modules/gdisp/images_palettes/romfs_icon_home.h b/demos/modules/gdisp/images_palettes/romfs_icon_home.h new file mode 100644 index 00000000..0ec6b8f6 --- /dev/null +++ b/demos/modules/gdisp/images_palettes/romfs_icon_home.h @@ -0,0 +1,48 @@ +/** + * This file was generated from "icon_home.bmp" using... + * + * file2c -dcs icon_home.bmp romfs_icon_home.bmp + * + */ +static const char icon_home[] = { + 0x42, 0x4D, 0x12, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92, 0x00, 0x00, 0x00, 0x7C, 0x00, + 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x4C, 0x01, 0x00, 0x00, 0x4C, 0x01, 0x00, 0x00, 0x02, 0x00, + 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x00, 0xFF, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x42, 0x47, 0x52, 0x73, 0x8F, 0xC2, 0xF5, 0x28, 0x51, 0xB8, + 0x1E, 0x15, 0x1E, 0x85, 0xEB, 0x01, 0x33, 0x33, 0x33, 0x13, 0x66, 0x66, 0x66, 0x26, 0x66, 0x66, + 0x66, 0x06, 0x99, 0x99, 0x99, 0x09, 0x3D, 0x0A, 0xD7, 0x03, 0x28, 0x5C, 0x8F, 0x32, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, + 0xFF, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x07, 0xE0, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, + 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x03, + 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x0F, + 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x3F, + 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, + 0x00, 0x00, 0xFF, 0x80, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0xC0, 0x00, 0x00, 0x01, 0xFF, + 0x00, 0x00, 0xFF, 0xE0, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0xF0, 0x00, 0x00, 0x01, 0xFF, + 0x00, 0x00, 0xFF, 0xF8, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0xFC, 0x00, 0x00, 0x01, 0xFF, + 0x00, 0x00, 0xFF, 0xFE, 0x00, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00, 0x81, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0x80, 0x01, 0x81, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xC0, 0x03, 0x81, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0xE0, 0x07, 0x81, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xF0, 0x0F, 0x81, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0xF8, 0x1F, 0x81, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFC, 0x3F, 0xFF, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0xFE, 0x7F, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, +}; + +#ifdef ROMFS_DIRENTRY_HEAD + static const ROMFS_DIRENTRY icon_home_dir = { 0, 0, ROMFS_DIRENTRY_HEAD, "icon_home.bmp", 530, icon_home }; + #undef ROMFS_DIRENTRY_HEAD + #define ROMFS_DIRENTRY_HEAD &icon_home_dir +#endif