mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
pbutils: descriptions: add Dirac/VC-2 profile to description if available
https://bugzilla.gnome.org/show_bug.cgi?id=673976
This commit is contained in:
parent
1d528459be
commit
001bd78957
2 changed files with 20 additions and 2 deletions
|
@ -198,7 +198,6 @@ static const FormatInfo formats[] = {
|
|||
{"video/x-cinepak", "Cinepak Video", FLAG_VIDEO, ""},
|
||||
{"video/x-cirrus-logic-accupak", "Cirrus Logipak AccuPak", FLAG_VIDEO, ""},
|
||||
{"video/x-compressed-yuv", N_("CYUV Lossless"), FLAG_VIDEO, ""},
|
||||
{"video/x-dirac", "Dirac", FLAG_VIDEO, ""},
|
||||
{"video/x-dnxhd", "Digital Nonlinear Extensible High Definition (DNxHD)",
|
||||
FLAG_VIDEO, ""},
|
||||
{"subpicture/x-dvd", "DVD subpicture", FLAG_VIDEO, ""},
|
||||
|
@ -305,6 +304,7 @@ static const FormatInfo formats[] = {
|
|||
{"video/mpeg", NULL, FLAG_VIDEO, ""},
|
||||
{"video/x-asus", NULL, FLAG_VIDEO, ""},
|
||||
{"video/x-ati-vcr", NULL, FLAG_VIDEO, ""},
|
||||
{"video/x-dirac", NULL, FLAG_VIDEO, ""},
|
||||
{"video/x-divx", NULL, FLAG_VIDEO, ""},
|
||||
{"video/x-dv", "Digital Video (DV) System Stream",
|
||||
FLAG_CONTAINER | FLAG_SYSTEMSTREAM, "dv"},
|
||||
|
@ -492,6 +492,18 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
|||
} else if (strcmp (info->type, "video/x-h265") == 0) {
|
||||
/* TODO: Any variants? */
|
||||
return g_strdup ("H.265");
|
||||
} else if (strcmp (info->type, "video/x-dirac") == 0) {
|
||||
const gchar *profile = gst_structure_get_string (s, "profile");
|
||||
if (profile == NULL)
|
||||
return g_strdup ("Dirac");
|
||||
if (strcmp (profile, "vc2-low-delay") == 0)
|
||||
return g_strdup_printf ("Dirac (%s)", "VC-2 Low Delay Profile");
|
||||
else if (strcmp (profile, "vc2-simple") == 0)
|
||||
return g_strdup_printf ("Dirac (%s)", "VC-2 Simple Profile");
|
||||
else if (strcmp (profile, "vc2-main") == 0)
|
||||
return g_strdup_printf ("Dirac (%s)", "VC-2 Main Profile");
|
||||
else
|
||||
return g_strdup ("Dirac");
|
||||
} else if (strcmp (info->type, "video/x-divx") == 0) {
|
||||
gint ver = 0;
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ static const gchar *caps_strings[] = {
|
|||
"audio/x-wms", "audio/x-voxware", "audio/x-xi", "video/sp5x", "video/vivo",
|
||||
"video/x-4xm", "video/x-apple-video", "video/x-camtasia",
|
||||
"video/x-cdxa", "video/x-cinepak", "video/x-cirrus-logic-accupak",
|
||||
"video/x-compressed-yuv", "video/x-dirac", "subpicture/x-dvd",
|
||||
"video/x-compressed-yuv", "subpicture/x-dvd",
|
||||
"video/x-ffv", "video/x-flash-screen", "video/x-flash-video",
|
||||
"video/x-h261", "video/x-huffyuv", "video/x-intel-h263", "video/x-jpeg",
|
||||
"video/x-mjpeg", "video/x-mjpeg-b", "video/mpegts", "video/x-mng",
|
||||
|
@ -324,6 +324,12 @@ static const gchar *caps_strings[] = {
|
|||
"audio/x-wma, wmaversion=(int)3",
|
||||
"audio/x-wma, wmaversion=(int)99",
|
||||
"audio/x-wma",
|
||||
"video/x-dirac",
|
||||
"video/x-dirac, profile=(string)vc2-low-delay",
|
||||
"video/x-dirac, profile=(string)vc2-simple",
|
||||
"video/x-dirac, profile=(string)vc2-main",
|
||||
"video/x-dirac, profile=(string)main",
|
||||
"video/x-dirac, profile=(string)czvja",
|
||||
"video/x-divx, divxversion=(int)3",
|
||||
"video/x-divx, divxversion=(int)4",
|
||||
"video/x-divx, divxversion=(int)5",
|
||||
|
|
Loading…
Reference in a new issue