<div dir="ltr">Hi all,<div><br></div><div><br></div><div>I'm writing a v4l2-m2m driver for a 2d grapphic acceleration unit in an arm soc and I use gstreamer v4l2transform as userspace for test.</div><div><br></div><div>When i test it with below pipeline, i get a wrong picture.</div><div><br></div><div>gst-launch-1.0 -v videotestsrc ! "video/x-raw,format=BGRA, width=1920,height=1080,framerate=30/1" ! \ v4l2video0convert output-io-mode=dmabuf capture-io-mode=dmabuf ! \ "video/x-raw,format=NV12, width=640,height=720,framerate=30/1, pixel-aspect-ratio=8/9" ! kmssink<br></div><div><br></div><div><br></div><div>After studys, i think the problem is gstreamer always use big endian for color.</div><div><br></div><div><br></div><div>It seems in kmssink, the format will be converted according to endian.</div><div><a href="https://github.com/GStreamer/gst-plugins-bad/blob/d373c4478be2f9887032f2e18501aa80e41f097b/sys/kms/gstkmsutils.c#L45">https://github.com/GStreamer/gst-plugins-bad/blob/d373c4478be2f9887032f2e18501aa80e41f097b/sys/kms/gstkmsutils.c#L45</a><br></div><div><br></div><div><br></div><div>Shoud v4l2 pulgin do it too? So when i use "BGRA",  vl42 pulgin should convert to ARGB v4l2 format.</div><div><a href="https://github.com/GStreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2object.c#L1621">https://github.com/GStreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2object.c#L1621</a><br></div></div>