Reducing image format conversion time on STM32MP13 devices
Hello all,
I'm using STM32MP135F-DK, taking picture with GC2145 camera and converting 1600x1200 raw image to png/jpeg formats to use later. I'm doing these according to the document at below link:
https://wiki.st.com/stm32mpu/wiki/STM32MP13_V4L2_camera_overview
I calculated how much time spent for below script:
##### 2 MP Setup
media-ctl -d /dev/media0 --set-v4l2 "'gc2145 1-003c':0[fmt:RGB565_2X8_BE/1600x1200@1/20 field:none]"
media-ctl -d /dev/media0 --set-v4l2 "'gc2145 1-003c':0[fmt:RGB565_2X8_BE/1600x1200@1/20 field:none]"
media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_parallel':0[fmt:RGB565_2X8_BE/1600x1200]"
media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_parallel':1[fmt:RGB565_2X8_LE/1600x1200]"
media-ctl -d /dev/media0 --set-v4l2 "'dcmipp_dump_postproc':0[fmt:RGB565_2X8_LE/1600x1200]"
##### 2 MP Capture
v4l2-ctl --set-fmt-video=width=1600,height=1200,pixelformat=RGBP --stream-mmap --stream-count=1 --stream-to=grab-1600x1200-rgb565.raw
##### 2 MP Convert
gst-launch-1.0 filesrc location= grab-1600x1200-rgb565.raw blocksize=3840000 ! "video/x-raw, format=(string)RGB16, width=(int)1600, height=(int)1200, framerate=(fraction)20/1" ! videoconvert ! pngenc ! filesink location=grab-1600x1200-rgb565_ex1.pngAnd the results are:

These results are too much for me. I saw that too much time spent especially on convert section.
I know that decreasing resolution might be one of the solutions, but is there any other suggestions to reduce that time?
