mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
vkbufferpool: correct usage flags type
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6514>
This commit is contained in:
parent
3b4b979ec4
commit
c6a3b2ab85
3 changed files with 5 additions and 5 deletions
|
@ -1115,7 +1115,7 @@ multiple times. This must be called before any other #GstVulkanBufferMemory ope
|
||||||
</parameter>
|
</parameter>
|
||||||
<parameter name="usage" transfer-ownership="none">
|
<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>
|
<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>
|
||||||
<parameter name="mem_properties" transfer-ownership="none">
|
<parameter name="mem_properties" transfer-ownership="none">
|
||||||
<type name="Vulkan.MemoryPropertyFlags" c:type="VkMemoryPropertyFlags"/>
|
<type name="Vulkan.MemoryPropertyFlags" c:type="VkMemoryPropertyFlags"/>
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct _GstVulkanBufferPoolPrivate
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstVideoInfo v_info;
|
GstVideoInfo v_info;
|
||||||
gboolean add_videometa;
|
gboolean add_videometa;
|
||||||
VkImageUsageFlags usage;
|
VkBufferUsageFlags usage;
|
||||||
VkMemoryPropertyFlags mem_props;
|
VkMemoryPropertyFlags mem_props;
|
||||||
gsize alloc_sizes[GST_VIDEO_MAX_PLANES];
|
gsize alloc_sizes[GST_VIDEO_MAX_PLANES];
|
||||||
};
|
};
|
||||||
|
@ -74,7 +74,7 @@ gst_vulkan_buffer_pool_get_options (GstBufferPool * pool)
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
gst_vulkan_buffer_pool_config_get_allocation_params (GstStructure *
|
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)) {
|
if (!gst_structure_get_uint (config, "usage", usage)) {
|
||||||
*usage =
|
*usage =
|
||||||
|
@ -98,7 +98,7 @@ gst_vulkan_buffer_pool_config_get_allocation_params (GstStructure *
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_vulkan_buffer_pool_config_set_allocation_params (GstStructure *
|
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) */
|
/* assumption: G_TYPE_UINT is compatible with uint32_t (VkFlags) */
|
||||||
gst_structure_set (config, "usage", G_TYPE_UINT, usage, "memory-properties",
|
gst_structure_set (config, "usage", G_TYPE_UINT, usage, "memory-properties",
|
||||||
|
|
|
@ -84,7 +84,7 @@ GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * devic
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
void gst_vulkan_buffer_pool_config_set_allocation_params
|
void gst_vulkan_buffer_pool_config_set_allocation_params
|
||||||
(GstStructure * config,
|
(GstStructure * config,
|
||||||
VkImageUsageFlags usage,
|
VkBufferUsageFlags usage,
|
||||||
VkMemoryPropertyFlags mem_properties);
|
VkMemoryPropertyFlags mem_properties);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
Loading…
Reference in a new issue