i.MX8M Plus support Color conversion to RGB888 ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8M Plus support Color conversion to RGB888 ?

ソリューションへジャンプ
1,549件の閲覧回数
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,524件の閲覧回数
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,525件の閲覧回数
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,512件の閲覧回数
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 件の賞賛
返信