Hello community,
About i.MX8MPlus specification, does this chip support the Color Space Conversion
from RGB bayer(by MIPI Camera) to RGB88 ?
I read he Reference Manual Rev.1. and understand the following :
If the i.MX8M Plus can convert the MIPI camera RGB bayer to RGB88 by HW.
How do we do it with the gStreamer and v4l2 on the Yocto (linux).
Incidentally, I can get the YUY2 by the following command:
# gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=3840,height=2160" ! queue ! imxvideoconvert_g2d ! waylandsink
I'm using the Yocto version 5.10.52.
Thanks,
murakami
已解决! 转到解答。
ISI can support color space conversion, if you need to use gstreamer, maybe you can try to use g2d like imxvideoconvert_g2d, for detailed command, you can refer to the linux user guide, the sample like this,
Color Space Conversion (CSC)
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 ! imxvideoconvert_{xxx} ! video/xraw,
format=RGB16 ! ximagesink display=:0
ISI can support color space conversion, if you need to use gstreamer, maybe you can try to use g2d like imxvideoconvert_g2d, for detailed command, you can refer to the linux user guide, the sample like this,
Color Space Conversion (CSC)
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 ! imxvideoconvert_{xxx} ! video/xraw,
format=RGB16 ! ximagesink display=:0
Thank you for your advice.
Do you mean that the output format of the IPS is YUV only. And we have to use
GPU (g2d) for the color conversion?
According to your advice, I tried the following command and get ARGB raw mage.
(It seems that imxconvert_g2d does not support RGB (RGB888) format. so I used
ARGB)
# gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=1 ! video/x-raw,width=3840,height=2160, format=YUY2 ! imxvideoconvert_g2d ! video/x-raw, format=ARGB ! filesink location=filename.raw
Thanks,
murakami