Simply retreives the format set by init_format
GstGLUpload
gst_gl_upload_new
gst_gl_upload_init_format
+gst_gl_upload_get_format
gst_gl_upload_add_video_gl_texture_upload_meta
gst_gl_upload_perform_with_data
gst_gl_upload_perform_with_memory
return ret;
}
+/**
+ * gst_gl_upload_get_format:
+ * @upload: a #GstGLUpload
+ *
+ * Returns: (transfer none): The #GstVideoInfo set by gst_gl_upload_init_format()
+ */
+GstVideoInfo *
+gst_gl_upload_get_format (GstGLUpload * upload)
+{
+ GstVideoInfo *ret;
+
+ g_mutex_lock (&upload->lock);
+
+ ret = &upload->in_info;
+
+ g_mutex_unlock (&upload->lock);
+
+ return ret;
+}
+
/**
* gst_gl_upload_perform_with_buffer:
* @upload: a #GstGLUpload
GstGLUpload * gst_gl_upload_new (GstGLContext * context);
gboolean gst_gl_upload_init_format (GstGLUpload * upload, GstVideoInfo * in_info);
+GstVideoInfo * gst_gl_upload_get_format (GstGLUpload * upload);
gboolean gst_gl_upload_add_video_gl_texture_upload_meta (GstGLUpload * upload, GstBuffer * buffer);