2020-11-11 12:24 PM
Hello
I am using an STM32H743 MCU that implements acquisition of frame from camera and compress it to JPEG format.
The setup to compress the image is with hardware JPEG encoder with MDMA stream.
Image resolution is 240*320 pixels, greyscale.
The procedure of my code is to extract MAX_INPUT_LINES of the source image, and send it to the JPEG hardware, until its done and ready for the next MAX_INPUT_LINES. it happens 15 times for each image.
Unfortunately I am experiencing artifacts with the compression - the first MAX_INPUT_LINES (i.e. first 16 lines) of the image, are replicated from the bottom of the image to the top of the image - the example of the source and destination image is attached.
Any idea what could lead to this issue?
Thank you