| 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_context (GstGLUpload *upload,GstGLContext *context);
void gst_gl_upload_get_caps (GstGLUpload *upload,GstCaps **in_caps,GstCaps **out_caps);
gboolean gst_gl_upload_set_caps (GstGLUpload *upload,GstCaps *in_caps,GstCaps *out_caps);
Initializes upload
with the information required for upload.
void gst_gl_upload_propose_allocation (GstGLUpload *upload,GstQuery *decide_query,GstQuery *query);
Adds the required allocation parameters to support uploading.
upload |
||
decide_query |
a GstQuery from a decide allocation. |
[allow-none] |
query |
the proposed allocation query |
GstCaps * gst_gl_upload_transform_caps (GstGLUpload *upload,GstGLContext *context,GstPadDirection direction,GstCaps *caps,GstCaps *filter);
GstGLUploadReturn gst_gl_upload_perform_with_buffer (GstGLUpload *upload,GstBuffer *buffer,GstBuffer **outbuf_ptr);
Uploads buffer
using the transformation specified by
gst_gl_upload_set_caps() creating a new GstBuffer in outbuf_ptr
.