cancel
Showing results for 
Search instead for 
Did you mean: 

JPEG Gui icon without Touch GFX on stm32h7

MMARI.1
Senior II

hi,

I am currently using BMP + rgb565 LTDC display for GUI icon creation without Touch GFX ( Everything is on "" C"" only and Manual preparation icon using hex converter ).

Already known one is ! for a small size ,BMP is OK but large size BMP icon  will increase the size and processing time  .

MMARI1_0-1755258457457.bmp   

Above Picture size is 6.30KB in BMP                                                

MMARI1_1-1755258542949.bmp

Above Picture size is 2.03KB in JPEG      

Visually i could not see any difference  BMP and JPEG in my laptop   .

Now i am using internal memory for small icon  (Now working with stm32h723zgt6 and plan to upgrade to stm32u5 series )

Please clarify my doubts. 

0. Can i use Hardware Inbuilt JPEG decoder for JPEG  GUI icon creation with rgb565 format  ? . 

1. Do you think i can achieve best frame rate by  Hardware Inbuilt JPEG decoder ?.

2. Either i will get same picture quality like BMP in Hardware Inbuilt JPEG decoder ?

 

 

 

 

1 REPLY 1
Osman SOYKURT
ST Employee

Hello @MMARI.1 ,

As far as I know, not the entire STM32U5 series has the JPEG codec, but only on STM32U5Fx/5Gx devices (check AN5766 - section 3.16).

0- Yes you can use the JPEG codec but the decoder does not output directly in RGB565 format; you will need to implement an additional conversion step to obtain RGB565 data.

1- I don't think the the YCbCr to RGB conversion is hardware accelerated and therefore must be performed by the software. This has to be considered if you want to achieve a high framerate.

2- I expect the quality to be more or less similar for small images (the color palette is also smaller), but it's definitely lower quality than BMP if you have big images and lot of colors (like if your image uses gradients)

Osman SOYKURT
ST Software Developer | TouchGFX