mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
mfvideosrc: Add support YUY2 format for UWP
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1342>
This commit is contained in:
parent
8d7f537782
commit
86e3df9493
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ gst_media_capture_subtype_to_video_format (const std::string &subtype)
|
||||||
return "YV12";
|
return "YV12";
|
||||||
else if (g_ascii_strcasecmp (subtype.c_str(), "IYUV") == 0)
|
else if (g_ascii_strcasecmp (subtype.c_str(), "IYUV") == 0)
|
||||||
return "I420";
|
return "I420";
|
||||||
|
else if (g_ascii_strcasecmp (subtype.c_str(), "YUY2") == 0)
|
||||||
|
return "YUY2";
|
||||||
|
|
||||||
/* FIXME: add more */
|
/* FIXME: add more */
|
||||||
|
|
||||||
return std::string();
|
return std::string();
|
||||||
|
|
Loading…
Reference in a new issue