BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: image decoding and OPT_RGB565  (Read 8034 times)

Rudolph

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
image decoding and OPT_RGB565
« 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.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: image decoding and OPT_RGB565
« Reply #1 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



Logged