mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
gl/upload: add get_format method
Simply retreives the format set by init_format
This commit is contained in:
parent
6e5494d729
commit
cda89d7ce0
2 changed files with 21 additions and 0 deletions
|
@ -214,6 +214,26 @@ gst_gl_upload_init_format (GstGLUpload * upload, GstVideoInfo * in_info)
|
||||||
return ret;
|
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:
|
* gst_gl_upload_perform_with_buffer:
|
||||||
* @upload: a #GstGLUpload
|
* @upload: a #GstGLUpload
|
||||||
|
|
|
@ -78,6 +78,7 @@ struct _GstGLUploadClass
|
||||||
GstGLUpload * gst_gl_upload_new (GstGLContext * context);
|
GstGLUpload * gst_gl_upload_new (GstGLContext * context);
|
||||||
|
|
||||||
gboolean gst_gl_upload_init_format (GstGLUpload * upload, GstVideoInfo * in_info);
|
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);
|
gboolean gst_gl_upload_add_video_gl_texture_upload_meta (GstGLUpload * upload, GstBuffer * buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue