I run the command
v4l2-ctl -d /dev/video0 --set-fmt-video=width=4000,height=3000,pixelformat=RG12 --stream-mmap --stream-count=1 --stream-to=image.bayer
on IMX8MP, trying to capture a bayer image. But got 'VIDIOC_S_FMT: failed: Invalid argument'.
It seems that 12bit bayer image is not supported on IMX8MP by default. How can I add the support by myself?