i.MX8M Plus support Color conversion to RGB888 ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Plus support Color conversion to RGB888 ?

Jump to solution
1,222 Views
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

Labels (1)
0 Kudos
1 Solution
1,197 Views
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

 

View solution in original post

0 Kudos
2 Replies
1,198 Views
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 Kudos
1,185 Views
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 Kudos