GstVulkan.VulkanImageMemory

Fields

Name

Type

Access

Description

barrier

GstVulkan.VulkanBarrierImageInfo

r/w

last set barrier for image

create_info

Vulkan.ImageCreateInfo

r/w

creation information for image

device

GstVulkan.VulkanDevice

r/w

the GstVulkan.VulkanDevice to allocate images from

format_properties

Vulkan.ImageFormatProperties

r/w

format properties

image

Vulkan.Image

r/w

the Vulkan image handle

lock

GLib.Mutex

r

notify

GLib.DestroyNotify

r

outstanding_views

[object]

r

parent

Gst.Memory

r/w

parent Gst.Memory

requirements

Vulkan.MemoryRequirements

r/w

memory requirements for image

usage

Vulkan.ImageUsageFlags

r/w

intended usage for image

user_data

object

r

views

[object]

r

vk_mem

GstVulkan.VulkanMemory

r/w

the backing GstVulkan.VulkanMemory for image

wrapped

bool

r

Methods

class

alloc (device, format, width, height, tiling, usage, mem_prop_flags)

class

alloc_with_image_info (device, image_info, mem_prop_flags)

class

init_once ()

add_view (view)

find_view (find_func, *user_data)

get_height ()

get_width ()

init (allocator, parent, device, format, usage, initial_layout, params, size, user_data, notify)

Details

class GstVulkan.VulkanImageMemory

New in version 1.18.

classmethod alloc(device, format, width, height, tiling, usage, mem_prop_flags)
Parameters:
Returns:

a Gst.Memory object backed by a vulkan device memory

Return type:

Gst.Memory

Allocated a new GstVulkan.VulkanImageMemory.

New in version 1.18.

classmethod alloc_with_image_info(device, image_info, mem_prop_flags)
Parameters:
Returns:

a Gst.Memory object backed by a vulkan device memory

Return type:

Gst.Memory

New in version 1.24.

classmethod init_once()

Initializes the Vulkan image memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanImageMemory operation.

New in version 1.18.

add_view(view)
Parameters:

view (GstVulkan.VulkanImageView) – a GstVulkan.VulkanImageView

New in version 1.18.

find_view(find_func, *user_data)
Parameters:
Returns:

the first GstVulkan.VulkanImageView that find_func returns True for, or None

Return type:

GstVulkan.VulkanImageView or None

New in version 1.18.

get_height()
Returns:

the height of self

Return type:

int

New in version 1.18.

get_width()
Returns:

the width of self

Return type:

int

New in version 1.18.

init(allocator, parent, device, format, usage, initial_layout, params, size, user_data, notify)
Parameters:
Return type:

bool