GstGL.GLVideoAllocationParams

Fields

Name

Type

Access

Description

parent

GstGL.GLAllocationParams

r/w

the parent GstGL.GLAllocationParams structure

plane

int

r/w

the video plane index to allocate

target

GstGL.GLTextureTarget

r/w

the GstGL.GLTextureTarget to allocate

tex_format

GstGL.GLFormat

r/w

the GstGL.GLFormat to allocate

v_info

GstVideo.VideoInfo

r/w

the GstVideo.VideoInfo to allocate

valign

GstVideo.VideoAlignment

r/w

the GstVideo.VideoAlignment to align the system representation to (may be None for the default)

Methods

class

new (context, alloc_params, v_info, plane, valign, target, tex_format)

class

new_wrapped_data (context, alloc_params, v_info, plane, valign, target, tex_format, wrapped_data, user_data, notify)

class

new_wrapped_gl_handle (context, alloc_params, v_info, plane, valign, target, tex_format, gl_handle, user_data, notify)

class

new_wrapped_texture (context, alloc_params, v_info, plane, valign, target, tex_format, tex_id, user_data, notify)

copy_data (dest_vid)

free_data ()

Details

class GstGL.GLVideoAllocationParams
classmethod new(context, alloc_params, v_info, plane, valign, target, tex_format)[source]
Parameters:
Returns:

a new GstGL.GLVideoAllocationParams for allocating GstGL.GLMemory's

Return type:

GstGL.GLVideoAllocationParams

New in version 1.8.

classmethod new_wrapped_data(context, alloc_params, v_info, plane, valign, target, tex_format, wrapped_data, user_data, notify)[source]
Parameters:
Returns:

a new GstGL.GLVideoAllocationParams for wrapping wrapped_data

Return type:

GstGL.GLVideoAllocationParams

New in version 1.8.

classmethod new_wrapped_gl_handle(context, alloc_params, v_info, plane, valign, target, tex_format, gl_handle, user_data, notify)[source]
Parameters:
Returns:

a new GstGL.GLVideoAllocationParams for wrapping gl_handle

Return type:

GstGL.GLVideoAllocationParams

gl_handle is defined by the specific OpenGL handle being wrapped For GstGL.GLMemory and GstGL.GLMemoryPBO it is an OpenGL texture id. Other memory types may define it to require a different type of parameter.

New in version 1.8.

classmethod new_wrapped_texture(context, alloc_params, v_info, plane, valign, target, tex_format, tex_id, user_data, notify)[source]
Parameters:
Returns:

a new GstGL.GLVideoAllocationParams for wrapping tex_id

Return type:

GstGL.GLVideoAllocationParams

New in version 1.8.

copy_data(dest_vid)[source]
Parameters:

dest_vid (GstGL.GLVideoAllocationParams) – destination GstGL.GLVideoAllocationParams to copy into

Copy and set any dynamically allocated resources in dest_vid. Intended for subclass usage only to chain up at the end of a subclass copy function.

New in version 1.8.

free_data()[source]

Unset and free any dynamically allocated resources. Intended for subclass usage only to chain up at the end of a subclass free function.

New in version 1.8.