cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4R9 How to extract jpeg decoded image using 'GUI_BMP_Serialize'

JAi.1
Associate

Hello,

I am working with a STM32L4R9 and I am trying to extract a (STemWin) JPG decoded image to a BMP buffer (in external RAM).

First of all :

- I am using a 400x400 pixels screen, GFXMMU is initialized, 16bpp color depth.

- I can display a jpeg image using 'GUI_JPEG_Draw'.

- Other STemWin functions seems to work correctly as well (GUI_BMP_Draw, etc.).

* First case scenario

- I print the jpeg image to my display using 'GUI_JPEG_Draw'.

- Then, when I try to get the content of what it is displayed using 'GUI_BMP_Serialize', I only received blank data in the serialization callback (the header seems to be correct, but all other bytes are 0).

Is there something to do before using 'GUI_BMP_Serialize' ? Why all the bytes received are blank ?

* Second case scenario

- I move STemWin dedicated memory to external RAM to be able to create a memory device.

- I create a memory device (no error returned).

- I select the newly created memory device.

- I use 'GUI_JPEG_Draw' to decode JPEG into the memory device.

Multiple issues in this case :

- Nothing is displayed when I try to display the content of my memory device (using 'GUI_MEMDEV_CopyToLCD').

- When I check the content of the memory device (using 'GUI_MEMDEV_GetDataPtr' to get BMP address), every bytes are set to 0.

- When I try to get the content of the memory devic (using 'GUI_BMP_Serialize'), all data received are 0.

Am I missing something ? What am I doing wrong ?

Thanks in advance for your response.

Regards,

Jon.

0 REPLIES 0