Hi,
I will to use the gstreamer plugin "mfw_ipucsc" to convert a "YUV" data source.
My source support only:
'video/x-raw-yuv,format=(fourcc)YUY2'
and
'video/x-raw-yuv,format=(fourcc)UYVY'
But the mfw_ipucsc module support for "yuv":
video/x-raw-yuv
format: NV12
video/x-raw-yuv
format: I420
video/x-raw-yuv
format: UYUV
What kind of signal is the "UYUV"?
I found no information on this (e.g. http://www.fourcc.org/yuv.php).
Yuri, can you continue with the follow up?
(I consider that it is FSL's mistake)
Keita
Yuri,
Thank you very much!
OK. I got it.
Keita
Dear Yuri,
Hi.
I tested to convert from yuv4:2:2 to yuv4:2:0.
Refer to below Test 1 and Test 2.
Could you check my modification?
(I believe that below modification is right.)
===Test 1===
[Command]
gst-launch videotestsrc !
'video/x-raw-yuv,format=(fourcc)UYVY,framerate=30/1,width=1280,height=720' !
mfw_ipucsc !
'video/x-raw-yuv,format=(fourcc)I420,framerate=30/1,width=1280,height=720' !
autovideosink sync=false
[Result]
Failed
[Error]
WARNING: erroneous pipeline: could not link videotestsrc0 to mfwgstipucsc0
===Test 2===
*I modified the caps definition of mfw_gst_ipu_csc.c from "UYUV" to "UYVY".
[Result]
Success (gst-launch worked and a test video was displayed.)
[Modify as follows]
---------mfw_gst_ipu_csc.c---------
/*=============================================================================
LOCAL VARIABLES
=============================================================================*/
static IPUFormatMapper g_support_formats[] = {
{GST_VIDEO_FORMAT_NV12, IPU_PIX_FMT_NV12, GST_VIDEO_CAPS_YUV("NV12")},
{GST_VIDEO_FORMAT_I420, IPU_PIX_FMT_YUV420P, GST_VIDEO_CAPS_YUV("I420")},
{GST_VIDEO_FORMAT_UYVY, IPU_PIX_FMT_UYVY, GST_VIDEO_CAPS_YUV("UYVY")},
{GST_VIDEO_FORMAT_RGB16,IPU_PIX_FMT_RGB565, GST_VIDEO_CAPS_RGB_16},
{GST_VIDEO_FORMAT_UNKNOWN, -1, NULL}
};
------------------
Keita
Excuse please, but how I understand are the formats for YUV422:
- UYVY (not UYUV);
- VYUY;
- YUYV;
- YVYU.
Mean that "UYVY" and "UYUV" in this case are the same?