| GStreamer Bad Plugins 1.0 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
GstGLUpload; GstGLUpload * gst_gl_upload_new (GstGLContext *context); void gst_gl_upload_set_format (GstGLUpload *upload,GstVideoInfo *in_info); GstVideoInfo * gst_gl_upload_get_format (GstGLUpload *upload); gboolean gst_gl_upload_perform_with_data (GstGLUpload *upload,GLuint *texture_id,gpointer data[GST_VIDEO_MAX_PLANES]); gboolean gst_gl_upload_perform_with_gl_texture_upload_meta (GstGLUpload *upload,GstVideoGLTextureUploadMeta *meta,guint texture_id[4]); gboolean gst_gl_upload_perform_with_buffer (GstGLUpload *upload,GstBuffer *buffer,guint *tex_id); void gst_gl_upload_release_buffer (GstGLUpload *upload);
GstGLUpload is an object that uploads data from system memory into GL textures.
A GstGLUpload can be created with gst_gl_upload_new()
GstGLUpload * gst_gl_upload_new (GstGLContext *context);
|
a GstGLContext |
Returns : |
a new GstGLUpload object |
void gst_gl_upload_set_format (GstGLUpload *upload,GstVideoInfo *in_info);
Initializes upload with the information required for upload.
|
a GstGLUpload |
|
input GstVideoInfo |
GstVideoInfo * gst_gl_upload_get_format (GstGLUpload *upload);
|
a GstGLUpload |
Returns : |
The GstVideoInfo set by gst_gl_upload_set_format(). [transfer none]
|
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()
|
a GstGLUpload |
|
the texture id to upload into. [out] |
|
where the downloaded data should go |
Returns : |
whether the upload was successful |
gboolean gst_gl_upload_perform_with_gl_texture_upload_meta (GstGLUpload *upload,GstVideoGLTextureUploadMeta *meta,guint texture_id[4]);
Uploads meta into texture_id.
|
a GstGLUpload |
|
a GstVideoGLTextureUploadMeta |
|
resulting GL textures to place the data into. |
Returns : |
whether the upload was successful |
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.
|
a GstGLUpload |
|
a GstBuffer |
|
resulting texture |
Returns : |
whether the upload was successful |