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.GLDisplayEGLare 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.GLDisplayEGLwill *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.GLDisplayEGLas foreign by callingGstGLEGL.GLDisplayEGL.set_foreign().New in version 1.12.
- classmethod get_from_native(type, display)¶
- Parameters:
type (
GstGL.GLDisplayType) – aGstGL.GLDisplayTypedisplay (
int) – pointer to a display (or 0)
- Returns:
A
EGLDisplayorEGL_NO_DISPLAY- Return type:
Attempts to create a new
EGLDisplayfrom display. If type isGstGL.GLDisplayType.ANYorGstGL.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.GLDisplayEGLorNone- Return type:
Create a new
GstGLEGL.GLDisplayEGLusing the default EGL_DEFAULT_DISPLAY.The returned
GstGLEGL.GLDisplayEGLwill 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.GLDisplayEGLorNone- Return type:
Create a new surfaceless
GstGLEGL.GLDisplayEGLusing 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
EGLDisplaymust keep theEGLDisplayalive while GStreamer is using any EGL or GL resources associated with thatEGLDisplay. The reverse is also true and a foreignGstGLEGL.GLDisplayEGLmust not be used after the associatedEGLDisplayhas been destroyed externally witheglTerminate().A non-foreign
GstGLEGL.GLDisplayEGLwill destroy the associatedEGLDisplayon finalization. This can also be useful when a user would like GStreamer to assume ownership of theEGLDisplayafter calling e.g.GstGLEGL.GLDisplayEGL.new_with_egl_display().New in version 1.26.