[Mesa-dev] [PATCH v3 03/12] gst-decoder.c: add support for YUY2 pixel format
Carlos Rafael Giani
dv at pseudoterminal.org
Wed Apr 26 18:56:15 UTC 2017
This format is used for example by the i.MX6 CODA hardware video codec
Signed-off-by: Carlos Rafael Giani <dv at pseudoterminal.org>
---
gst-decoder.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gst-decoder.c b/gst-decoder.c
index 22dc068..fd28201 100644
--- a/gst-decoder.c
+++ b/gst-decoder.c
@@ -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;
--
2.7.4
More information about the mesa-dev
mailing list