Close

768ms to decompress 800x600px JBIG1 compressed page on STM32F3

A project log for FreEader - minimal e-book reader

HTML/EPUB <pandoc> LATEX <dvipng> png <imagemagick> pbm <pbmtojbg85> SD-Card <uC> 4.4" E-Ink

ventosusventosus 09/06/2015 at 09:100 Comments

I've measured decompression time of JBIG1 compressed page 0013 of 'flatland' on a STM32F303CC.

The source page was the following 800x600px image with an umcompressed size of 60kB.

The corresponding JBIG1 compressed image had a size of 7kB (11.6%) and was directly flashed to uC flash memory.

It took 768ms to decompress with the uC running @72MHz.

This may seem like a lot, but it will take around 1000-1500ms to refresh a 800x600 e-ink display in the first place.

With parallelising the three loops which load compressed image data from SD card, decompress and display it line by line, this should work out well, though.

Lessons learned:

Discussions