vaapioverlay: inline sinkpad scaling support
authorHaihao Xiang <haihao.xiang@intel.com>
Sat, 20 Nov 2021 02:47:24 +0000 (18:47 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 17 Feb 2022 03:19:56 +0000 (19:19 -0800)
commit55ceddff91803484c3d483a0f3fdbfd38e98824d
treeeafdc6915f25b23e36ac471b2090226b2c059dac
parent48b6404f8e0e68f6bcf1ade2fd49a583b310d93d
vaapioverlay: inline sinkpad scaling support

Often, users will need to scale inputs (e.g.
with vaapipostproc) before they are submitted
to the vaapioverlay.  However, this results in
multiple VPP passes/operations in the pipeline
which creates unnecessary process overhead.

This change allows for inputs to be submitted
at original scale to vaapioverlay with per-sinkpad
scale dimensions specified so they can be scaled
and blended/composited in a single VPP pass/operation
to avoid the unnecessary process overhead.

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