From dc2251a6648461390985bc5ad7f6adbb50108359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Jan 2015 19:05:20 +0100 Subject: [PATCH] qtmux: Add support for v210 --- gst/isomp4/fourcc.h | 1 + gst/isomp4/gstqtmux.c | 7 +++++++ gst/isomp4/gstqtmuxmap.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/fourcc.h b/gst/isomp4/fourcc.h index 4edf900..2f8874b 100644 --- a/gst/isomp4/fourcc.h +++ b/gst/isomp4/fourcc.h @@ -216,6 +216,7 @@ G_BEGIN_DECLS #define FOURCC_ulaw GST_MAKE_FOURCC('u','l','a','w') #define FOURCC_url_ GST_MAKE_FOURCC('u','r','l',' ') #define FOURCC_uuid GST_MAKE_FOURCC('u','u','i','d') +#define FOURCC_v210 GST_MAKE_FOURCC('v','2','1','0') #define FOURCC_vide GST_MAKE_FOURCC('v','i','d','e') #define FOURCC_vmhd GST_MAKE_FOURCC('v','m','h','d') #define FOURCC_wave GST_MAKE_FOURCC('w','a','v','e') diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 6614ba4..9247d88 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -3049,6 +3049,13 @@ gst_qt_mux_video_sink_set_caps (GstQTPad * qtpad, GstCaps * caps) entry.depth = depth; sync = FALSE; break; + case GST_VIDEO_FORMAT_v210: + if (depth == -1) + depth = 24; + entry.fourcc = FOURCC_v210; + entry.depth = depth; + sync = FALSE; + break; default: if (GST_VIDEO_FORMAT_INFO_FLAGS (vinfo) & GST_VIDEO_FORMAT_FLAG_RGB) { entry.fourcc = FOURCC_raw_; diff --git a/gst/isomp4/gstqtmuxmap.c b/gst/isomp4/gstqtmuxmap.c index 1f5f2b7..060f38b 100644 --- a/gst/isomp4/gstqtmuxmap.c +++ b/gst/isomp4/gstqtmuxmap.c @@ -149,7 +149,7 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = { GST_STATIC_CAPS ("video/quicktime, variant = (string) apple; " "video/quicktime"), GST_STATIC_CAPS ("video/x-raw, " - "format = (string) { RGB, UYVY }, " + "format = (string) { RGB, UYVY, v210 }, " COMMON_VIDEO_CAPS "; " MPEG4V_CAPS "; " H263_CAPS "; " -- 2.7.4