[gst-cvs] gst-plugins-base: riff: add support for 2vuy
Sebastian Dröge
slomo at kemper.freedesktop.org
Wed Aug 25 10:12:28 PDT 2010
Module: gst-plugins-base
Branch: master
Commit: 3a04b08437a0bf88cfdc7aa20f73ce801e2ba521
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=3a04b08437a0bf88cfdc7aa20f73ce801e2ba521
Author: Thijs Vermeir <thijsvermeir at gmail.com>
Date: Wed Aug 25 12:19:05 2010 +0200
riff: add support for 2vuy
It is the apple alternative for Microsofts UYVY.
(http://ntta.szm.com/Tutors/FourCC.htm)
Only use the UYVY for the caps to enable support in other
gstreamer elements.
https://bugzilla.gnome.org/show_bug.cgi?id=627924
---
gst-libs/gst/riff/riff-media.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c
index 72f6fe9..9340b2c 100644
--- a/gst-libs/gst/riff/riff-media.c
+++ b/gst-libs/gst/riff/riff-media.c
@@ -128,8 +128,10 @@ gst_riff_create_video_caps (guint32 codec_fcc,
break;
case GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'):
+ case GST_MAKE_FOURCC ('2', 'v', 'u', 'y'):
caps = gst_caps_new_simple ("video/x-raw-yuv",
- "format", GST_TYPE_FOURCC, codec_fcc, NULL);
+ "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'),
+ NULL);
if (codec_name)
*codec_name = g_strdup ("Uncompressed packed YUV 4:2:2");
break;
More information about the Gstreamer-commits
mailing list