mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
parent
53db4a1884
commit
b65da8ea96
2 changed files with 8 additions and 0 deletions
|
@ -405,6 +405,9 @@ gst_dshow_guid_to_gst_video_format (AM_MEDIA_TYPE *mediatype)
|
||||||
if (gst_dshow_check_mediatype (mediatype, MEDIASUBTYPE_RGB24, FORMAT_VideoInfo))
|
if (gst_dshow_check_mediatype (mediatype, MEDIASUBTYPE_RGB24, FORMAT_VideoInfo))
|
||||||
return GST_VIDEO_FORMAT_BGR;
|
return GST_VIDEO_FORMAT_BGR;
|
||||||
|
|
||||||
|
if (gst_dshow_check_mediatype (mediatype, MEDIASUBTYPE_YUY2, FORMAT_VideoInfo))
|
||||||
|
return GST_VIDEO_FORMAT_YUY2;
|
||||||
|
|
||||||
return GST_VIDEO_FORMAT_UNKNOWN;
|
return GST_VIDEO_FORMAT_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,6 +425,10 @@ gst_dshow_new_video_caps (GstVideoFormat video_format, const gchar * name,
|
||||||
break;
|
break;
|
||||||
case GST_VIDEO_FORMAT_I420:
|
case GST_VIDEO_FORMAT_I420:
|
||||||
video_caps = gst_caps_from_string (GST_VIDEO_CAPS_YUV ("I420"));
|
video_caps = gst_caps_from_string (GST_VIDEO_CAPS_YUV ("I420"));
|
||||||
|
break;
|
||||||
|
case GST_VIDEO_FORMAT_YUY2:
|
||||||
|
video_caps = gst_caps_from_string (GST_VIDEO_CAPS_YUV ("YUY2"));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGR ";"
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGR ";"
|
||||||
GST_VIDEO_CAPS_YUV ("{ I420 }") ";"
|
GST_VIDEO_CAPS_YUV ("{ I420 }") ";"
|
||||||
|
GST_VIDEO_CAPS_YUV ("{ YUY2 }") ";"
|
||||||
"video/x-dv,"
|
"video/x-dv,"
|
||||||
"systemstream = (boolean) FALSE,"
|
"systemstream = (boolean) FALSE,"
|
||||||
"width = (int) [ 1, MAX ],"
|
"width = (int) [ 1, MAX ],"
|
||||||
|
|
Loading…
Reference in a new issue