This format is used for example by the i.MX6 CODA hardware video codec

Signed-off-by: Carlos Rafael Giani <d...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to