riff-media: add H.265

Closes #359

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/43>
This commit is contained in:
Nicola Murino 2019-01-25 22:48:17 +01:00 committed by Edward Hervey
parent 1aef6b8fd5
commit f98f834014

View file

@ -353,6 +353,17 @@ gst_riff_create_video_caps (guint32 codec_fcc,
*codec_name = g_strdup ("ITU H.264"); *codec_name = g_strdup ("ITU H.264");
break; break;
case GST_MAKE_FOURCC ('X', '2', '6', '5'):
case GST_MAKE_FOURCC ('x', '2', '6', '5'):
case GST_MAKE_FOURCC ('H', '2', '6', '5'):
case GST_MAKE_FOURCC ('h', '2', '6', '5'):
case GST_MAKE_FOURCC ('h', 'v', 'c', '1'):
case GST_MAKE_FOURCC ('H', 'V', 'C', '1'):
caps = gst_caps_new_empty_simple ("video/x-h265");
if (codec_name)
*codec_name = g_strdup ("H.265");
break;
case GST_RIFF_VSSH: case GST_RIFF_VSSH:
caps = gst_caps_new_simple ("video/x-h264", caps = gst_caps_new_simple ("video/x-h264",
"variant", G_TYPE_STRING, "videosoft", NULL); "variant", G_TYPE_STRING, "videosoft", NULL);
@ -1887,6 +1898,7 @@ gst_riff_create_video_template_caps (void)
GST_MAKE_FOURCC ('H', '2', '6', '3'), GST_MAKE_FOURCC ('H', '2', '6', '3'),
GST_MAKE_FOURCC ('V', 'X', '1', 'K'), GST_MAKE_FOURCC ('V', 'X', '1', 'K'),
GST_MAKE_FOURCC ('H', '2', '6', '4'), GST_MAKE_FOURCC ('H', '2', '6', '4'),
GST_MAKE_FOURCC ('H', '2', '6', '5'),
GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'), GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'),
GST_MAKE_FOURCC ('I', '2', '6', '3'), GST_MAKE_FOURCC ('I', '2', '6', '3'),
GST_MAKE_FOURCC ('I', '4', '2', '0'), GST_MAKE_FOURCC ('I', '4', '2', '0'),