Commit 22a03888 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

qtdemux: add depth for ProRes 4:4:4:4 variants if available

Might be 24bpp in case an alpha channel is coded but
the image is always opaque.

Part-of: <gstreamer/gst-plugins-good!1062>
parent 14741417
Pipeline #387644 passed with stages
in 41 minutes and 49 seconds
......@@ -14328,12 +14328,24 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
"4444", NULL);
/* 24 bits per sample = an alpha channel is coded but image is always opaque */
if (entry->bits_per_sample > 0) {
gst_caps_set_simple (caps, "depth", G_TYPE_INT, entry->bits_per_sample,
NULL);
}
break;
case FOURCC_ap4x:
_codec ("Apple ProRes 4444 XQ");
caps =
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
"4444xq", NULL);
/* 24 bits per sample = an alpha channel is coded but image is always opaque */
if (entry->bits_per_sample > 0) {
gst_caps_set_simple (caps, "depth", G_TYPE_INT, entry->bits_per_sample,
NULL);
}
break;
case FOURCC_cfhd:
_codec ("GoPro CineForm");
......
Supports Markdown
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