Commit 7f39f69c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

avcodecmap: Add variant to the ProRes caps

https://bugzilla.gnome.org/show_bug.cgi?id=769048
parent 5e61a899
...@@ -1664,6 +1664,31 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id, ...@@ -1664,6 +1664,31 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
caps = caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode, gst_ff_vid_caps_new (context, NULL, codec_id, encode,
"video/x-prores", NULL); "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; break;
case AV_CODEC_ID_MIMIC: case AV_CODEC_ID_MIMIC:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment