diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2021-07-24 13:19:39 +0200 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-27 09:13:39 +0000 |
commit | c27a01233d3a53ef22c7aedace1d22b8d36e021d (patch) | |
tree | be3c9d7c88d0c852b09cc8c4cf7a531bfef20599 | |
parent | 9abeea49a01c6d2ce6df53b399a9d064fbdcde8f (diff) | |
download | gstreamer-plugins-bad-c27a01233d3a53ef22c7aedace1d22b8d36e021d.tar.gz |
va: filter: refactor convert_surface() to process()
The idea of this change is to add, in the future,
process_with_generator(), when multiple input surfaces are processed,
for blending.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2431>
-rw-r--r-- | sys/va/gstvafilter.c | 3 | ||||
-rw-r--r-- | sys/va/gstvafilter.h | 2 | ||||
-rw-r--r-- | sys/va/gstvavpp.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/sys/va/gstvafilter.c b/sys/va/gstvafilter.c index 3204aaaa6..d95790fa6 100644 --- a/sys/va/gstvafilter.c +++ b/sys/va/gstvafilter.c @@ -1393,8 +1393,7 @@ _create_pipeline_buffer (GstVaFilter * self, GstVaSample * src, } gboolean -gst_va_filter_convert_surface (GstVaFilter * self, GstVaSample * src, - GstVaSample * dst) +gst_va_filter_process (GstVaFilter * self, GstVaSample * src, GstVaSample * dst) { VABufferID buffer, *filters = NULL; VADisplay dpy; diff --git a/sys/va/gstvafilter.h b/sys/va/gstvafilter.h index 676d37bc6..fa3b5843b 100644 --- a/sys/va/gstvafilter.h +++ b/sys/va/gstvafilter.h @@ -85,7 +85,7 @@ gboolean gst_va_filter_add_filter_buffer (GstVaFilter * self, gsize size, guint num); gboolean gst_va_filter_drop_filter_buffers (GstVaFilter * self); -gboolean gst_va_filter_convert_surface (GstVaFilter * self, +gboolean gst_va_filter_process (GstVaFilter * self, GstVaSample * src, GstVaSample * dest); diff --git a/sys/va/gstvavpp.c b/sys/va/gstvavpp.c index d294b5c70..dccd8b068 100644 --- a/sys/va/gstvavpp.c +++ b/sys/va/gstvavpp.c @@ -1303,7 +1303,7 @@ gst_va_vpp_transform (GstBaseTransform * trans, GstBuffer * inbuf, }; /* *INDENT-ON* */ - if (!gst_va_filter_convert_surface (self->filter, &src, &dst)) { + if (!gst_va_filter_process (self->filter, &src, &dst)) { gst_buffer_set_flags (outbuf, GST_BUFFER_FLAG_CORRUPTED); } |