This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11819 - image viewer: use magick number in file to determine image type.
Attached to Project:
Rockbox
Opened by Teruaki Kawashima (teru) - Monday, 20 December 2010, 15:35 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 22 January 2011, 14:47 GMT+2
Opened by Teruaki Kawashima (teru) - Monday, 20 December 2010, 15:35 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 22 January 2011, 14:47 GMT+2
|
Detailsthis implements suggestions discussed in mailing list (
get_image_type in image_decoder.c is changed as follows. 1. if it has supported image's magick value and has assosiated file extension, returns corresponding IMAGE_*. file will be loaded. 2. if it has supported image's magick value but *doesn't* have assosiated file extension, it warns that file extension might not be correct and returns corresponding IMAGE_* determined from the magick value. file will be loaded. 3. if it *doesn't* have supported image's magick value but has supported image file's file extension, returns corresponding IMAGE_* determined from the extension. file will not be loaded, and error will be displayed. user can know something is wrong. 4. if it *doesn't* have supported image's magick value and *doesn't* have supported image file's file extension, returns IMAGE_UNKNOWN. image viewer skips to next file silently. get_pic_list imag in imageviewer.c is changed so that it create list of all file. (if filtering is done at this point, initial loading would take longer, but not confirmed) |
This task depends upon
Closed by Teruaki Kawashima (teru)
Saturday, 22 January 2011, 14:47 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r29110.
Saturday, 22 January 2011, 14:47 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r29110.
update patch: slightly change error message.