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.GLContextalloc_params (
Gst.AllocationParamsorNone) – theGst.AllocationParamsfor sysmem mappings of the texturev_info (
GstVideo.VideoInfo) – theGstVideo.VideoInfofor the textureplane (
int) – the video plane of v_info to allocatevalign (
GstVideo.VideoAlignmentorNone) – anyGstVideo.VideoAlignmentapplied to symem mappings of the texturetarget (
GstGL.GLTextureTarget) – theGstGL.GLTextureTargetfor the created texturestex_format (
GstGL.GLFormat) – theGstGL.GLFormatfor the created textures
- Returns:
a new
GstGL.GLVideoAllocationParamsfor 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.GLContextalloc_params (
Gst.AllocationParamsorNone) – theGst.AllocationParamsfor wrapped_datav_info (
GstVideo.VideoInfo) – theGstVideo.VideoInfofor wrapped_dataplane (
int) – the video plane wrapped_data representsvalign (
GstVideo.VideoAlignmentorNone) – anyGstVideo.VideoAlignmentapplied to symem mappings of wrapped_datatarget (
GstGL.GLTextureTarget) – theGstGL.GLTextureTargetfor wrapped_datatex_format (
GstGL.GLFormat) – theGstGL.GLFormatfor wrapped_datanotify (
GLib.DestroyNotifyorNone) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParamsfor 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.GLContextalloc_params (
Gst.AllocationParamsorNone) – theGst.AllocationParamsfor tex_idv_info (
GstVideo.VideoInfo) – theGstVideo.VideoInfofor tex_idplane (
int) – the video plane tex_id representsvalign (
GstVideo.VideoAlignmentorNone) – anyGstVideo.VideoAlignmentapplied to symem mappings of tex_idtarget (
GstGL.GLTextureTarget) – theGstGL.GLTextureTargetfor tex_idtex_format (
GstGL.GLFormat) – theGstGL.GLFormatfor tex_idnotify (
GLib.DestroyNotifyorNone) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParamsfor wrapping gl_handle- Return type:
gl_handle is defined by the specific OpenGL handle being wrapped For
GstGL.GLMemoryandGstGL.GLMemoryPBOit 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.GLContextalloc_params (
Gst.AllocationParamsorNone) – theGst.AllocationParamsfor tex_idv_info (
GstVideo.VideoInfo) – theGstVideo.VideoInfofor tex_idplane (
int) – the video plane tex_id representsvalign (
GstVideo.VideoAlignmentorNone) – anyGstVideo.VideoAlignmentapplied to symem mappings of tex_idtarget (
GstGL.GLTextureTarget) – theGstGL.GLTextureTargetfor tex_idtex_format (
GstGL.GLFormat) – theGstGL.GLFormatfor tex_idtex_id (
int) – the GL texture to wrapnotify (
GLib.DestroyNotifyorNone) – aGLib.DestroyNotify
- Returns:
a new
GstGL.GLVideoAllocationParamsfor wrapping tex_id- Return type:
New in version 1.8.
- copy_data(dest_vid)[source]¶
- Parameters:
dest_vid (
GstGL.GLVideoAllocationParams) – destinationGstGL.GLVideoAllocationParamsto 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.