the texture's #GstVideoInfo
the parent #GstGLBaseMemory object
data plane in info
the texture type
the GL texture id for this memory
GL shader scaling parameters for valign
and/or width/height
the GL texture target for this memory
data alignment for system memory mapping
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 #GstGLTextureTarget
the #GstGLFormat
width of tex_id
height of tex_id
Copies the texture in #GstGLMemory into the texture specified by tex_id,
out_target,
out_tex_format,
out_width
and out_height
.
the destination texture id
the destination #GstGLTextureTarget
the destination #GstGLFormat
the destination width
the destination height
Initializes mem
with the required parameters. info
is assumed to have
already have been modified with gst_video_info_align().
the #GstAllocator to initialize with
the parent #GstMemory to initialize with
the #GstGLContext to initialize with
the #GstGLTextureTarget for this #GstGLMemory
the #GstGLFormat for this #GstGLMemory
the GstAllocationParams
to initialize with
the #GstVideoInfo for this #GstGLMemory
the plane number (starting from 0) for this #GstGLMemory
optional #GstVideoAlignment parameters
user data to call notify
with
a #GDestroyNotify
Reads the texture in #GstGLMemory 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
Reads the texture in read_pointer
into gl_mem
.
See gst_gl_memory_read_pixels() for what read_pointer
signifies.
the data pointer to pass to glTexSubImage
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 #GstGLBaseMemory subclass providing support for the mapping of OpenGL textures.
#GstGLMemory is created or wrapped through gst_gl_base_memory_alloc() with #GstGLVideoAllocationParams.
Data is uploaded or downloaded from the GPU as is necessary.
The #GstCaps that is used for #GstGLMemory based buffers should contain the %GST_CAPS_FEATURE_MEMORY_GL_MEMORY as a #GstCapsFeatures and should contain a 'texture-target' field with one of the #GstGLTextureTarget values as a string, i.e. some combination of 'texture-target=(string){2D, rectangle, external-oes}'.