GstVulkanBufferMemory
GstVulkanBufferMemory is a GstMemory subclass providing support for the mapping of Vulkan device memory.
GstVulkanBarrierBufferInfo
Members
parent
(GstVulkanBarrierMemoryInfo)
–
parent GstVulkanBarrierMemoryInfo
offset
(VkDeviceSize)
–
offset into the vulkan buffer to execute the barrier with
size
(VkDeviceSize)
–
size of memory to execute barrier over
Since : 1.18
GstVulkan.VulkanBarrierBufferInfo
Members
parent
(GstVulkan.VulkanBarrierMemoryInfo)
–
offset
(Vulkan.DeviceSize)
–
offset into the vulkan buffer to execute the barrier with
size
(Vulkan.DeviceSize)
–
size of memory to execute barrier over
Since : 1.18
GstVulkan.VulkanBarrierBufferInfo
Members
parent
(GstVulkan.VulkanBarrierMemoryInfo)
–
offset
(Vulkan.DeviceSize)
–
offset into the vulkan buffer to execute the barrier with
size
(Vulkan.DeviceSize)
–
size of memory to execute barrier over
Since : 1.18
Methods
gst_vulkan_barrier_buffer_info_clear
gst_vulkan_barrier_buffer_info_clear (GstVulkanBarrierBufferInfo * info)
Clear any referenced objects from this info.
Parameters:
info
–
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.prototype.clear
function GstVulkan.VulkanBarrierBufferInfo.prototype.clear(): {
// javascript wrapper for 'gst_vulkan_barrier_buffer_info_clear'
}
Clear any referenced objects from this info.
Parameters:
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.clear
def GstVulkan.VulkanBarrierBufferInfo.clear (self):
#python wrapper for 'gst_vulkan_barrier_buffer_info_clear'
Clear any referenced objects from this info.
Parameters:
Since : 1.30
gst_vulkan_barrier_buffer_info_copy_into
gst_vulkan_barrier_buffer_info_copy_into (GstVulkanBarrierBufferInfo * info, GstVulkanBarrierBufferInfo * other)
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.prototype.copy_into
function GstVulkan.VulkanBarrierBufferInfo.prototype.copy_into(other: GstVulkan.VulkanBarrierBufferInfo): {
// javascript wrapper for 'gst_vulkan_barrier_buffer_info_copy_into'
}
Parameters:
the other GstVulkan.VulkanBarrierBufferInfo to copy into
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.copy_into
def GstVulkan.VulkanBarrierBufferInfo.copy_into (self, other):
#python wrapper for 'gst_vulkan_barrier_buffer_info_copy_into'
Parameters:
the other GstVulkan.VulkanBarrierBufferInfo to copy into
Since : 1.30
gst_vulkan_barrier_buffer_info_is_equal
gboolean gst_vulkan_barrier_buffer_info_is_equal (GstVulkanBarrierBufferInfo * info, GstVulkanBarrierBufferInfo * other)
whether info and other_info are the same.
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.prototype.is_equal
function GstVulkan.VulkanBarrierBufferInfo.prototype.is_equal(other: GstVulkan.VulkanBarrierBufferInfo): {
// javascript wrapper for 'gst_vulkan_barrier_buffer_info_is_equal'
}
Parameters:
the other GstVulkan.VulkanBarrierBufferInfo to compare against
whether info and other_info are the same.
Since : 1.30
GstVulkan.VulkanBarrierBufferInfo.is_equal
def GstVulkan.VulkanBarrierBufferInfo.is_equal (self, other):
#python wrapper for 'gst_vulkan_barrier_buffer_info_is_equal'
Parameters:
the other GstVulkan.VulkanBarrierBufferInfo to compare against
whether info and other_info are the same.
Since : 1.30
GstVulkanBufferMemory
Members
device
(GstVulkanDevice *)
–
the GstVulkanDevice this vulkan buffer is allocated from
buffer
(VkBuffer)
–
Vulkan buffer object
vk_mem
(GstVulkanMemory *)
–
backing GstVulkanMemory for buffer
requirements
(VkMemoryRequirements)
–
allocation requirements for buffer
usage
(VkBufferUsageFlags)
–
intended usage for buffer
barrier
(GstVulkanBarrierBufferInfo)
–
the last set barrier information
Since : 1.18
GstVulkan.VulkanBufferMemory
Members
parent
(Gst.Memory)
–
parent Gst.Memory
device
(GstVulkan.VulkanDevice)
–
the GstVulkan.VulkanDevice this vulkan buffer is allocated from
buffer
(Vulkan.Buffer)
–
Vulkan buffer object
vk_mem
(GstVulkan.VulkanMemory)
–
backing GstVulkan.VulkanMemory for buffer
requirements
(Vulkan.MemoryRequirements)
–
allocation requirements for buffer
usage
(Vulkan.BufferUsageFlags)
–
intended usage for buffer
barrier
(GstVulkan.VulkanBarrierBufferInfo)
–
the last set barrier information
Since : 1.18
GstVulkan.VulkanBufferMemory
Members
parent
(Gst.Memory)
–
parent Gst.Memory
device
(GstVulkan.VulkanDevice)
–
the GstVulkan.VulkanDevice this vulkan buffer is allocated from
buffer
(Vulkan.Buffer)
–
Vulkan buffer object
vk_mem
(GstVulkan.VulkanMemory)
–
backing GstVulkan.VulkanMemory for buffer
requirements
(Vulkan.MemoryRequirements)
–
allocation requirements for buffer
usage
(Vulkan.BufferUsageFlags)
–
intended usage for buffer
barrier
(GstVulkan.VulkanBarrierBufferInfo)
–
the last set barrier information
Since : 1.18
Methods
gst_vulkan_buffer_memory_compare_exchange_barrier_unlocked
gboolean gst_vulkan_buffer_memory_compare_exchange_barrier_unlocked (GstVulkanBufferMemory * buffer, GstVulkanBarrierBufferInfo * old_info, GstVulkanBarrierBufferInfo * new_info)
Attempts to atomically update the barrier stored in buffer to new_info. Only succeeds if the current barrier is the same as old_info.
On failure, the operation should be retried with updated information.
Must be called with gst_vulkan_buffer_memory_lock called.
Parameters:
buffer
–
old_info
–
the previous GstVulkanBarrierBufferInfo
new_info
–
the new GstVulkanBarrierBufferInfo
Since : 1.30
GstVulkan.VulkanBufferMemory.prototype.compare_exchange_barrier_unlocked
function GstVulkan.VulkanBufferMemory.prototype.compare_exchange_barrier_unlocked(old_info: GstVulkan.VulkanBarrierBufferInfo, new_info: GstVulkan.VulkanBarrierBufferInfo): {
// javascript wrapper for 'gst_vulkan_buffer_memory_compare_exchange_barrier_unlocked'
}
Attempts to atomically update the barrier stored in buffer to new_info. Only succeeds if the current barrier is the same as old_info.
On failure, the operation should be retried with updated information.
Must be called with GstVulkan.VulkanBufferMemory.prototype.lock called.
Since : 1.30
GstVulkan.VulkanBufferMemory.compare_exchange_barrier_unlocked
def GstVulkan.VulkanBufferMemory.compare_exchange_barrier_unlocked (self, old_info, new_info):
#python wrapper for 'gst_vulkan_buffer_memory_compare_exchange_barrier_unlocked'
Attempts to atomically update the barrier stored in buffer to new_info. Only succeeds if the current barrier is the same as old_info.
On failure, the operation should be retried with updated information.
Must be called with GstVulkan.VulkanBufferMemory.lock called.
Since : 1.30
gst_vulkan_buffer_memory_lock
gst_vulkan_buffer_memory_lock (GstVulkanBufferMemory * buffer)
Exclusively lock the buffer memory.
Note: if you need to lock multiple memories at the same time, you should use GstVulkanBarrierState to ensure a determinstic locking order and avoid deadlocks.
Parameters:
buffer
–
Since : 1.30
GstVulkan.VulkanBufferMemory.prototype.lock
function GstVulkan.VulkanBufferMemory.prototype.lock(): {
// javascript wrapper for 'gst_vulkan_buffer_memory_lock'
}
Exclusively lock the buffer memory.
Note: if you need to lock multiple memories at the same time, you should use GstVulkan.VulkanBarrierState to ensure a determinstic locking order and avoid deadlocks.
Parameters:
Since : 1.30
GstVulkan.VulkanBufferMemory.lock
def GstVulkan.VulkanBufferMemory.lock (self):
#python wrapper for 'gst_vulkan_buffer_memory_lock'
Exclusively lock the buffer memory.
Note: if you need to lock multiple memories at the same time, you should use GstVulkan.VulkanBarrierState to ensure a determinstic locking order and avoid deadlocks.
Parameters:
Since : 1.30
gst_vulkan_buffer_memory_peek_barrier_unlocked
gst_vulkan_buffer_memory_peek_barrier_unlocked (GstVulkanBufferMemory * buffer, GstVulkanBarrierBufferInfo * info)
Retrieve the current GstVulkanBarrierBufferInfo for this memory.
Must be called with gst_vulkan_buffer_memory_lock called.
Since : 1.30
GstVulkan.VulkanBufferMemory.prototype.peek_barrier_unlocked
function GstVulkan.VulkanBufferMemory.prototype.peek_barrier_unlocked(): {
// javascript wrapper for 'gst_vulkan_buffer_memory_peek_barrier_unlocked'
}
Retrieve the current GstVulkan.VulkanBarrierBufferInfo for this memory.
Must be called with GstVulkan.VulkanBufferMemory.prototype.lock called.
Parameters:
Since : 1.30
GstVulkan.VulkanBufferMemory.peek_barrier_unlocked
def GstVulkan.VulkanBufferMemory.peek_barrier_unlocked (self):
#python wrapper for 'gst_vulkan_buffer_memory_peek_barrier_unlocked'
Retrieve the current GstVulkan.VulkanBarrierBufferInfo for this memory.
Must be called with GstVulkan.VulkanBufferMemory.lock called.
Parameters:
Since : 1.30
gst_vulkan_buffer_memory_unlock
gst_vulkan_buffer_memory_unlock (GstVulkanBufferMemory * buffer)
Exclusively unlock the buffer memory.
Parameters:
buffer
–
Since : 1.30
GstVulkan.VulkanBufferMemory.prototype.unlock
function GstVulkan.VulkanBufferMemory.prototype.unlock(): {
// javascript wrapper for 'gst_vulkan_buffer_memory_unlock'
}
Exclusively unlock the buffer memory.
Parameters:
Since : 1.30
GstVulkan.VulkanBufferMemory.unlock
def GstVulkan.VulkanBufferMemory.unlock (self):
#python wrapper for 'gst_vulkan_buffer_memory_unlock'
Exclusively unlock the buffer memory.
Parameters:
Since : 1.30
Functions
gst_vulkan_buffer_memory_alloc
GstMemory * gst_vulkan_buffer_memory_alloc (GstVulkanDevice * device, gsize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags mem_prop_flags)
Allocate a new GstVulkanBufferMemory.
Parameters:
device
–
size
–
size of the new buffer
usage
–
buffer usage flags
mem_prop_flags
–
memory properties flags for the backing memory
a GstMemory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.18
GstVulkan.prototype.vulkan_buffer_memory_alloc
function GstVulkan.prototype.vulkan_buffer_memory_alloc(device: GstVulkan.VulkanDevice, size: Number, usage: Vulkan.BufferUsageFlags, mem_prop_flags: Vulkan.MemoryPropertyFlags): {
// javascript wrapper for 'gst_vulkan_buffer_memory_alloc'
}
Allocate a new GstVulkan.VulkanBufferMemory.
Parameters:
size of the new buffer
usage
(Vulkan.BufferUsageFlags)
–
buffer usage flags
mem_prop_flags
(Vulkan.MemoryPropertyFlags)
–
memory properties flags for the backing memory
a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.18
GstVulkan.vulkan_buffer_memory_alloc
def GstVulkan.vulkan_buffer_memory_alloc (device, size, usage, mem_prop_flags):
#python wrapper for 'gst_vulkan_buffer_memory_alloc'
Allocate a new GstVulkan.VulkanBufferMemory.
Parameters:
size of the new buffer
usage
(Vulkan.BufferUsageFlags)
–
buffer usage flags
mem_prop_flags
(Vulkan.MemoryPropertyFlags)
–
memory properties flags for the backing memory
a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.18
gst_vulkan_buffer_memory_alloc_with_buffer_info
GstMemory * gst_vulkan_buffer_memory_alloc_with_buffer_info (GstVulkanDevice * device, const VkBufferCreateInfo* buffer_info, VkMemoryPropertyFlags mem_prop_flags)
Allocate a new GstVulkanBufferMemory.
Parameters:
device
–
buffer_info
–
the VkBufferCreateInfo structure
mem_prop_flags
–
memory properties flags for the backing memory
a GstMemory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.24
GstVulkan.prototype.vulkan_buffer_memory_alloc_with_buffer_info
function GstVulkan.prototype.vulkan_buffer_memory_alloc_with_buffer_info(device: GstVulkan.VulkanDevice, buffer_info: Vulkan.BufferCreateInfo, mem_prop_flags: Vulkan.MemoryPropertyFlags): {
// javascript wrapper for 'gst_vulkan_buffer_memory_alloc_with_buffer_info'
}
Allocate a new GstVulkan.VulkanBufferMemory.
Parameters:
buffer_info
(Vulkan.BufferCreateInfo)
–
the VkBufferCreateInfo structure
mem_prop_flags
(Vulkan.MemoryPropertyFlags)
–
memory properties flags for the backing memory
a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.24
GstVulkan.vulkan_buffer_memory_alloc_with_buffer_info
def GstVulkan.vulkan_buffer_memory_alloc_with_buffer_info (device, buffer_info, mem_prop_flags):
#python wrapper for 'gst_vulkan_buffer_memory_alloc_with_buffer_info'
Allocate a new GstVulkan.VulkanBufferMemory.
Parameters:
buffer_info
(Vulkan.BufferCreateInfo)
–
the VkBufferCreateInfo structure
mem_prop_flags
(Vulkan.MemoryPropertyFlags)
–
memory properties flags for the backing memory
a Gst.Memory object backed by a vulkan buffer backed by vulkan device memory
Since : 1.24
gst_vulkan_buffer_memory_init_once
gst_vulkan_buffer_memory_init_once ()
Initializes the Vulkan buffer memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkanBufferMemory operation.
Since : 1.18
GstVulkan.prototype.vulkan_buffer_memory_init_once
function GstVulkan.prototype.vulkan_buffer_memory_init_once(): {
// javascript wrapper for 'gst_vulkan_buffer_memory_init_once'
}
Initializes the Vulkan buffer memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanBufferMemory operation.
Since : 1.18
GstVulkan.vulkan_buffer_memory_init_once
def GstVulkan.vulkan_buffer_memory_init_once ():
#python wrapper for 'gst_vulkan_buffer_memory_init_once'
Initializes the Vulkan buffer memory allocator. It is safe to call this function multiple times. This must be called before any other GstVulkan.VulkanBufferMemory operation.
Since : 1.18
gst_vulkan_buffer_memory_wrapped
GstMemory * gst_vulkan_buffer_memory_wrapped (GstVulkanDevice * device, VkBuffer buffer, VkBufferUsageFlags usage, gpointer user_data, GDestroyNotify notify)
Allocated a new wrapped GstVulkanBufferMemory with buffer.
Parameters:
device
–
buffer
–
a VkBuffer
usage
–
usage flags of buffer
user_data
(
[allow-none])
–
user data to call notify with
notify
(
[allow-none])
–
a GDestroyNotify called when buffer is no longer in use
a GstMemory object backed by a vulkan device memory
Since : 1.18
GstVulkan.prototype.vulkan_buffer_memory_wrapped
function GstVulkan.prototype.vulkan_buffer_memory_wrapped(device: GstVulkan.VulkanDevice, buffer: Vulkan.Buffer, usage: Vulkan.BufferUsageFlags, user_data: Object, notify: GLib.DestroyNotify): {
// javascript wrapper for 'gst_vulkan_buffer_memory_wrapped'
}
Allocated a new wrapped GstVulkan.VulkanBufferMemory with buffer.
Parameters:
buffer
(Vulkan.Buffer)
–
a VkBuffer
usage
(Vulkan.BufferUsageFlags)
–
usage flags of buffer
user data to call notify with
a GLib.DestroyNotify called when buffer is no longer in use
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
GstVulkan.vulkan_buffer_memory_wrapped
def GstVulkan.vulkan_buffer_memory_wrapped (device, buffer, usage, user_data, notify):
#python wrapper for 'gst_vulkan_buffer_memory_wrapped'
Allocated a new wrapped GstVulkan.VulkanBufferMemory with buffer.
Parameters:
buffer
(Vulkan.Buffer)
–
a VkBuffer
usage
(Vulkan.BufferUsageFlags)
–
usage flags of buffer
user data to call notify with
a GLib.DestroyNotify called when buffer is no longer in use
a Gst.Memory object backed by a vulkan device memory
Since : 1.18
GstVulkanBufferMemoryAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstVulkanBufferMemoryAllocator
Opaque GstVulkanBufferMemoryAllocator struct
Members
parent
(GstAllocator)
–
the parent GstAllocator
Since : 1.18
Class structure
GstVulkanBufferMemoryAllocatorClass
The GstVulkanBufferMemoryAllocatorClass only contains private data
Fields
parent_class
(GstAllocatorClass)
–
the parent GstAllocatorClass
Since : 1.18
GstVulkan.VulkanBufferMemoryAllocatorClass
The GstVulkan.VulkanBufferMemoryAllocatorClass only contains private data
Attributes
parent_class
(Gst.AllocatorClass)
–
the parent Gst.AllocatorClass
Since : 1.18
GstVulkan.VulkanBufferMemoryAllocatorClass
The GstVulkan.VulkanBufferMemoryAllocatorClass only contains private data
Attributes
parent_class
(Gst.AllocatorClass)
–
the parent Gst.AllocatorClass
Since : 1.18
GstVulkan.VulkanBufferMemoryAllocator
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Allocator ╰──GstVulkan.VulkanBufferMemoryAllocator
Opaque GstVulkan.VulkanBufferMemoryAllocator struct
Members
parent
(Gst.Allocator)
–
the parent Gst.Allocator
Since : 1.18
GstVulkan.VulkanBufferMemoryAllocator
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Allocator ╰──GstVulkan.VulkanBufferMemoryAllocator
Opaque GstVulkan.VulkanBufferMemoryAllocator struct
Members
parent
(Gst.Allocator)
–
the parent Gst.Allocator
Since : 1.18
Functions
gst_is_vulkan_buffer_memory
gboolean gst_is_vulkan_buffer_memory (GstMemory * mem)
Parameters:
mem
–
whether the memory at mem is a GstVulkanBufferMemory
Since : 1.18
GstVulkan.prototype.is_vulkan_buffer_memory
function GstVulkan.prototype.is_vulkan_buffer_memory(mem: Gst.Memory): {
// javascript wrapper for 'gst_is_vulkan_buffer_memory'
}
Parameters:
whether the memory at mem is a GstVulkan.VulkanBufferMemory
Since : 1.18
GstVulkan.is_vulkan_buffer_memory
def GstVulkan.is_vulkan_buffer_memory (mem):
#python wrapper for 'gst_is_vulkan_buffer_memory'
Parameters:
whether the memory at mem is a GstVulkan.VulkanBufferMemory
Since : 1.18
Function Macros
GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_CAST
#define GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_CAST(obj) ((GstVulkanBufferMemoryAllocator *)(obj))
Since : 1.18
Constants
GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER
#define GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER "memory:VulkanBuffer"
Since : 1.18
GstVulkan.CAPS_FEATURE_MEMORY_VULKAN_BUFFER
Since : 1.18
GstVulkan.CAPS_FEATURE_MEMORY_VULKAN_BUFFER
Since : 1.18
GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME
#define GST_VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME "VulkanBuffer"
Since : 1.18
GstVulkan.VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME
Since : 1.18
GstVulkan.VULKAN_BUFFER_MEMORY_ALLOCATOR_NAME
Since : 1.18
The results of the search are