Commit 1ac23b18 authored by Carlos Rafael Giani's avatar Carlos Rafael Giani Committed by Rob Clark

gst-decoder.c: add support for YUY2 pixel format

This format is used for example by the i.MX6 CODA hardware video codec
Signed-off-by: 's avatarCarlos Rafael Giani <dv@pseudoterminal.org>
parent 3835712f
......@@ -91,6 +91,9 @@ pad_probe(GstPad *pad, GstPadProbeInfo *info, gpointer user_data)
case GST_VIDEO_FORMAT_NV12:
dec->format = DRM_FORMAT_NV12;
break;
case GST_VIDEO_FORMAT_YUY2:
dec->format = DRM_FORMAT_YUYV;
break;
default:
GST_ERROR("unknown format\n");
return GST_PAD_PROBE_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment