GstVulkan.VulkanImageMemory¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
barrier |
r/w |
last set barrier for image |
|
create_info |
r/w |
creation information for image |
|
device |
r/w |
the |
|
format_properties |
r/w |
format properties |
|
image |
r/w |
the Vulkan image handle |
|
lock |
r |
||
notify |
r |
||
outstanding_views |
[ |
r |
|
parent |
r/w |
parent |
|
requirements |
r/w |
memory requirements for image |
|
usage |
r/w |
intended usage for image |
|
user_data |
r |
||
views |
[ |
r |
|
vk_mem |
r/w |
the backing |
|
wrapped |
r |
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class GstVulkan.VulkanImageMemory¶
New in version 1.18.
- classmethod alloc(device, format, width, height, tiling, usage, mem_prop_flags)¶
- Parameters:
device (
GstVulkan.VulkanDevice) – aGstVulkan.VulkanDeviceformat (
Vulkan.Format) – theVulkan.Formatfor the new imagewidth (
int) – width for the new imageheight (
int) – height for the new imagetiling (
Vulkan.ImageTiling) – tiling for the new imageusage (
Vulkan.ImageUsageFlags) – usage flags for the new imagemem_prop_flags (
Vulkan.MemoryPropertyFlags) –Vulkan.DeviceMemoryproperty flags for the new image
- Returns:
a
Gst.Memoryobject backed by a vulkan device memory- Return type:
Allocated a new
GstVulkan.VulkanImageMemory.New in version 1.18.
- classmethod alloc_with_image_info(device, image_info, mem_prop_flags)¶
- Parameters:
device (
GstVulkan.VulkanDevice) – aGstVulkan.VulkanDeviceimage_info (
Vulkan.ImageCreateInfo) –Vulkan.ImageCreateInfostructuremem_prop_flags (
Vulkan.MemoryPropertyFlags) –Vulkan.MemoryPropertyFlagsflags
- Returns:
a
Gst.Memoryobject backed by a vulkan device memory- Return type:
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.VulkanImageMemoryoperation.New in version 1.18.
- add_view(view)¶
- Parameters:
view (
GstVulkan.VulkanImageView) – aGstVulkan.VulkanImageView
New in version 1.18.
- find_view(find_func, *user_data)¶
- Parameters:
find_func (
GstVulkan.VulkanImageMemoryFindViewFunc) –GstVulkan.VulkanImageMemoryFindViewFuncto search withuser_data (
objectorNone) – user data to call finc_func with
- Returns:
the first
GstVulkan.VulkanImageViewthat find_func returnsTruefor, orNone- Return type:
New in version 1.18.
- init(allocator, parent, device, format, usage, initial_layout, params, size, user_data, notify)¶
- Parameters:
allocator (
Gst.Allocator) –parent (
Gst.Memory) –device (
GstVulkan.VulkanDevice) –format (
Vulkan.Format) –usage (
Vulkan.ImageUsageFlags) –initial_layout (
Vulkan.ImageLayout) –params (
Gst.AllocationParams) –size (
int) –notify (
GLib.DestroyNotify) –
- Return type: