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) static nothrow

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

contexta #GstGLContext
allocParamsthe #GstAllocationParams for tex_id
vInfothe #GstVideoInfo for tex_id
planethe video plane tex_id represents
valignany #GstVideoAlignment applied to symem mappings of tex_id
targetthe #GstGLTextureTarget for tex_id
texFormatthe #GstGLFormat for tex_id
glHandlethe GL handle to wrap
userDatauser data to call notify with
notifya #GDestroyNotify

Returns

a new #GstGLVideoAllocationParams for wrapping gl_handle