Commit c27a0123 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by GStreamer Marge Bot
Browse files

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: <gstreamer/gst-plugins-bad!2431>
parent 9abeea49
Pipeline #368171 waiting for manual action with stages
in 1 minute and 14 seconds
......@@ -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;
......
......@@ -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);
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment