cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible JPEG HW decoder output as RGB565?

Asantos
Senior

Hi,

I would like to change the example JPEG_DecodingFromFLASH_DMA to decode the JPEG file data to a frame buffer in RGB565 and then send this buffer to a 320x240 SPI TFT display. Only using the internal SRAM of the STM32H743VI.

Is it possible?

3 REPLIES 3

Hi. Yes, this is possible. Change LCD_FRAME_BUFFER to address of internal AXI SRAM (0x24000000). And DMA2D output format to DMA2D_OUTPUT_RGB565.

Asantos
Senior

Thanks oleksandr, it worked.

I had to create a buffer with 115200 bytes to receive the JPEG decoder output and then use the DMA2D to convert to RGB565 and transfer this buffer to the display frame buffer and then I use DMA to transfer from frame buffer to the SPI TFT. All fitted in the AXI SRAM.

Would be possible do it using only one buffer?

Use the DMA2D to transfer directly to the SPI for example.

You can transfer decoded buffer to SPI TFT after DMA2D conversion is complete. Use display frame buffer for DMA2D output.