BRT Community

General Category => Discussion - EVE => Topic started by: Rudolph on September 03, 2023, 09:33:21 AM

Title: image decoding and OPT_RGB565
Post by: Rudolph on September 03, 2023, 09:33:21 AM
I received an image file to conduct a test with and this image file is a .png.
Long story short, the image gets decoded to ARGB4 and not RGB565.

There is OPT_RGB565 in chapter 5.9:
Decode the source image to RGB565 format - CMD_LOADIMAGE

And the first idea I had was to provide this option in order to make CMD_LOADIMAGE
decode the .png file to RGB565.
But then I saw that the value for the option is actually zero, so this "option" does not actually do anything,
this is just the default value, this is !OPT_MONO.
As I was already using CMD_LOADIMAGE with bit 1 of the options cleared, this "option" OPT_RGB565 has no effect on loading PNG images.

Please consider removing OPT_RGB565 from the table in chapter 5.9.
Title: Re: image decoding and OPT_RGB565
Post by: BRT Community on September 05, 2023, 01:59:50 PM
Hi Rudolph,

Please note that the OPT_RGB565 is for JPEG decode only and not for PNG. Therefore, as you mentioned, it will not work for PNG.

We have added a note about this to the Programmers guide for the next version as it wasn't clear from the current version that it was for JPEG only,

Thanks, we appreciate your feedback,

Best Regards, BRT Community