rockbox/apps/plugins/imageviewer
Christian Soffke 6d699f08f4 plugins: imageviewer: fix incomplete previous commits
missed in commit 2690418:
grayscale targets need to have access
to the Display Options menu now, since
it contains the hide_info option

missed in commit f4dc4d8:
"resizing" message for bmp files wasn't
hidden even with hide_info enabled

Change-Id: I1a73e3816305ab6f032fc226d79f09df0d9aa96b
2026-05-03 18:09:44 +02:00
..
bmp plugins: imageviewer: fix incomplete previous commits 2026-05-03 18:09:44 +02:00
gif plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
jpeg plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
jpegp plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
png plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
ppm plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
image_decoder.c
image_decoder.h
imageviewer.c plugins: imageviewer: fix incomplete previous commits 2026-05-03 18:09:44 +02:00
imageviewer.h plugins: imageviewer: Hide info by default when loading file 2026-04-16 07:58:27 -04:00
imageviewer.make make: define PLUGIN when preprocessing plugin linker scripts 2026-03-06 14:49:00 +00:00
imageviewer_button.h Remove Creative Zen Vision and Vision:M ports 2026-02-06 07:31:54 -05:00
readme.txt
SOURCES
SUBDIRS

this document describes how to add new image decoder.

1. create a directory which name is your image decoder's name and put source files
 under the directory.
'const struct image_decoder image_decoder' and 'IMGDEC_HEADER' must be declared in
 one of your source files.
see imageviewer.h for the detail of struct image_decoder.

2. add the directory name to apps/plugins/imageviewer/SUBDIR so that the decoder
 is built.
if the decoder is supported by particular targets, surround it with #if directive.
e.g. if the decoder supports color LCD targets only,
#ifdef HAVE_LCD_COLOR
bmp
#endif

3. append appropriate entry to enum image_type in image_decoder.h, decoder_names
 and ext_list in image_decoder.c so that the imageviewer plugin can recognize
 the decoder.
if the decoder is supported by particular targets, surround them with same #if
 directive in SUBDIR.

4. add entry to apps/plugins/viewers.config
 (in format: file_extension,viewer/imageviewer) so that the file with specified 
 file extension will be opened by image viewer plugin.
if the decoder is supported by particular targets, surround it with same #if
 directive in SUBDIR.

5. add entry to apps/plugins/CATEGORIES (in format: decoder_name,viewer) so
 that the build file is copied to viewers directory.
DON'T surround this with #if directive.


notes:
if you need to use greylib functions to draw image, add the functions to
 struct imgdec_api just like gray_bitmap_part because GREY_INFO_STRUCT is
 declared in imageviewer and is not available from the decoder.