cancel
Showing results for 
Search instead for 
Did you mean: 

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

RGunt.1
Associate II
 
3 REPLIES 3
KnarfB
Principal III

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
Associate II

​Thank you for support,

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

KnarfB
Principal III

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.