mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 10:38:27 +00:00
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:
parent
9abeea49a0
commit
c27a01233d
3 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue