Skip to main content
RGunt.1
Associate II
October 14, 2020
Question

can anyone help me in the jpg image compression technique to .RLE format

..

This topic has been closed for replies.

3 replies

KnarfB
Super User
October 14, 2020

RLE = run length encoding is a technology for lossless (image) compression. So you should decompress an JPEG image first. You find the Microsoft variant of RLE described here: https://docs.microsoft.com/en-us/windows/win32/gdi/bitmap-compression. Its quite old and the internet is full of implementations.

Because JPEG is a lossy compression, a decompressed JPEG will show slight variations of color values and is therefore not a good input to RLE which needs runs of identical color values for efficient compression.

RLE is a general principle, there is also a kind of RLE used wihtin JPEG. The classic introduction to JPEG technology is http://ijg.org/files/Wallace.JPEG.pdf

RGunt.1
RGunt.1Author
Associate II
October 15, 2020

​Thank you for support,

 can you please share any sample code for displaying a jpg image on LCD with STM32 support.

KnarfB
Super User
October 15, 2020

You didn't specify your HW + SW but here is an example from STM: https://github.com/STMicroelectronics/STM32CubeF7/tree/master/Projects/STM32746G-Discovery/Applications/LibJPEG/LibJPEG_Decoding

You find more if you search the STM firmware libs.