BRT Community

General Category => Discussion - EVE => Topic started by: diego.barile on December 03, 2020, 11:42:19 AM

Title: ARGB4 image corruption.
Post by: diego.barile on December 03, 2020, 11:42:19 AM
Hello everybody.

I'm successfully able to show an ARGB4 image onto one page (FT812 custom embedded system).
But randomly (:'(), when the image size is roughly greater than 3Kb, sometimes it is displayed corrupted.
In attachment you can see two screen-shot (the good and the corrupted) plus the original asset for your further checking.

Please can you help me to solve this issue?
I suspect an not optimal PNG settings.

Thanks in advance.

Title: Re: ARGB4 image corruption.
Post by: Matrix Orbital on December 17, 2020, 10:57:23 PM
The FIF0 is 4k so you might be over running the buffer. Make sure that your display list commands do not go over 4k
Title: Re: ARGB4 image corruption.
Post by: diego.barile on January 18, 2021, 03:23:19 PM
The fix is to send the image data in chunks (256 or 512 bytes) instead one single transmission.
Thank you to everybody.
Title: Re: ARGB4 image corruption.
Post by: pauljiao on January 20, 2021, 02:45:30 AM
how do you get ARGB4 bitmap ? through PNG decoding from cmd_loadimage at run-time or pre-processing PNG into ARGB4 through EAB?
Title: Re: ARGB4 image corruption.
Post by: diego.barile on January 25, 2021, 04:07:55 PM
I get ARGB4 pre-processing PNG into ARGB4 through EAB.