| Top |
GstGLUpload is an object that uploads data from system memory into GL textures.
A GstGLUpload can be created with gst_gl_upload_new()
void gst_gl_upload_set_format (GstGLUpload *upload,GstVideoInfo *in_info);
Initializes upload
with the information required for upload.
gboolean gst_gl_upload_perform_with_data (GstGLUpload *upload,GLuint *texture_id,gpointer data[GST_VIDEO_MAX_PLANES]);
Uploads data
into texture_id
. data size and format is specified by
the GstVideoInfos passed to gst_gl_upload_set_format()
gboolean gst_gl_upload_perform_with_gl_texture_upload_meta (GstGLUpload *upload,GstVideoGLTextureUploadMeta *meta,guint texture_id[4]);
Uploads meta
into texture_id
.
gboolean gst_gl_upload_perform_with_buffer (GstGLUpload *upload,GstBuffer *buffer,guint *tex_id);
Uploads buffer
to the texture given by tex_id
. tex_id
is valid
until gst_gl_upload_release_buffer() is called.