GLVideoAllocationParams.newWrappedGlHandle
gstgl.glvideo_allocation_params.GLVideoAllocationParams newWrappedGlHandle(gstgl.glcontext.GLContext context, gst.allocation_params.AllocationParams allocParams, gstvideo.video_info.VideoInfo vInfo, uint plane, gstvideo.video_alignment.VideoAlignment valign, gstgl.types.GLTextureTarget target, gstgl.types.GLFormat texFormat, void * glHandle = null, void * userData = null, glib.types.DestroyNotify notify = null)gl_handle is defined by the specific OpenGL handle being wrapped For #GstGLMemory and #GstGLMemoryPBO it is an OpenGL texture id. Other memory types may define it to require a different type of parameter.
Parameters
context | a #GstGLContext |
allocParams | the #GstAllocationParams for tex_id |
vInfo | the #GstVideoInfo for tex_id |
plane | the video plane tex_id represents |
valign | any #GstVideoAlignment applied to symem mappings of tex_id |
target | the #GstGLTextureTarget for tex_id |
texFormat | the #GstGLFormat for tex_id |
glHandle | the GL handle to wrap |
userData | user data to call notify with |
notify | a #GDestroyNotify |
Returns
a new #GstGLVideoAllocationParams for wrapping gl_handle