i.MX8M Plus support Color conversion to RGB888 ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8M Plus support Color conversion to RGB888 ?

跳至解决方案
1,551 次查看
murakami
Contributor I

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 :

  • ISI has Color Space Conversion(CSC) - RGB, YUV, YCbCr
  • ISP has the color processing (CPROC) and output YUV data (8-12bit)

 

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

标签 (1)
0 项奖励
回复
1 解答
1,526 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,527 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

 

0 项奖励
回复
1,514 次查看
murakami
Contributor I

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

0 项奖励
回复