GstGLEGL.GLDisplayEGL¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
display |
r |
||
foreign_display |
r |
||
parent |
r |
Class Details¶
- class GstGLEGL.GLDisplayEGL(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
the contents of a
GstGLEGL.GLDisplayEGL
are private and should only be accessed through the provided API- classmethod from_gl_display(display)¶
- Parameters:
display (
GstGL.GLDisplay
) – an existingGstGL.GLDisplay
- Returns:
a new
GstGLEGL.GLDisplayEGL
- Return type:
Creates a EGL display connection from a native Display.
This function will return the same value for multiple calls with the same display.
The returned
GstGLEGL.GLDisplayEGL
will *not* be marked as foreign and will free some display global EGL resources on finalization. If an external API/user will be also handling the lifetime of theEGLDisplay
, you should mark the returnedGstGLEGL.GLDisplayEGL
as foreign by callingGstGLEGL.GLDisplayEGL.set_foreign
().New in version 1.12.
- classmethod get_from_native(type, display)¶
- Parameters:
type (
GstGL.GLDisplayType
) – aGstGL.GLDisplayType
display (
int
) – pointer to a display (or 0)
- Returns:
A
EGLDisplay
orEGL_NO_DISPLAY
- Return type:
Attempts to create a new
EGLDisplay
from display. If type isGstGL.GLDisplayType.ANY
orGstGL.GLDisplayType.EGL_SURFACELESS
, then display must be 0. type must not beGstGL.GLDisplayType.NONE
.New in version 1.12.
- classmethod new()¶
- Returns:
a new
GstGLEGL.GLDisplayEGL
orNone
- Return type:
Create a new
GstGLEGL.GLDisplayEGL
using the default EGL_DEFAULT_DISPLAY.The returned
GstGLEGL.GLDisplayEGL
will by default free all EGL resources when finalized. SeeGstGLEGL.GLDisplayEGL.set_foreign
() for details on if you need the EGLDisplay to remain alive.
- classmethod new_surfaceless()¶
- Returns:
a new
GstGLEGL.GLDisplayEGL
orNone
- Return type:
Create a new surfaceless
GstGLEGL.GLDisplayEGL
using the Mesa3D EGL_PLATFORM_SURFACELESS_MESA extension.New in version 1.24.
- classmethod new_with_egl_display(display)¶
- Parameters:
- Return type:
- set_foreign(foreign)¶
- Parameters:
foreign (
bool
) – whether self should be marked as containing a foreignEGLDisplay
Configure whether or not this EGL display is foreign and is managed by an external application/library.
A display marked as foreign will not have display global resources freed when this display is finalized. As such, any external API using the same
EGLDisplay
must keep theEGLDisplay
alive while GStreamer is using any EGL or GL resources associated with thatEGLDisplay
. The reverse is also true and a foreignGstGLEGL.GLDisplayEGL
must not be used after the associatedEGLDisplay
has been destroyed externally witheglTerminate()
.A non-foreign
GstGLEGL.GLDisplayEGL
will destroy the associatedEGLDisplay
on finalization. This can also be useful when a user would like GStreamer to assume ownership of theEGLDisplay
after calling e.g.GstGLEGL.GLDisplayEGL.new_with_egl_display
().New in version 1.26.