Skip to main content
Explorer
August 8, 2024
Question

H7A3ZI-Q JPEG decoding

  • August 8, 2024
  • 1 reply
  • 1420 views

hi 

I'm going to store JPEG data in an array and then decode it

I'm using H7A3ZI-Q for the board

 

uint16_t outdatabuffer [65535] ={0};

JPEG_Decode_DMA(&JPEG_Handle,(uint32_t)frameBuffer,bufferPointer , outdatabuffer);

I used this code, but only 0 was saved in outdatabuffer

 

Please let me know if there is any additional part or example code that needs to be set to decode the JPEG image data.

Thank you.

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    August 9, 2024

    Hello @achovy 

    I recommend you that you get inspired from this JPEG decoding example:

    STM32CubeH7/Projects/STM32H745I-DISCO/Examples/JPEG/JPEG_DecodingFromFLASH_DMA/readme.txt at master · STMicroelectronics/STM32CubeH7 · GitHub

    You can get further information from this application note AN4996: How to use the JPEG codec peripheral on STM32 MCUs.