mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
avcodecmap: Add variant to the ProRes caps
https://bugzilla.gnome.org/show_bug.cgi?id=769048
This commit is contained in:
parent
5e61a8999f
commit
7f39f69c7c
1 changed files with 25 additions and 0 deletions
|
@ -1664,6 +1664,31 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
caps =
|
||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode,
|
||||
"video/x-prores", NULL);
|
||||
if (context) {
|
||||
switch (context->codec_tag) {
|
||||
case GST_MAKE_FOURCC ('a', 'p', 'c', 'o'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "proxy", NULL);
|
||||
break;
|
||||
case GST_MAKE_FOURCC ('a', 'p', 'c', 's'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "lt", NULL);
|
||||
break;
|
||||
default:
|
||||
case GST_MAKE_FOURCC ('a', 'p', 'c', 'n'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "standard",
|
||||
NULL);
|
||||
break;
|
||||
case GST_MAKE_FOURCC ('a', 'p', 'c', 'h'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "hq", NULL);
|
||||
break;
|
||||
case GST_MAKE_FOURCC ('a', 'p', '4', 'h'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "4444", NULL);
|
||||
break;
|
||||
case GST_MAKE_FOURCC ('a', 'p', '4', 'x'):
|
||||
gst_caps_set_simple (caps, "variant", G_TYPE_STRING, "4444xq",
|
||||
NULL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case AV_CODEC_ID_MIMIC:
|
||||
|
|
Loading…
Reference in a new issue