vkbufferpool: correct usage flags type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6514>
This commit is contained in:
Chris Spencer 2024-04-02 16:23:31 +01:00 committed by GStreamer Marge Bot
parent 3b4b979ec4
commit c6a3b2ab85
3 changed files with 5 additions and 5 deletions

View file

@ -1115,7 +1115,7 @@ multiple times. This must be called before any other #GstVulkanBufferMemory ope
</parameter>
<parameter name="usage" transfer-ownership="none">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkbufferpool.c">The Vulkan buffer usage flags.</doc>
<type name="Vulkan.ImageUsageFlags" c:type="VkImageUsageFlags"/>
<type name="Vulkan.BufferUsageFlags" c:type="VkBufferUsageFlags"/>
</parameter>
<parameter name="mem_properties" transfer-ownership="none">
<type name="Vulkan.MemoryPropertyFlags" c:type="VkMemoryPropertyFlags"/>

View file

@ -44,7 +44,7 @@ struct _GstVulkanBufferPoolPrivate
GstCaps *caps;
GstVideoInfo v_info;
gboolean add_videometa;
VkImageUsageFlags usage;
VkBufferUsageFlags usage;
VkMemoryPropertyFlags mem_props;
gsize alloc_sizes[GST_VIDEO_MAX_PLANES];
};
@ -74,7 +74,7 @@ gst_vulkan_buffer_pool_get_options (GstBufferPool * pool)
static inline gboolean
gst_vulkan_buffer_pool_config_get_allocation_params (GstStructure *
config, VkImageUsageFlags * usage, VkMemoryPropertyFlags * mem_props)
config, VkBufferUsageFlags * usage, VkMemoryPropertyFlags * mem_props)
{
if (!gst_structure_get_uint (config, "usage", usage)) {
*usage =
@ -98,7 +98,7 @@ gst_vulkan_buffer_pool_config_get_allocation_params (GstStructure *
*/
void
gst_vulkan_buffer_pool_config_set_allocation_params (GstStructure *
config, VkImageUsageFlags usage, VkMemoryPropertyFlags mem_properties)
config, VkBufferUsageFlags usage, VkMemoryPropertyFlags mem_properties)
{
/* assumption: G_TYPE_UINT is compatible with uint32_t (VkFlags) */
gst_structure_set (config, "usage", G_TYPE_UINT, usage, "memory-properties",

View file

@ -84,7 +84,7 @@ GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * devic
GST_VULKAN_API
void gst_vulkan_buffer_pool_config_set_allocation_params
(GstStructure * config,
VkImageUsageFlags usage,
VkBufferUsageFlags usage,
VkMemoryPropertyFlags mem_properties);
G_END_DECLS