Static$gtypeSince 1.8copy_Copies 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
Since 1.8copy_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.
Since 1.12get_Since 1.8get_Since 1.8get_Since 1.8get_Since 1.8get_Since 1.8initInitializes 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
optional GstVideo.VideoAlignment parameters
user data to call notify with
Since 1.8read_Reads 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.
the data pointer to pass to glReadPixels
whether theread operation succeeded
Since 1.8texsubimageStaticSince 1.4init_
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}'.