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.VulkanDevice
format (
Vulkan.Format
) – theVulkan.Format
for 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.DeviceMemory
property flags for the new image
- Returns:
a
Gst.Memory
object 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.VulkanDevice
image_info (
Vulkan.ImageCreateInfo
) –Vulkan.ImageCreateInfo
structuremem_prop_flags (
Vulkan.MemoryPropertyFlags
) –Vulkan.MemoryPropertyFlags
flags
- Returns:
a
Gst.Memory
object 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.VulkanImageMemory
operation.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.VulkanImageMemoryFindViewFunc
to search withuser_data (
object
orNone
) – user data to call finc_func with
- Returns:
the first
GstVulkan.VulkanImageView
that find_func returnsTrue
for, 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: