mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vulkan: add some missing GAutoPtr definitions
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2470>
This commit is contained in:
parent
a5e4199e88
commit
32487878d9
10 changed files with 22 additions and 0 deletions
|
@ -139,6 +139,8 @@ struct _GstVulkanBufferMemoryAllocatorClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanBufferMemoryAllocator, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
void gst_vulkan_buffer_memory_init_once (void);
|
void gst_vulkan_buffer_memory_init_once (void);
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
|
|
|
@ -76,6 +76,8 @@ struct _GstVulkanBufferPoolClass
|
||||||
gpointer _padding[GST_PADDING];
|
gpointer _padding[GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanBufferPool, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * device);
|
GstBufferPool *gst_vulkan_buffer_pool_new (GstVulkanDevice * device);
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,8 @@ gst_clear_vulkan_command_buffer (GstVulkanCommandBuffer ** cmd_ptr)
|
||||||
*/
|
*/
|
||||||
#define gst_vulkan_command_buffer_unlock(cmd) (gst_vulkan_command_pool_unlock((cmd)->pool))
|
#define gst_vulkan_command_buffer_unlock(cmd) (gst_vulkan_command_pool_unlock((cmd)->pool))
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanCommandBuffer, gst_vulkan_command_buffer_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GstVulkanCommandBuffer * gst_vulkan_command_buffer_new_wrapped (VkCommandBuffer cmd,
|
GstVulkanCommandBuffer * gst_vulkan_command_buffer_new_wrapped (VkCommandBuffer cmd,
|
||||||
VkCommandBufferLevel level);
|
VkCommandBufferLevel level);
|
||||||
|
|
|
@ -66,6 +66,8 @@ struct _GstVulkanDescriptorPoolClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanDescriptorPool, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GstVulkanDescriptorPool * gst_vulkan_descriptor_pool_new_wrapped (GstVulkanDevice * device,
|
GstVulkanDescriptorPool * gst_vulkan_descriptor_pool_new_wrapped (GstVulkanDevice * device,
|
||||||
VkDescriptorPool pool,
|
VkDescriptorPool pool,
|
||||||
|
|
|
@ -131,6 +131,8 @@ GstVulkanDescriptorSet * gst_vulkan_descriptor_set_new_wrapped (GstVulk
|
||||||
guint n_layouts,
|
guint n_layouts,
|
||||||
GstVulkanHandle ** layouts);
|
GstVulkanHandle ** layouts);
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanDescriptorSet, gst_vulkan_descriptor_set_unref);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* _GST_VULKAN_DESCRIPTOR_SET_H_ */
|
#endif /* _GST_VULKAN_DESCRIPTOR_SET_H_ */
|
||||||
|
|
|
@ -93,6 +93,8 @@ gst_vulkan_fence_unref (GstVulkanFence * fence)
|
||||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (fence));
|
gst_mini_object_unref (GST_MINI_OBJECT_CAST (fence));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanFence, gst_vulkan_fence_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GType gst_vulkan_fence_cache_get_type (void);
|
GType gst_vulkan_fence_cache_get_type (void);
|
||||||
#define GST_TYPE_VULKAN_FENCE_CACHE (gst_vulkan_fence_cache_get_type())
|
#define GST_TYPE_VULKAN_FENCE_CACHE (gst_vulkan_fence_cache_get_type())
|
||||||
|
@ -130,6 +132,8 @@ struct _GstVulkanFenceCacheClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanFenceCache, gst_object_unref);
|
||||||
|
|
||||||
GstVulkanFenceCache * gst_vulkan_fence_cache_new (GstVulkanDevice * device);
|
GstVulkanFenceCache * gst_vulkan_fence_cache_new (GstVulkanDevice * device);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -75,6 +75,8 @@ struct _GstVulkanImageBufferPoolClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanImageBufferPool, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
GstBufferPool *gst_vulkan_image_buffer_pool_new (GstVulkanDevice * device);
|
GstBufferPool *gst_vulkan_image_buffer_pool_new (GstVulkanDevice * device);
|
||||||
|
|
||||||
|
|
|
@ -158,6 +158,8 @@ struct _GstVulkanImageMemoryAllocatorClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanImageMemoryAllocator, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
void gst_vulkan_image_memory_init_once (void);
|
void gst_vulkan_image_memory_init_once (void);
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
|
|
|
@ -123,6 +123,8 @@ struct _GstVulkanMemoryAllocatorClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanMemoryAllocator, gst_object_unref);
|
||||||
|
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
void gst_vulkan_memory_init_once (void);
|
void gst_vulkan_memory_init_once (void);
|
||||||
GST_VULKAN_API
|
GST_VULKAN_API
|
||||||
|
|
|
@ -83,6 +83,8 @@ struct _GstVulkanVideoFilterClass
|
||||||
gpointer _reserved [GST_PADDING];
|
gpointer _reserved [GST_PADDING];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanVideoFilter, gst_object_unref);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue