GstVulkan.VulkanQueue

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstVulkan.VulkanQueue GstVulkan.VulkanQueue Gst.Object->GstVulkan.VulkanQueue

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

flags_to_string (queue_bits)

class

handle_context_query (element, query, queue)

class

run_context_query (element, queue)

create_command_pool ()

create_decoder (codec)

get_device ()

submit_lock ()

submit_unlock ()

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

device

GstVulkan.VulkanDevice

r

the GstVulkan.VulkanDevice this queue was allocated from

family

int

r

the vulkan queue family

index

int

r

the vulkan queue index

parent

Gst.Object

r

the parent Gst.Object

queue

Vulkan.Queue

r

the vulkan queue handle

Class Details

class GstVulkan.VulkanQueue(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

GstVulkan.VulkanQueueClass

New in version 1.18.

classmethod flags_to_string(queue_bits)
Parameters:

queue_bits (Vulkan.QueueFlags) –

Return type:

str

New in version 1.18.

classmethod handle_context_query(element, query, queue)
Parameters:
Returns:

whether query was responded to with queue

Return type:

bool

If a GstVulkan.VulkanQueue is requested in query, sets queue as the reply.

Intended for use with element query handlers to respond to Gst.QueryType.CONTEXT for a GstVulkan.VulkanQueue.

New in version 1.18.

classmethod run_context_query(element, queue)
Parameters:
Returns:

whether queue contains a valid GstVulkan.VulkanQueue

queue:

a GstVulkan.VulkanQueue

Return type:

(bool, queue: GstVulkan.VulkanQueue)

Attempt to retrieve a GstVulkan.VulkanQueue using Gst.QueryType.CONTEXT from the surrounding elements of element.

New in version 1.18.

create_command_pool()
Raises:

GLib.Error

Returns:

a new GstVulkan.VulkanCommandPool or None

Return type:

GstVulkan.VulkanCommandPool

New in version 1.18.

create_decoder(codec)
Parameters:

codec (int) – the VkVideoCodecOperationFlagBitsKHR to decode

Returns:

the GstVulkan.VulkanDecoder object

Return type:

GstVulkan.VulkanDecoder or None

Creates a GstVulkan.VulkanDecoder object if codec decoding is supported by self

New in version 1.24.

get_device()
Returns:

the GstVulkan.VulkanDevice for self

Return type:

GstVulkan.VulkanDevice or None

New in version 1.18.

submit_lock()

Locks the queue for command submission using vkQueueSubmit() to meet the Vulkan requirements for externally synchronised resources.

New in version 1.18.

submit_unlock()

Unlocks the queue for command submission using vkQueueSubmit().

See GstVulkan.VulkanQueue.submit_lock() for details on when this call is needed.

New in version 1.18.