BRT Community

General Category => Discussion - EVE => Topic started by: jberkhout on February 18, 2023, 01:38:13 PM

Title: FT813 bin compression algorithm documented?
Post by: jberkhout on February 18, 2023, 01:38:13 PM
I use an STM32F7 MCU, it can render bitmaps and store them on an SD card.
Then, if they exist, they can just be loaded, and don't need to be rendered again, which is quicker.
Though I can load them as uncompressed binary files only.
However I would like to compress them as the EVE Asset Builder can do, so I can load smaller files, even quicker.

Currently I would need to transfer them from the SD card to the computer, convert them, load them in Asset Builder, convert them into compressed bin format and then copy them back to the SD card.
It is quite cumbersome. If it could be compressed by the MCU that would be awesome.
What compression algorithm is used? Is it documented?

Any help would be very welcome.
Title: Re: FT813 bin compression algorithm documented?
Post by: Rudolph on February 21, 2023, 05:14:26 PM
The "ASSET COMPRESSOR" in EAB says: "Compress asset by using Zlib or Zopfli library".
And the difference is that Zopfli is compressing better but eats more computrons doing so.
Title: Re: FT813 bin compression algorithm documented?
Post by: jberkhout on April 17, 2023, 02:09:54 PM
Hi Rudolph, thank you very much!
This helps a lot.