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