GstVulkanMemory
GstVulkanMemory is a GstMemory subclass providing support for the mapping of Vulkan device memory.
GstVulkanMemory
Members
device
(GstVulkanDevice *)
–
the GstVulkanDevice this memory is allocated from
mem_ptr
(VkDeviceMemory)
–
the vulkan memory handle
lock
(GMutex)
–
lock for accessing/changing memory informat
map_count
(guint)
–
number of times this memory is mapped
GstVulkan.VulkanMemory
Members
mem
(Gst.Memory)
–
the parent Gst.Memory
device
(GstVulkan.VulkanDevice)
–
the GstVulkan.VulkanDevice this memory is allocated from
mem_ptr
(Vulkan.DeviceMemory)
–
the vulkan memory handle
lock
(GLib.Mutex)
–
lock for accessing/changing memory informat
map_count
(Number)
–
number of times this memory is mapped
GstVulkan.VulkanMemory
Members
mem
(Gst.Memory)
–
the parent Gst.Memory
device
(GstVulkan.VulkanDevice)
–
the GstVulkan.VulkanDevice this memory is allocated from
mem_ptr
(Vulkan.DeviceMemory)
–
the vulkan memory handle
lock
(GLib.Mutex)
–
lock for accessing/changing memory informat
map_count
(int)
–
number of times this memory is mapped
Functions
gst_vulkan_memory_alloc
GstMemory * gst_vulkan_memory_alloc (GstVulkanDevice * device, guint32 memory_type_index, GstAllocationParams * params, gsize size, VkMemoryPropertyFlags mem_prop_flags)
Allocated a new GstVulkanMemory.
Parameters:
device
–
memory_type_index
–
the Vulkan memory type index
params
–
size
–
the size to allocate
mem_prop_flags
–
a GstMemory object backed by a vulkan device memory
Since : 1.18
GstVulkan.prototype.vulkan_memory_alloc
function GstVulkan.prototype.vulkan_memory_alloc(device: GstVulkan.VulkanDevice, memory_type_index: Number, params: Gst.AllocationParams, size: Number, mem_prop_flags: Vulkan.MemoryPropertyFlags): {
// javascript wrapper for 'gst_vulkan_memory_alloc'
}
Allocated a new GstVulkan.VulkanMemory.
Parameters:
device
(
GstVulkan.VulkanDevice
)
–
memory_type_index
(
Number
)
–
the Vulkan memory type index
params
(
Gst.AllocationParams
)
–
size
(
Number
)
–
the size to allocate
mem_prop_flags
(
Vulkan.MemoryPropertyFlags
)
–
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
GstVulkan.vulkan_memory_alloc
def GstVulkan.vulkan_memory_alloc (device, memory_type_index, params, size, mem_prop_flags):
#python wrapper for 'gst_vulkan_memory_alloc'
Allocated a new GstVulkan.VulkanMemory.
Parameters:
device
(
GstVulkan.VulkanDevice
)
–
memory_type_index
(
int
)
–
the Vulkan memory type index
params
(
Gst.AllocationParams
)
–
size
(
int
)
–
the size to allocate
mem_prop_flags
(
Vulkan.MemoryPropertyFlags
)
–
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
gst_vulkan_memory_find_memory_type_index_with_type_properties
gboolean gst_vulkan_memory_find_memory_type_index_with_type_properties (GstVulkanDevice * device, guint32 type_bits, VkMemoryPropertyFlags properties, guint32 * type_index)
Parameters:
device
–
type_bits
–
memory type bits to search for
properties
–
memory properties to search for
type_index
–
resulting index of the memory type
whether a valid memory type could be found
Since : 1.18
GstVulkan.prototype.vulkan_memory_find_memory_type_index_with_type_properties
function GstVulkan.prototype.vulkan_memory_find_memory_type_index_with_type_properties(device: GstVulkan.VulkanDevice, type_bits: Number, properties: Vulkan.MemoryPropertyFlags, type_index: Number): {
// javascript wrapper for 'gst_vulkan_memory_find_memory_type_index_with_type_properties'
}
Parameters:
device
(
GstVulkan.VulkanDevice
)
–
type_bits
(
Number
)
–
memory type bits to search for
properties
(
Vulkan.MemoryPropertyFlags
)
–
memory properties to search for
type_index
(
Number
)
–
resulting index of the memory type
whether a valid memory type could be found
Since : 1.18
GstVulkan.vulkan_memory_find_memory_type_index_with_type_properties
def GstVulkan.vulkan_memory_find_memory_type_index_with_type_properties (device, type_bits, properties, type_index):
#python wrapper for 'gst_vulkan_memory_find_memory_type_index_with_type_properties'
Parameters:
device
(
GstVulkan.VulkanDevice
)
–
type_bits
(
int
)
–
memory type bits to search for
properties
(
Vulkan.MemoryPropertyFlags
)
–
memory properties to search for
type_index
(
int
)
–
resulting index of the memory type
whether a valid memory type could be found
Since : 1.18
gst_vulkan_memory_heap_flags_to_string
gchar * gst_vulkan_memory_heap_flags_to_string (VkMemoryHeapFlags prop_bits)
Parameters:
prop_bits
–
Since : 1.18
GstVulkan.prototype.vulkan_memory_heap_flags_to_string
function GstVulkan.prototype.vulkan_memory_heap_flags_to_string(prop_bits: Vulkan.MemoryHeapFlags): {
// javascript wrapper for 'gst_vulkan_memory_heap_flags_to_string'
}
Parameters:
prop_bits
(
Vulkan.MemoryHeapFlags
)
–
Since : 1.18
GstVulkan.vulkan_memory_heap_flags_to_string
def GstVulkan.vulkan_memory_heap_flags_to_string (prop_bits):
#python wrapper for 'gst_vulkan_memory_heap_flags_to_string'
Parameters:
prop_bits
(
Vulkan.MemoryHeapFlags
)
–
Since : 1.18
gst_vulkan_memory_init_once
gst_vulkan_memory_init_once ()
Initializes the Vulkan memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkanMemory operation.
Since : 1.18
GstVulkan.prototype.vulkan_memory_init_once
function GstVulkan.prototype.vulkan_memory_init_once(): {
// javascript wrapper for 'gst_vulkan_memory_init_once'
}
Initializes the Vulkan memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanMemory operation.
Since : 1.18
GstVulkan.vulkan_memory_init_once
def GstVulkan.vulkan_memory_init_once ():
#python wrapper for 'gst_vulkan_memory_init_once'
Initializes the Vulkan memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanMemory operation.
Since : 1.18
gst_vulkan_memory_property_flags_to_string
gchar * gst_vulkan_memory_property_flags_to_string (VkMemoryPropertyFlags prop_bits)
Parameters:
prop_bits
–
Since : 1.18
GstVulkan.prototype.vulkan_memory_property_flags_to_string
function GstVulkan.prototype.vulkan_memory_property_flags_to_string(prop_bits: Vulkan.MemoryPropertyFlags): {
// javascript wrapper for 'gst_vulkan_memory_property_flags_to_string'
}
Parameters:
prop_bits
(
Vulkan.MemoryPropertyFlags
)
–
Since : 1.18
GstVulkan.vulkan_memory_property_flags_to_string
def GstVulkan.vulkan_memory_property_flags_to_string (prop_bits):
#python wrapper for 'gst_vulkan_memory_property_flags_to_string'
Parameters:
prop_bits
(
Vulkan.MemoryPropertyFlags
)
–
Since : 1.18
GstVulkanMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanMemoryAllocator
Opaque GstVulkanMemoryAllocator struct
Members
parent
(GstAllocator)
–
the parent GstAllocator
Class structure
GstVulkanMemoryAllocatorClass
The GstVulkanMemoryAllocatorClass only contains private data
Fields
parent_class
(GstAllocatorClass)
–
the parent GstAllocatorClass
GstVulkan.VulkanMemoryAllocatorClass
The GstVulkan.VulkanMemoryAllocatorClass only contains private data
Attributes
parent_class
(Gst.AllocatorClass)
–
the parent Gst.AllocatorClass
GstVulkan.VulkanMemoryAllocatorClass
The GstVulkan.VulkanMemoryAllocatorClass only contains private data
Attributes
parent_class
(Gst.AllocatorClass)
–
the parent Gst.AllocatorClass
GstVulkan.VulkanMemoryAllocator
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Allocator ╰──GstVulkan.VulkanMemoryAllocator
Opaque GstVulkan.VulkanMemoryAllocator struct
Members
parent
(Gst.Allocator)
–
the parent Gst.Allocator
GstVulkan.VulkanMemoryAllocator
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Allocator ╰──GstVulkan.VulkanMemoryAllocator
Opaque GstVulkan.VulkanMemoryAllocator struct
Members
parent
(Gst.Allocator)
–
the parent Gst.Allocator
Functions
gst_is_vulkan_memory
gboolean gst_is_vulkan_memory (GstMemory * mem)
Parameters:
mem
–
whether the memory at mem is a GstVulkanMemory
Since : 1.18
GstVulkan.prototype.is_vulkan_memory
function GstVulkan.prototype.is_vulkan_memory(mem: Gst.Memory): {
// javascript wrapper for 'gst_is_vulkan_memory'
}
Parameters:
mem
(
Gst.Memory
)
–
whether the memory at mem is a GstVulkan.VulkanMemory
Since : 1.18
GstVulkan.is_vulkan_memory
def GstVulkan.is_vulkan_memory (mem):
#python wrapper for 'gst_is_vulkan_memory'
Parameters:
mem
(
Gst.Memory
)
–
whether the memory at mem is a GstVulkan.VulkanMemory
Since : 1.18
Function Macros
GST_VULKAN_MEMORY_ALLOCATOR_CAST
#define GST_VULKAN_MEMORY_ALLOCATOR_CAST(obj) ((GstVulkanMemoryAllocator *)(obj))
Constants
GST_VULKAN_MEMORY_ALLOCATOR_NAME
#define GST_VULKAN_MEMORY_ALLOCATOR_NAME "Vulkan"
GstVulkan.VULKAN_MEMORY_ALLOCATOR_NAME
GstVulkan.VULKAN_MEMORY_ALLOCATOR_NAME
The results of the search are