GstVulkan.VulkanImageBufferPool

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.BufferPool Gst.BufferPool GstVulkan.VulkanImageBufferPool GstVulkan.VulkanImageBufferPool Gst.BufferPool->GstVulkan.VulkanImageBufferPool Gst.Object->Gst.BufferPool

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

config_get_allocation_params (config)

class

config_set_allocation_params (config, usage, mem_properties, initial_layout, initial_access)

class

config_set_decode_caps (config, caps)

class

config_set_encode_caps (config, caps)

class

new (device)

Virtual Methods

Inherited:

Gst.BufferPool (11), 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

bufferpool

Gst.BufferPool

r

parent Gst.BufferPool

device

GstVulkan.VulkanDevice

r

the GstVulkan.VulkanDevice to allocate images from

Class Details

class GstVulkan.VulkanImageBufferPool(**kwargs)
Bases:

Gst.BufferPool

Abstract:

No

Structure:

GstVulkan.VulkanImageBufferPoolClass

New in version 1.18.

classmethod config_get_allocation_params(config)
Parameters:

config (Gst.Structure) – the Gst.Structure with the pool’s configuration.

Returns:

usage:

The Vulkan image usage flags.

mem_props:

Vulkan memory property flags.

initial_layout:

Initial Vulkan image layout.

initial_access:

Initial Vulkan access flags.

Return type:

(usage: Vulkan.ImageUsageFlags, mem_props: Vulkan.MemoryPropertyFlags, initial_layout: Vulkan.ImageLayout, initial_access: int)

Gets the configuration of the Vulkan image buffer pool.

New in version 1.26.

classmethod config_set_allocation_params(config, usage, mem_properties, initial_layout, initial_access)
Parameters:

Sets the usage and mem_properties, initial_layout and initial_access of the images to setup.

If initial_access is VK_IMAGE_LAYOUT_UNDEFINED or VK_IMAGE_LAYOUT_PREINITIALIZED, the image crated by this pool has not been initialized to a particular layout

New in version 1.24.

classmethod config_set_decode_caps(config, caps)
Parameters:

Decode caps are used when the buffers are going to be used either as decoded dest or DPB images.

New in version 1.24.

classmethod config_set_encode_caps(config, caps)
Parameters:

Encode caps are used when the buffers are going to be used either as encoded src or DPB images.

New in version 1.26.

classmethod new(device)
Parameters:

device (GstVulkan.VulkanDevice) – the GstVulkan.VulkanDevice to use

Returns:

a Gst.BufferPool that allocates buffers with #GstGLMemory

Return type:

Gst.BufferPool

New in version 1.18.