codec-utils: add H.266/vvc mime type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7652>
This commit is contained in:
Diego Nieto 2024-10-11 18:06:38 +02:00 committed by GStreamer Marge Bot
parent 5e7f187d93
commit 6b4caacd19

View file

@ -2998,6 +2998,8 @@ gst_codec_utils_caps_get_mime_codec (GstCaps * caps)
GST_DEBUG ("h265 caps parsing failed");
mime_codec = g_strdup ("hev1");
}
} else if (g_strcmp0 (media_type, "video/x-h266") == 0) {
mime_codec = g_strdup ("vvc1");
} else if (g_strcmp0 (media_type, "video/x-av1") == 0) {
mime_codec = av1_caps_get_mime_codec (caps);
} else if (g_strcmp0 (media_type, "video/x-vp8") == 0) {
@ -3165,6 +3167,13 @@ gst_codec_utils_caps_from_mime_codec_single (const gchar * codec)
/* FIXME : Extract information from the following component */
break;
}
case GST_MAKE_FOURCC ('v', 'v', 'c', '1'):
case GST_MAKE_FOURCC ('v', 'v', 'i', '1'):
{
/* H.266 */
caps = gst_caps_new_empty_simple ("video/x-h266");
break;
}
/* Following are not defined in rfc 6831 but are registered MP4RA codecs */
case GST_MAKE_FOURCC ('a', 'c', '-', '3'):