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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1061>
This commit is contained in:
parent
f510d48ecf
commit
43f2fd8081
@ -14507,12 +14507,24 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
|||||||
caps =
|
caps =
|
||||||
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
|
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
|
||||||
"4444", NULL);
|
"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;
|
break;
|
||||||
case FOURCC_ap4x:
|
case FOURCC_ap4x:
|
||||||
_codec ("Apple ProRes 4444 XQ");
|
_codec ("Apple ProRes 4444 XQ");
|
||||||
caps =
|
caps =
|
||||||
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
|
gst_caps_new_simple ("video/x-prores", "variant", G_TYPE_STRING,
|
||||||
"4444xq", NULL);
|
"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;
|
break;
|
||||||
case FOURCC_cfhd:
|
case FOURCC_cfhd:
|
||||||
_codec ("GoPro CineForm");
|
_codec ("GoPro CineForm");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user