GLVideoAllocationParams.newWrappedGlHandle

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 gstgl.glcontext.GLContext

a #GstGLContext

allocParams gst.allocation_params.AllocationParams

the #GstAllocationParams for tex_id

vInfo gstvideo.video_info.VideoInfo

the #GstVideoInfo for tex_id

plane uint

the video plane tex_id represents

valign gstvideo.video_alignment.VideoAlignment

any #GstVideoAlignment applied to symem mappings of tex_id

target gstgl.types.GLTextureTarget

the #GstGLTextureTarget for tex_id

texFormat gstgl.types.GLFormat

the #GstGLFormat for tex_id

glHandle void*

the GL handle to wrap

userData void*

user data to call notify with

notify glib.types.DestroyNotify

a #GDestroyNotify

Return Value

Type: gstgl.glvideo_allocation_params.GLVideoAllocationParams

a new #GstGLVideoAllocationParams for wrapping gl_handle