GstVulkanImageMemory
GstVulkanImageMemory is a GstMemory subclass providing support for the mapping of Vulkan device memory.
GstVulkanBarrierImageInfo
Members
parent
		(GstVulkanBarrierMemoryInfo)
		–
	parent GstVulkanBarrierMemoryInfo
image_layout
		(VkImageLayout)
		–
	the image layout of this barrier
subresource_range
		(VkImageSubresourceRange)
		–
	what subresource the barrier applies to
GstVulkan.VulkanBarrierImageInfo
Members
parent
		(GstVulkan.VulkanBarrierMemoryInfo)
		–
	image_layout
		(Vulkan.ImageLayout)
		–
	the image layout of this barrier
subresource_range
		(Vulkan.ImageSubresourceRange)
		–
	what subresource the barrier applies to
GstVulkan.VulkanBarrierImageInfo
Members
parent
		(GstVulkan.VulkanBarrierMemoryInfo)
		–
	image_layout
		(Vulkan.ImageLayout)
		–
	the image layout of this barrier
subresource_range
		(Vulkan.ImageSubresourceRange)
		–
	what subresource the barrier applies to
GstVulkanImageMemory
Members
device
		(GstVulkanDevice *)
		–
	the GstVulkanDevice to allocate images from
image
		(VkImage)
		–
	the Vulkan image handle
vk_mem
		(GstVulkanMemory *)
		–
	the backing GstVulkanMemory for image
create_info
		(VkImageCreateInfo)
		–
	creation information for image
requirements
		(VkMemoryRequirements)
		–
	memory requirements for image
format_properties
		(VkImageFormatProperties)
		–
	format properties
usage
		(VkImageUsageFlags)
		–
	intended usage for image
barrier
		(GstVulkanBarrierImageInfo)
		–
	last set barrier for image
GstVulkanImageMemory
Members
device
		(GstVulkanDevice)
		–
	the GstVulkanDevice to allocate images from
image
		(VkImage)
		–
	the Vulkan image handle
vk_mem
		(GstVulkanMemory)
		–
	the backing GstVulkanMemory for image
create_info
		(VkImageCreateInfo)
		–
	creation information for image
requirements
		(VkMemoryRequirements)
		–
	memory requirements for image
format_properties
		(VkImageFormatProperties)
		–
	format properties
usage
		(VkImageUsageFlags)
		–
	intended usage for image
barrier
		(GstVulkanBarrierImageInfo)
		–
	last set barrier for image
GstVulkanImageMemory
Members
device
		(GstVulkanDevice)
		–
	the GstVulkanDevice to allocate images from
image
		(VkImage)
		–
	the Vulkan image handle
vk_mem
		(GstVulkanMemory)
		–
	the backing GstVulkanMemory for image
create_info
		(VkImageCreateInfo)
		–
	creation information for image
requirements
		(VkMemoryRequirements)
		–
	memory requirements for image
format_properties
		(VkImageFormatProperties)
		–
	format properties
usage
		(VkImageUsageFlags)
		–
	intended usage for image
barrier
		(GstVulkanBarrierImageInfo)
		–
	last set barrier for image
Methods
gst_vulkan_image_memory_add_view
gst_vulkan_image_memory_add_view (GstVulkanImageMemory * image, GstVulkanImageView * view)
Since : 1.18
GstVulkan.VulkanImageMemory.prototype.add_view
function GstVulkan.VulkanImageMemory.prototype.add_view(view: GstVulkan.VulkanImageView): {
    // javascript wrapper for 'gst_vulkan_image_memory_add_view'
}
	
	Since : 1.18
GstVulkan.VulkanImageMemory.add_view
def GstVulkan.VulkanImageMemory.add_view (self, view):
    #python wrapper for 'gst_vulkan_image_memory_add_view'
	
	Since : 1.18
gst_vulkan_image_memory_find_view
GstVulkanImageView * gst_vulkan_image_memory_find_view (GstVulkanImageMemory * image, GstVulkanImageMemoryFindViewFunc find_func, gpointer user_data)
Return: (transfer full): the first GstVulkanImageView that find_func returns TRUE for, or NULL
Parameters:
image
				–
	find_func
					(
						
[scope call]
						)
				–
	GstVulkanImageMemoryFindViewFunc to search with
user_data
				–
	user data to call finc_func with
Since : 1.18
GstVulkan.VulkanImageMemory.prototype.find_view
function GstVulkan.VulkanImageMemory.prototype.find_view(find_func: GstVulkan.VulkanImageMemoryFindViewFunc, user_data: Object): {
    // javascript wrapper for 'gst_vulkan_image_memory_find_view'
}
Return: (transfer full): the first GstVulkan.VulkanImageView that find_func returns true for, or null
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	find_func
					(
						GstVulkan.VulkanImageMemoryFindViewFunc
						)
				–
	GstVulkan.VulkanImageMemoryFindViewFunc to search with
user_data
					(
						Object
						)
				–
	user data to call finc_func with
Since : 1.18
GstVulkan.VulkanImageMemory.find_view
def GstVulkan.VulkanImageMemory.find_view (self, find_func, *user_data):
    #python wrapper for 'gst_vulkan_image_memory_find_view'
Return: (transfer full): the first GstVulkan.VulkanImageView that find_func returns True for, or None
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	find_func
					(
						GstVulkan.VulkanImageMemoryFindViewFunc
						)
				–
	GstVulkan.VulkanImageMemoryFindViewFunc to search with
user_data
					(
						variadic
						)
				–
	user data to call finc_func with
Since : 1.18
gst_vulkan_image_memory_get_height
guint32 gst_vulkan_image_memory_get_height (GstVulkanImageMemory * image)
Return: the height of image
Parameters:
image
				–
	Since : 1.18
GstVulkan.VulkanImageMemory.prototype.get_height
function GstVulkan.VulkanImageMemory.prototype.get_height(): {
    // javascript wrapper for 'gst_vulkan_image_memory_get_height'
}
Return: the height of image
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	Since : 1.18
GstVulkan.VulkanImageMemory.get_height
def GstVulkan.VulkanImageMemory.get_height (self):
    #python wrapper for 'gst_vulkan_image_memory_get_height'
Return: the height of image
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	Since : 1.18
gst_vulkan_image_memory_get_width
guint32 gst_vulkan_image_memory_get_width (GstVulkanImageMemory * image)
Return: the width of image
Parameters:
image
				–
	Since : 1.18
GstVulkan.VulkanImageMemory.prototype.get_width
function GstVulkan.VulkanImageMemory.prototype.get_width(): {
    // javascript wrapper for 'gst_vulkan_image_memory_get_width'
}
Return: the width of image
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	Since : 1.18
GstVulkan.VulkanImageMemory.get_width
def GstVulkan.VulkanImageMemory.get_width (self):
    #python wrapper for 'gst_vulkan_image_memory_get_width'
Return: the width of image
Parameters:
image
					(
						GstVulkan.VulkanImageMemory
						)
				–
	Since : 1.18
gst_vulkan_image_memory_init
gboolean gst_vulkan_image_memory_init (GstVulkanImageMemory * mem, GstAllocator * allocator, GstMemory * parent, GstVulkanDevice * device, VkImageUsageFlags usage, GstAllocationParams * params, gsize size, gpointer user_data, GDestroyNotify notify)
Parameters:
mem
				–
	allocator
				–
	parent
				–
	device
				–
	usage
				–
	params
				–
	size
				–
	user_data
				–
	notify
				–
	GstVulkan.VulkanImageMemory.prototype.init
function GstVulkan.VulkanImageMemory.prototype.init(allocator: Gst.Allocator, parent: Gst.Memory, device: GstVulkan.VulkanDevice, usage: Vulkan.ImageUsageFlags, params: Gst.AllocationParams, size: Number, user_data: Object, notify: GLib.DestroyNotify): {
    // javascript wrapper for 'gst_vulkan_image_memory_init'
}
	Parameters:
mem
					(
						GstVulkan.VulkanImageMemory
						)
				–
	allocator
					(
						Gst.Allocator
						)
				–
	parent
					(
						Gst.Memory
						)
				–
	device
					(
						GstVulkan.VulkanDevice
						)
				–
	usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	params
					(
						Gst.AllocationParams
						)
				–
	size
					(
						Number
						)
				–
	user_data
					(
						Object
						)
				–
	notify
					(
						GLib.DestroyNotify
						)
				–
	GstVulkan.VulkanImageMemory.init
def GstVulkan.VulkanImageMemory.init (self, allocator, parent, device, usage, params, size, user_data, notify):
    #python wrapper for 'gst_vulkan_image_memory_init'
	Parameters:
mem
					(
						GstVulkan.VulkanImageMemory
						)
				–
	allocator
					(
						Gst.Allocator
						)
				–
	parent
					(
						Gst.Memory
						)
				–
	device
					(
						GstVulkan.VulkanDevice
						)
				–
	usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	params
					(
						Gst.AllocationParams
						)
				–
	size
					(
						int
						)
				–
	user_data
					(
						object
						)
				–
	notify
					(
						GLib.DestroyNotify
						)
				–
	Functions
gst_vulkan_image_memory_alloc
GstMemory * gst_vulkan_image_memory_alloc (GstVulkanDevice * device, VkFormat format, gsize width, gsize height, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags mem_prop_flags)
Allocated a new GstVulkanImageMemory.
Parameters:
device
				–
	format
				–
	the VkFormat for the new image
width
				–
	width for the new image
height
				–
	height for the new image
tiling
				–
	tiling for the new image
usage
				–
	usage flags for the new image
mem_prop_flags
				–
	VkDeviceMemory property flags for the new image
a GstMemory object backed by a vulkan device memory
Since : 1.18
GstVulkan.prototype.vulkan_image_memory_alloc
function GstVulkan.prototype.vulkan_image_memory_alloc(device: GstVulkan.VulkanDevice, format: Vulkan.Format, width: Number, height: Number, tiling: Vulkan.ImageTiling, usage: Vulkan.ImageUsageFlags, mem_prop_flags: Vulkan.MemoryPropertyFlags): {
    // javascript wrapper for 'gst_vulkan_image_memory_alloc'
}
Allocated a new GstVulkan.VulkanImageMemory.
Parameters:
device
					(
						GstVulkan.VulkanDevice
						)
				–
	format
					(
						Vulkan.Format
						)
				–
	the VkFormat for the new image
width
					(
						Number
						)
				–
	width for the new image
height
					(
						Number
						)
				–
	height for the new image
tiling
					(
						Vulkan.ImageTiling
						)
				–
	tiling for the new image
usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	usage flags for the new image
mem_prop_flags
					(
						Vulkan.MemoryPropertyFlags
						)
				–
	VkDeviceMemory property flags for the new image
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
GstVulkan.vulkan_image_memory_alloc
def GstVulkan.vulkan_image_memory_alloc (device, format, width, height, tiling, usage, mem_prop_flags):
    #python wrapper for 'gst_vulkan_image_memory_alloc'
Allocated a new GstVulkan.VulkanImageMemory.
Parameters:
device
					(
						GstVulkan.VulkanDevice
						)
				–
	format
					(
						Vulkan.Format
						)
				–
	the VkFormat for the new image
width
					(
						int
						)
				–
	width for the new image
height
					(
						int
						)
				–
	height for the new image
tiling
					(
						Vulkan.ImageTiling
						)
				–
	tiling for the new image
usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	usage flags for the new image
mem_prop_flags
					(
						Vulkan.MemoryPropertyFlags
						)
				–
	VkDeviceMemory property flags for the new image
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
gst_vulkan_image_memory_init_once
gst_vulkan_image_memory_init_once ()
Initializes the Vulkan image memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkanImageMemory operation.
Since : 1.18
GstVulkan.prototype.vulkan_image_memory_init_once
function GstVulkan.prototype.vulkan_image_memory_init_once(): {
    // javascript wrapper for 'gst_vulkan_image_memory_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.
Since : 1.18
GstVulkan.vulkan_image_memory_init_once
def GstVulkan.vulkan_image_memory_init_once ():
    #python wrapper for 'gst_vulkan_image_memory_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.
Since : 1.18
gst_vulkan_image_memory_wrapped
GstMemory * gst_vulkan_image_memory_wrapped (GstVulkanDevice * device, VkImage image, VkFormat format, gsize width, gsize height, VkImageTiling tiling, VkImageUsageFlags usage, gpointer user_data, GDestroyNotify notify)
Return: a new GstVulkanImageMemory wrapping image
Parameters:
device
				–
	image
				–
	a VkImage
format
				–
	the VkFormat for image
width
				–
	width of image
height
				–
	height of image
tiling
				–
	tiling of image
usage
				–
	usage flags of image
user_data
					(
						
[nullable]
						)
				–
	user data for notify
notify
				–
	a GDestroyNotify when image is no longer needed
Since : 1.18
GstVulkan.prototype.vulkan_image_memory_wrapped
function GstVulkan.prototype.vulkan_image_memory_wrapped(device: GstVulkan.VulkanDevice, image: Vulkan.Image, format: Vulkan.Format, width: Number, height: Number, tiling: Vulkan.ImageTiling, usage: Vulkan.ImageUsageFlags, user_data: Object, notify: GLib.DestroyNotify): {
    // javascript wrapper for 'gst_vulkan_image_memory_wrapped'
}
Return: a new GstVulkan.VulkanImageMemory wrapping image
Parameters:
device
					(
						GstVulkan.VulkanDevice
						)
				–
	image
					(
						Vulkan.Image
						)
				–
	a VkImage
format
					(
						Vulkan.Format
						)
				–
	the VkFormat for image
width
					(
						Number
						)
				–
	width of image
height
					(
						Number
						)
				–
	height of image
tiling
					(
						Vulkan.ImageTiling
						)
				–
	tiling of image
usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	usage flags of image
user_data
					(
						Object
						)
				–
	user data for notify
notify
					(
						GLib.DestroyNotify
						)
				–
	a GLib.DestroyNotify when image is no longer needed
Since : 1.18
GstVulkan.vulkan_image_memory_wrapped
def GstVulkan.vulkan_image_memory_wrapped (device, image, format, width, height, tiling, usage, user_data, notify):
    #python wrapper for 'gst_vulkan_image_memory_wrapped'
Return: a new GstVulkan.VulkanImageMemory wrapping image
Parameters:
device
					(
						GstVulkan.VulkanDevice
						)
				–
	image
					(
						Vulkan.Image
						)
				–
	a VkImage
format
					(
						Vulkan.Format
						)
				–
	the VkFormat for image
width
					(
						int
						)
				–
	width of image
height
					(
						int
						)
				–
	height of image
tiling
					(
						Vulkan.ImageTiling
						)
				–
	tiling of image
usage
					(
						Vulkan.ImageUsageFlags
						)
				–
	usage flags of image
user_data
					(
						object
						)
				–
	user data for notify
notify
					(
						GLib.DestroyNotify
						)
				–
	a GLib.DestroyNotify when image is no longer needed
Since : 1.18
GstVulkanImageMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanImageMemoryAllocator
Opaque GstVulkanImageMemoryAllocator struct
Members
parent
		(GstAllocator)
		–
	the parent GstAllocator
Class structure
GstVulkanImageMemoryAllocatorClass
The GstVulkanImageMemoryAllocatorClass only contains private data
Fields
parent_class
		(GstAllocatorClass)
		–
	the parent GstAllocatorClass
GstVulkan.VulkanImageMemoryAllocatorClass
The GstVulkan.VulkanImageMemoryAllocatorClass only contains private data
Attributes
parent_class
		(Gst.AllocatorClass)
		–
	the parent Gst.AllocatorClass
GstVulkan.VulkanImageMemoryAllocatorClass
The GstVulkan.VulkanImageMemoryAllocatorClass only contains private data
Attributes
parent_class
		(Gst.AllocatorClass)
		–
	the parent Gst.AllocatorClass
GstVulkanImageMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanImageMemoryAllocator
Opaque GstVulkanImageMemoryAllocator struct
Members
parent
		(GstAllocator)
		–
	the parent GstAllocator
GstVulkanImageMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanImageMemoryAllocator
Opaque GstVulkanImageMemoryAllocator struct
Members
parent
		(GstAllocator)
		–
	the parent GstAllocator
Functions
gst_is_vulkan_image_memory
gboolean gst_is_vulkan_image_memory (GstMemory * mem)
Parameters:
mem
				–
	whether the memory at mem is a GstVulkanImageMemory
Since : 1.18
GstVulkan.prototype.is_vulkan_image_memory
function GstVulkan.prototype.is_vulkan_image_memory(mem: Gst.Memory): {
    // javascript wrapper for 'gst_is_vulkan_image_memory'
}
	Parameters:
mem
					(
						Gst.Memory
						)
				–
	whether the memory at mem is a GstVulkan.VulkanImageMemory
Since : 1.18
GstVulkan.is_vulkan_image_memory
def GstVulkan.is_vulkan_image_memory (mem):
    #python wrapper for 'gst_is_vulkan_image_memory'
	Parameters:
mem
					(
						Gst.Memory
						)
				–
	whether the memory at mem is a GstVulkan.VulkanImageMemory
Since : 1.18
gst_vulkan_format_from_video_info
VkFormat gst_vulkan_format_from_video_info (GstVideoInfo * v_info, guint plane)
the VkFormat to use for v_format and plane
Since : 1.18
Function Macros
GST_VULKAN_IMAGE_MEMORY_ALLOCATOR_CAST
#define GST_VULKAN_IMAGE_MEMORY_ALLOCATOR_CAST(obj) ((GstVulkanImageMemoryAllocator *)(obj))
Constants
GST_CAPS_FEATURE_MEMORY_VULKAN_IMAGE
#define GST_CAPS_FEATURE_MEMORY_VULKAN_IMAGE "memory:VulkanImage"
GstVulkan.CAPS_FEATURE_MEMORY_VULKAN_IMAGE
GstVulkan.CAPS_FEATURE_MEMORY_VULKAN_IMAGE
GST_VULKAN_IMAGE_MEMORY_ALLOCATOR_NAME
#define GST_VULKAN_IMAGE_MEMORY_ALLOCATOR_NAME "VulkanImage"
GstVulkan.VULKAN_IMAGE_MEMORY_ALLOCATOR_NAME
GstVulkan.VULKAN_IMAGE_MEMORY_ALLOCATOR_NAME
Callbacks
GstVulkanImageMemoryFindViewFunc
gboolean (*GstVulkanImageMemoryFindViewFunc) (GstVulkanImageView * view, gpointer user_data)
Function definition used to find views. Return TRUE if view matches the criteria.
Parameters:
view
				–
	user_data
				–
	Since : 1.18
GstVulkan.VulkanImageMemoryFindViewFunc
function GstVulkan.VulkanImageMemoryFindViewFunc(view: GstVulkan.VulkanImageView, user_data: Object): {
    // javascript wrapper for 'GstVulkanImageMemoryFindViewFunc'
}
Function definition used to find views. Return true if view matches the criteria.
Parameters:
view
					(
						GstVulkan.VulkanImageView
						)
				–
	user_data
					(
						Object
						)
				–
	Since : 1.18
GstVulkan.VulkanImageMemoryFindViewFunc
def GstVulkan.VulkanImageMemoryFindViewFunc (view, *user_data):
    #python wrapper for 'GstVulkanImageMemoryFindViewFunc'
Function definition used to find views. Return True if view matches the criteria.
Parameters:
view
					(
						GstVulkan.VulkanImageView
						)
				–
	user_data
					(
						variadic
						)
				–
	Since : 1.18
The results of the search are