Skip to main content
Mohammad A
Senior
August 29, 2017
Solved

JPEG Compression Example

  • August 29, 2017
  • 1 reply
  • 1199 views
Posted on August 29, 2017 at 12:09

I have an array of luminance representing a picture in grayscale. Data are captured using DCMI. I need  to compress these data using JPEG unit available in F7 series, but I can't find any application note describing JPEG unit, and also I don't know what functions I need to use to acheive this requirement.

Can anybody provide me a simple example?

#jpeg #stm32
This topic has been closed for replies.
Best answer by Tesla DeLorean
Posted on August 29, 2017 at 15:35

I suspect the JPEG unit uses third-party IP, so don't expect super detailed docs on the internal mechanics. Expect just a couple of buffers, and shoveling data in/out, and a streaming paradigm.

I do remember seeing a whole slew of examples under the HAL/Cube install,

sweden

has identified a bunch above, but suspect there are also examples for the DISCO boards which are likely to be far more accessible.

1 reply

After Forever
Senior III
August 29, 2017
Posted on August 29, 2017 at 13:00

1. Find where is located your STM32CubeMX repository by opening 'Help -> Updater settings...'

2.

Go to STM32Cube_FW_F7_V1.7.0/Projects/STM32756G_EVAL/Applications/LibJPEG in your repository to find encoder and decoder example projects

Edit:

It turns out the project above doesn't use the hardware module, but there are other examples which do:

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I-Discovery/Examples/JPEG/JPEG_DecodingUsingFs_DMA

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_DecodingFromFLASH_DMA

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_DecodingUsingFs_DMA

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_DecodingUsingFs_Interrupt

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_EncodingFromFLASH_DMA

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_EncodingUsingFs_DMA

STM32Cube_FW_F7_V1.7.0/Projects/STM32F769I_EVAL/Examples/JPEG/JPEG_MJPEG_VideoDecoding

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
August 29, 2017
Posted on August 29, 2017 at 15:35

I suspect the JPEG unit uses third-party IP, so don't expect super detailed docs on the internal mechanics. Expect just a couple of buffers, and shoveling data in/out, and a streaming paradigm.

I do remember seeing a whole slew of examples under the HAL/Cube install,

sweden

has identified a bunch above, but suspect there are also examples for the DISCO boards which are likely to be far more accessible.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..