cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747 Hardware JPEG Compatibility issue

SFuch.1
Associate III

Dear all, I have successfully implemented the example STM32CubeH7-master\Projects\STM32H747I-DISCO\Examples\JPEG\JPEG_DecodingFromFLASH_DMA with the image file given as C source there.

Now I wanted to change the image data, which however was not successful, so I tried the following:

  • took the image_320_240_jpg.h file and on PC wrote it to disk (example.jpg) , then converted it to a c file again and used that: Success, no change
  • opened example.jpg, saved it with Gimp as example2.jpg with quality 75 to decrease file size: Fails during HAL_JPEG_Decode
  • opened example.jpg in MS Windows 10 Paint and saved it as example3.jpg (no parameters available, file beacme bigger): Success
  • created some weird image in MS Paint (example4.jpg:( Success
  • opened and saved in Gimp again (example5.jpg:( Fail during HAL_JPEG_Decode

Am I missing any jpeg features I need to avoid? Are there any other programs known to be working outside of MS Paint, preferably some where you can adjust the image quality vs. file size?

These are the images:

example.jpg (Original from example, working):0693W00000D0BIXQA3.jpgexample2.jpg (fails):

0693W00000D0BGYQA3.jpgexample3.jpg (working):

0693W00000D0BJGQA3.jpgexample4.jpg (working):

0693W00000D0BJQQA3.jpgexample5.jpg (fails):

0693W00000D0BJfQAN.jpg

3 REPLIES 3
SFuch.1
Associate III

After testing some more I found that the STM32H7 hardware JPEG Decoder does not support progressive jpegs (in use since >10 years). When selecting baseline instead of progressive the files work.

MMU
Associate

Thx.

This was my problem too.

After days of searching i finally found your answer.

Now i can use my pictures too.

Asing.4
Associate II

can you share the cubeMX setting for it please