GstVulkan.VulkanDisplay¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
event_source |
r |
||
instance |
r |
||
main_context |
r |
||
main_loop |
r |
||
object |
r |
||
type |
r |
||
windows |
[ |
r |
Class Details¶
- class GstVulkan.VulkanDisplay(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The contents of a
GstVulkan.VulkanDisplay
are private and should only be accessed through the provided APINew in version 1.18.
- classmethod choose_type(instance)¶
- Parameters:
instance (
GstVulkan.VulkanInstance
) – aGstVulkan.VulkanInstance
- Returns:
the default
GstVulkan.VulkanDisplayType
GstVulkan.VulkanInstance
will choose on creation- Return type:
This function will read the
GST_VULKAN_WINDOW
environment variable for a user choice or choose the first supported implementation.GstVulkan.VulkanInstance.fill_info
() must have been called prior to this function.New in version 1.18.
- classmethod handle_context_query(element, query, display)¶
- Parameters:
element (
Gst.Element
) – aGst.Element
query (
Gst.Query
) – aGst.Query
of typeGst.QueryType.CONTEXT
display (
GstVulkan.VulkanDisplay
orNone
) – theGstVulkan.VulkanDisplay
- Returns:
whether query was responded to with display
- Return type:
If a
GstVulkan.VulkanDisplay
is requested in query, sets device as the reply.Intended for use with element query handlers to respond to
Gst.QueryType.CONTEXT
for aGstVulkan.VulkanDisplay
.New in version 1.18.
- classmethod new(instance)¶
- Parameters:
instance (
GstVulkan.VulkanInstance
) –- Returns:
a new
GstVulkan.VulkanDisplay
- Return type:
New in version 1.18.
- classmethod new_with_type(instance, type)¶
- Parameters:
instance (
GstVulkan.VulkanInstance
) – aGstVulkan.VulkanInstance
type (
GstVulkan.VulkanDisplayType
) – theGstVulkan.VulkanDisplayType
to create
- Returns:
a new
GstVulkan.VulkanDisplay
orNone
if e.g. type is unsupported- Return type:
New in version 1.18.
- classmethod run_context_query(element, display)¶
- Parameters:
element (
Gst.Element
) – aGst.Element
display (
GstVulkan.VulkanDisplay
) – aGstVulkan.VulkanDisplay
- Returns:
whether display contains a valid
GstVulkan.VulkanDisplay
- display:
- Return type:
(
bool
, display:GstVulkan.VulkanDisplay
)
Attempt to retrieve a
GstVulkan.VulkanDisplay
usingGst.QueryType.CONTEXT
from the surrounding elements of element.New in version 1.18.
- create_window()¶
- Returns:
a new
GstVulkan.VulkanWindow
for self orNone
.- Return type:
New in version 1.18.
- find_window(data, compare_func)¶
- Parameters:
compare_func (
GLib.CompareFunc
) – a comparison function to run
- Returns:
The first
GstVulkan.VulkanWindow
that compare_func matches, orNone
- Return type:
Execute compare_func over the list of windows stored by self. The first argument to compare_func is the
GstVulkan.VulkanWindow
being checked and the second argument is data.New in version 1.18.
- get_handle()¶
-
New in version 1.18.
- get_handle_type()¶
- Returns:
the
GstVulkan.VulkanDisplayType
of self- Return type:
New in version 1.18.
- remove_window(window)¶
- Parameters:
window (
GstVulkan.VulkanWindow
) – theGstVulkan.VulkanWindow
to remove- Returns:
whether the window was successfully removed
- Return type:
New in version 1.18.
- do_create_window() virtual¶
- Returns:
a new
GstVulkan.VulkanWindow
for display orNone
.- Return type:
create a window
New in version 1.18.