va: filter: Enable to pass VASurfaceID in GstVaSample.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 5 Oct 2021 11:21:00 +0000 (13:21 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 10 Oct 2021 17:03:29 +0000 (17:03 +0000)
commitf1e2eb4f1eefd9c102e51881c4dd67a0c3f1f93a
tree37f6b313d65cb50c8c5229b244474a9e3de2ad65
parent14156f82704dcf3ccd14b114eb168cc3ef018572
va: filter: Enable to pass VASurfaceID in GstVaSample.

Initially GstVaSample processed its GstBuffer member to get the
VASurfaceID. But it might cases where we already have the VASurfaceID
to process by the filter.

This patch enables the possibility to pass the surfaces rather than
the buffers. In order to validate the surfaces a function to check
surfaces were added.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1023>
subprojects/gst-plugins-bad/sys/va/gstvafilter.c
subprojects/gst-plugins-bad/sys/va/vasurfaceimage.c
subprojects/gst-plugins-bad/sys/va/vasurfaceimage.h