mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
d3d11compositor: Skip zero alpha input
Blending such input is a waste of resource since nothing will be rendered Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4438>
This commit is contained in:
parent
83106de7e7
commit
7eefdd1b95
1 changed files with 3 additions and 0 deletions
|
@ -765,6 +765,9 @@ gst_d3d11_compositor_pad_check_frame_obscured (GstVideoAggregatorPad * pad,
|
|||
* left unscaled)
|
||||
*/
|
||||
|
||||
if (cpad->alpha == 0)
|
||||
return TRUE;
|
||||
|
||||
gst_d3d11_compositor_pad_get_output_size (cpad, GST_VIDEO_INFO_PAR_N (info),
|
||||
GST_VIDEO_INFO_PAR_D (info), &width, &height, &x_offset, &y_offset);
|
||||
|
||||
|
|
Loading…
Reference in a new issue