VA: Add the aux surface for gst buffer used by decoder.
authorHe Junyan <junyan.he@intel.com>
Tue, 19 Jan 2021 07:17:58 +0000 (15:17 +0800)
committerHe Junyan <junyan.he@intel.com>
Tue, 23 Feb 2021 05:52:50 +0000 (13:52 +0800)
commita119a940e4127bb764008b5ec5e8d7eaa9e50b5a
treec2a8507117c7ec045f63a32f85ff7d091d611af8
parente40e78a7938bbbd675b472f1aba75ef9671b7c49
VA: Add the aux surface for gst buffer used by decoder.

The AV1 codec needs to support the film grain feature. When the film
grain feature is enabled, we need two surfaces as the output of the
decoded picture, one without film grain effect and the other one with
it. The first one acts as the reference and is needed for later pictures'
reconstruction, and the second one is the real display output.
So we need to attach another aux surface to the gst buffer/mem and make
that aux surface as the target of vaBeginPicture.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1636>
sys/va/gstvaallocator.c
sys/va/gstvaallocator.h
sys/va/gstvadecoder.c
sys/va/gstvadecoder.h