GstGLRenderBuffer

GstGLRenderbuffer is a GstGL.GLBaseMemory subclass providing support for OpenGL renderbuffers.

GstGL.GLRenderbuffer is created or wrapped through GstGL.gl_base_memory_alloc with GstGL.GLRenderbufferAllocationParams.

GstGL.GLRenderbuffer

Represents information about a GL renderbuffer

Members

renderbuffer_id (int) –

the GL texture id for this memory

renderbuffer_format (GstGL.GLFormat) –

the texture type

width (int) –

the width

height (int) –

the height

renderbuffer_wrapped (bool) –
No description available

Methods

GstGL.GLRenderbuffer.get_format

def GstGL.GLRenderbuffer.get_format (self):
    #python wrapper for 'gst_gl_renderbuffer_get_format'

Parameters:

Returns (GstGL.GLFormat)

the GstGL.GLFormat of gl_mem

Since : 1.12


GstGL.GLRenderbuffer.get_height

def GstGL.GLRenderbuffer.get_height (self):
    #python wrapper for 'gst_gl_renderbuffer_get_height'

Parameters:

Returns (int)

the configured height of gl_mem

Since : 1.10


GstGL.GLRenderbuffer.get_id

def GstGL.GLRenderbuffer.get_id (self):
    #python wrapper for 'gst_gl_renderbuffer_get_id'

Parameters:

Returns (int)

the OpenGL renderbuffer handle of gl_mem

Since : 1.10


GstGL.GLRenderbuffer.get_width

def GstGL.GLRenderbuffer.get_width (self):
    #python wrapper for 'gst_gl_renderbuffer_get_width'

Parameters:

Returns (int)

the configured width of gl_mem

Since : 1.10


Functions

GstGL.gl_renderbuffer_init_once

def GstGL.gl_renderbuffer_init_once ():
    #python wrapper for 'gst_gl_renderbuffer_init_once'

Initializes the GL Base Texture allocator. It is safe to call this function multiple times. This must be called before any other GstGLRenderbuffer operation.

Since : 1.10


GstGL.GLRenderbufferAllocationParams

Allocation parameters

Members

renderbuffer_format (GstGL.GLFormat) –

the GstGL.GLFormat

width (int) –

the width

height (int) –

the height


Constructors

GstGL.GLRenderbufferAllocationParams.new

def GstGL.GLRenderbufferAllocationParams.new (context, alloc_params, renderbuffer_format, width, height):
    #python wrapper for 'gst_gl_renderbuffer_allocation_params_new'

Parameters:

alloc_params (Gst.AllocationParams)

the Gst.AllocationParams for sysmem mappings of the texture

renderbuffer_format (GstGL.GLFormat)

the GstGL.GLFormat for the created textures

width (int)

the width of the renderbuffer

height (int)

the height of the renderbuffer

Since : 1.10


GstGL.GLRenderbufferAllocationParams.new_wrapped

def GstGL.GLRenderbufferAllocationParams.new_wrapped (context, alloc_params, renderbuffer_format, width, height, gl_handle, user_data, notify):
    #python wrapper for 'gst_gl_renderbuffer_allocation_params_new_wrapped'

Parameters:

alloc_params (Gst.AllocationParams)

the Gst.AllocationParams for tex_id

renderbuffer_format (GstGL.GLFormat)

the GstGL.GLFormat for tex_id

width (int)

the width of the renderbuffer

height (int)

the height of the renderbuffer

gl_handle (object)

the GL handle to wrap

user_data (object)

user data to call notify with

a new GstGL.GLRenderbufferAllocationParams for wrapping gl_handle as a renderbuffer

Since : 1.10


GstGL.GLRenderbufferAllocator

GObject.Object
    ╰──GObject.InitiallyUnowned
        ╰──Gst.Object
            ╰──Gst.Allocator
                ╰──GstGL.GLBaseMemoryAllocator
                    ╰──GstGL.GLRenderbufferAllocator

Members

No description available

Functions

GstGL.is_gl_renderbuffer

def GstGL.is_gl_renderbuffer (mem):
    #python wrapper for 'gst_is_gl_renderbuffer'

Parameters:

mem (Gst.Memory)

a Gst.Memory

Returns (bool)

whether the memory at mem is a GstGL.GLRenderbuffer

Since : 1.10


Function Macros

Constants

GstGL.GL_RENDERBUFFER_ALLOCATOR_NAME

The name of the GL renderbuffer allocator


The results of the search are