va: filter: Refactor set_formats() to set_video_info().
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 18 Jul 2021 10:46:08 +0000 (12:46 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 27 Jul 2021 09:13:39 +0000 (09:13 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2431>

sys/va/gstvafilter.c
sys/va/gstvafilter.h
sys/va/gstvavpp.c

index de1c0d1..3204aaa 100644 (file)
@@ -1184,7 +1184,7 @@ set_properties:
 }
 
 gboolean
-gst_va_filter_set_formats (GstVaFilter * self, GstVideoInfo * in_info,
+gst_va_filter_set_video_info (GstVaFilter * self, GstVideoInfo * in_info,
     GstVideoInfo * out_info)
 {
   g_return_val_if_fail (GST_IS_VA_FILTER (self), FALSE);
index d6dbfb3..676d37b 100644 (file)
@@ -77,7 +77,7 @@ const gpointer        gst_va_filter_get_filter_caps       (GstVaFilter * self,
 guint32               gst_va_filter_get_mem_types         (GstVaFilter * self);
 GArray *              gst_va_filter_get_surface_formats   (GstVaFilter * self);
 GstCaps *             gst_va_filter_get_caps              (GstVaFilter * self);
-gboolean              gst_va_filter_set_formats           (GstVaFilter * self,
+gboolean              gst_va_filter_set_video_info        (GstVaFilter * self,
                                                            GstVideoInfo * in_info,
                                                            GstVideoInfo * out_info);
 gboolean              gst_va_filter_add_filter_buffer     (GstVaFilter * self,
index 94e5ae9..d294b5c 100644 (file)
@@ -849,8 +849,8 @@ gst_va_vpp_set_caps (GstBaseTransform * trans, GstCaps * incaps,
   self->in_info = in_info;
   self->out_info = out_info;
 
-  self->negotiated =
-      gst_va_filter_set_formats (self->filter, &self->in_info, &self->out_info);
+  self->negotiated = gst_va_filter_set_video_info (self->filter, &self->in_info,
+      &self->out_info);
 
   if (self->negotiated)
     gst_va_vpp_update_passthrough (self, FALSE);