vaapioverlay: use vpp blend state iif using alpha
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 19 Nov 2021 22:46:34 +0000 (14:46 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 17 Feb 2022 03:19:56 +0000 (19:19 -0800)
commit48b6404f8e0e68f6bcf1ade2fd49a583b310d93d
tree3e99baab4f68c317ccfc47630d3214864f1a608b
parent04b8dfa3913a34ba5a4c0c980129997a4ca02fb7
vaapioverlay: use vpp blend state iif using alpha

Don't set VAAPI vpp blend flags if alpha == 1.0,
i.e. fully opaque.  This can avoid extra processing
overhead on some drivers that apply blending
unconditionally when flags are present, even if the
end result is the same without blend flags (i.e. all
opaque alpha channels).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1380>
subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapiblend.c