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>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-07-24 13:19:39 +02:00 committed by GStreamer Marge Bot
parent 9abeea49a0
commit c27a01233d
3 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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);
}