Skip to content
Snippets Groups Projects
Commit f510d48e authored by Ruslan Khamidullin's avatar Ruslan Khamidullin Committed by GStreamer Marge Bot
Browse files

qtmux: for Apple ProRes, allow overriding pixel bit depth for 4:4:4:4 variants

e.g. when exporting an opaque image, yet with alpha channel.

Apple ProRes certification requires that, when a ProRes-writing
application *knows* that the entire frame is opaque, the application
writes only RGB without alpha even when the clip is RGBA. For that,
this tiny change allows the app to override pixel depth when writing ProRes.

Part-of: <!1061>
parent 068c2a71
No related branches found
No related tags found
1 merge request!1061qtmux: for Apple ProRes, allow overriding pixel bit depth, e.g. when exporting an opaque image, yet with alpha.
......@@ -6654,7 +6654,7 @@ gst_qt_mux_video_sink_set_caps (GstQTMuxPad * qtpad, GstCaps * caps)
mp4v->horizontal_resolution = 72 << 16;
mp4v->vertical_resolution = 72 << 16;
mp4v->depth = (entry.fourcc == FOURCC_ap4h
|| entry.fourcc == FOURCC_ap4x) ? 32 : 24;
|| entry.fourcc == FOURCC_ap4x) ? (depth > 0 ? depth : 32) : 24;
/* Set compressor name, required by some software */
switch (entry.fourcc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment