Static$gtypeCopies gl_mem into the texture specified by tex_id. The format of tex_id
is specified by tex_format, width and height.
OpenGL texture id
the GstGL.GLFormat
width of tex_id
height of tex_id
Whether the copy succeeded
Copies the texture in GstGL.GLMemory into the texture specified by tex_id,
out_target, out_tex_format, out_width and out_height.
the destination texture id
the destination GstGL.GLTextureTarget
the destination GstGL.GLFormat
the destination width
the destination height
whether the copy succeeded.
the GstGL.GLFormat of gl_mem
the texture height of gl_mem
the OpenGL texture handle of gl_mem
the GstGL.GLTextureTarget of gl_mem
the texture width of gl_mem
Initializes mem with the required parameters. info is assumed to have
already have been modified with gst_video_info_align().
the Gst.Allocator to initialize with
the parent Gst.Memory to initialize with
the GstGL.GLContext to initialize with
the GstGL.GLTextureTarget for this GstGL.GLMemory
the GstGL.GLFormat for this GstGL.GLMemory
the GstAllocationParams to initialize with
the GstVideo.VideoInfo for this GstGL.GLMemory
the plane number (starting from 0) for this GstGL.GLMemory
Optionalvalign: VideoAlignmentoptional GstVideo.VideoAlignment parameters
Optionaluser_data: anyuser data to call notify with
Optionalnotify: DestroyNotifyReads the texture in GstGL.GLMemory into write_pointer if no buffer is bound
to GL_PIXEL_PACK_BUFFER. Otherwise write_pointer is the byte offset into
the currently bound GL_PIXEL_PACK_BUFFER buffer to store the result of
glReadPixels. See the OpenGL specification for glReadPixels for more
details.
Optionalwrite_pointer: anythe data pointer to pass to glReadPixels
whether theread operation succeeded
Reads the texture in read_pointer into gl_mem.
See gst_gl_memory_read_pixels() for what read_pointer signifies.
Optionalread_pointer: anythe data pointer to pass to glTexSubImage
Staticinit_Initializes the GL Base Texture allocator. It is safe to call this function multiple times. This must be called before any other GstGLMemory operation.
GstGLMemory is a GstGL.GLBaseMemory subclass providing support for the mapping of OpenGL textures.
GstGL.GLMemory is created or wrapped through
gst_gl_base_memory_alloc()with GstGL.GLVideoAllocationParams.Data is uploaded or downloaded from the GPU as is necessary.
The Gst.Caps that is used for GstGL.GLMemory based buffers should contain the
GST_CAPS_FEATURE_MEMORY_GL_MEMORYas a Gst.CapsFeatures and should contain a 'texture-target' field with one of the GstGL.GLTextureTarget values as a string, i.e. some combination of 'texture-target=(string){2D, rectangle, external-oes}'.