GstGL.GLVideoAllocationParams¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r/w |
the parent |
|
plane |
r/w |
the video plane index to allocate |
|
target |
r/w |
the |
|
tex_format |
r/w |
the |
|
v_info |
r/w |
the |
|
valign |
r/w |
the |
Methods¶
class |
|
class |
|
class |
|
class |
|
|
|
|
Details¶
- class GstGL.GLVideoAllocationParams¶
- classmethod new(context, alloc_params, v_info, plane, valign, target, tex_format)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
alloc_params (
Gst.AllocationParams
orNone
) – theGst.AllocationParams
for sysmem mappings of the texturev_info (
GstVideo.VideoInfo
) – theGstVideo.VideoInfo
for the textureplane (
int
) – the video plane of v_info to allocatevalign (
GstVideo.VideoAlignment
orNone
) – anyGstVideo.VideoAlignment
applied to symem mappings of the texturetarget (
GstGL.GLTextureTarget
) – theGstGL.GLTextureTarget
for the created texturestex_format (
GstGL.GLFormat
) – theGstGL.GLFormat
for the created textures
- Returns:
a new
GstGL.GLVideoAllocationParams
for allocatingGstGL.GLMemory
's- Return type:
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:
context (
GstGL.GLContext
) – aGstGL.GLContext
alloc_params (
Gst.AllocationParams
orNone
) – theGst.AllocationParams
for wrapped_datav_info (
GstVideo.VideoInfo
) – theGstVideo.VideoInfo
for wrapped_dataplane (
int
) – the video plane wrapped_data representsvalign (
GstVideo.VideoAlignment
orNone
) – anyGstVideo.VideoAlignment
applied to symem mappings of wrapped_datatarget (
GstGL.GLTextureTarget
) – theGstGL.GLTextureTarget
for wrapped_datatex_format (
GstGL.GLFormat
) – theGstGL.GLFormat
for wrapped_datanotify (
GLib.DestroyNotify
orNone
) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParams
for wrapping wrapped_data- Return type:
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:
context (
GstGL.GLContext
) – aGstGL.GLContext
alloc_params (
Gst.AllocationParams
orNone
) – theGst.AllocationParams
for tex_idv_info (
GstVideo.VideoInfo
) – theGstVideo.VideoInfo
for tex_idplane (
int
) – the video plane tex_id representsvalign (
GstVideo.VideoAlignment
orNone
) – anyGstVideo.VideoAlignment
applied to symem mappings of tex_idtarget (
GstGL.GLTextureTarget
) – theGstGL.GLTextureTarget
for tex_idtex_format (
GstGL.GLFormat
) – theGstGL.GLFormat
for tex_idnotify (
GLib.DestroyNotify
orNone
) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParams
for wrapping gl_handle- Return type:
gl_handle is defined by the specific OpenGL handle being wrapped For
GstGL.GLMemory
andGstGL.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:
context (
GstGL.GLContext
) – aGstGL.GLContext
alloc_params (
Gst.AllocationParams
orNone
) – theGst.AllocationParams
for tex_idv_info (
GstVideo.VideoInfo
) – theGstVideo.VideoInfo
for tex_idplane (
int
) – the video plane tex_id representsvalign (
GstVideo.VideoAlignment
orNone
) – anyGstVideo.VideoAlignment
applied to symem mappings of tex_idtarget (
GstGL.GLTextureTarget
) – theGstGL.GLTextureTarget
for tex_idtex_format (
GstGL.GLFormat
) – theGstGL.GLFormat
for tex_idtex_id (
int
) – the GL texture to wrapnotify (
GLib.DestroyNotify
orNone
) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParams
for wrapping tex_id- Return type:
New in version 1.8.
- copy_data(dest_vid)[source]¶
- Parameters:
dest_vid (
GstGL.GLVideoAllocationParams
) – destinationGstGL.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.