diff options
author | Matthew Waters <matthew@centricular.com> | 2016-05-04 00:19:44 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-05-04 12:51:59 +1000 |
commit | c9d9077a5fa306a07a75fcf7ed033e56c1ab9231 (patch) | |
tree | 4811b7d08d143496d72a99df2aa04394533803a0 /gst-libs/gst/gl/gstglmemory.h | |
parent | 5228238715a3d73bbfe9a7de1c02941096e95576 (diff) |
glbasememory: take a pointer as the wrapped gpu handle
Allows passing arbitrary data to wrap the the specific memory implementation
which is required for some memory implementations.
Diffstat (limited to 'gst-libs/gst/gl/gstglmemory.h')
-rw-r--r-- | gst-libs/gst/gl/gstglmemory.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstglmemory.h b/gst-libs/gst/gl/gstglmemory.h index b032a5ce7..9a40d48f9 100644 --- a/gst-libs/gst/gl/gstglmemory.h +++ b/gst-libs/gst/gl/gstglmemory.h @@ -106,7 +106,7 @@ gboolean gst_gl_video_allocation_params_init_full (GstGLVideoAlloc GstVideoAlignment * valign, GstGLTextureTarget target, gpointer wrapped_data, - guint gl_handle, + gpointer gl_handle, gpointer user_data, GDestroyNotify notify); GstGLVideoAllocationParams * gst_gl_video_allocation_params_new (GstGLContext * context, @@ -135,6 +135,16 @@ GstGLVideoAllocationParams * gst_gl_video_allocation_params_new_wrapped_texture gpointer user_data, GDestroyNotify notify); +GstGLVideoAllocationParams * gst_gl_video_allocation_params_new_wrapped_gl_handle (GstGLContext * context, + GstAllocationParams * alloc_params, + GstVideoInfo * v_info, + guint plane, + GstVideoAlignment * valign, + GstGLTextureTarget target, + gpointer gl_handle, + gpointer user_data, + GDestroyNotify notify); + /* subclass usage */ void gst_gl_video_allocation_params_free_data (GstGLVideoAllocationParams * params); /* subclass usage */ |