1
0
Fork 0
forked from len0rd/rockbox

Rework ppmviewer to fit our shiny new imageviewer framework. FS#11818 by me.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29012 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcin Bukat 2011-01-09 13:22:54 +00:00
parent 6d05e27d68
commit 6e3da841be
12 changed files with 574 additions and 358 deletions

View file

@ -27,6 +27,9 @@ static const char *decoder_names[MAX_IMAGE_TYPES] = {
"bmp",
"jpeg",
"png",
#ifdef HAVE_LCD_COLOR
"ppm"
#endif
};
/* check file type by extention */
@ -41,6 +44,9 @@ enum image_type get_image_type(const char *name)
{ ".jpe", IMAGE_JPEG },
{ ".jpeg", IMAGE_JPEG },
{ ".png", IMAGE_PNG },
#ifdef HAVE_LCD_COLOR
{ ".ppm", IMAGE_PPM },
#endif
};
const char *ext = rb->strrchr(name, '.');