Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2905>
GST_DEBUG ("no fastpath found");
return FALSE;
}
+
+/**
+ * gst_video_converter_get_in_info:
+ * @in_info: a #GstVideoConverter
+ *
+ * Retrieve the input format of @convert.
+ *
+ * Returns: (transfer none): a #GstVideoInfo
+ *
+ * Since: 1.22
+ */
+const GstVideoInfo *
+gst_video_converter_get_in_info (GstVideoConverter * convert)
+{
+ return &convert->in_info;
+}
+
+/**
+ * gst_video_converter_get_out_info:
+ * @in_info: a #GstVideoConverter
+ *
+ * Retrieve the output format of @convert.
+ *
+ * Returns: (transfer none): a #GstVideoInfo
+ *
+ * Since: 1.22
+ */
+const GstVideoInfo *
+gst_video_converter_get_out_info (GstVideoConverter * convert)
+{
+ return &convert->out_info;
+}
GST_VIDEO_API
void gst_video_converter_frame_finish (GstVideoConverter * convert);
+GST_VIDEO_API
+const GstVideoInfo * gst_video_converter_get_in_info (GstVideoConverter * convert);
+
+GST_VIDEO_API
+const GstVideoInfo * gst_video_converter_get_out_info (GstVideoConverter * convert);
+
G_END_DECLS
#endif /* __GST_VIDEO_CONVERTER_H__ */
GST_VIDEO_CONVERTER_OPT_DEST_WIDTH, G_TYPE_INT, 300,
GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT, G_TYPE_INT, 220, NULL));
+ g_assert (gst_video_info_is_equal (&ininfo,
+ gst_video_converter_get_in_info (convert)));
+ g_assert (gst_video_info_is_equal (&outinfo,
+ gst_video_converter_get_out_info (convert)));
+
gst_video_converter_frame (convert, &inframe, &outframe);
gst_video_converter_free (convert);