diff --git a/girs/GstVulkan-1.0.gir b/girs/GstVulkan-1.0.gir index 0bf93d3c98..a8ac887baa 100644 --- a/girs/GstVulkan-1.0.gir +++ b/girs/GstVulkan-1.0.gir @@ -5824,6 +5824,48 @@ signalled and freed. + + + + The currently configured + #GstVulkanDevice + + + + + a #GstVulkanVideoFilter + + + + + + + + The currently configured + #GstVulkanInstance + + + + + a #GstVulkanVideoFilter + + + + + + + + The currently configured + #GstVulkanQueue + + + + + a #GstVulkanVideoFilter + + + + the parent #GstBaseTransform diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.c b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.c index 354557ce16..701ee187d2 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.c @@ -310,3 +310,63 @@ gst_vulkan_video_filter_stop (GstBaseTransform * bt) return TRUE; } + +/** + * gst_vulkan_video_filter_get_instance: + * @filter: a #GstVulkanVideoFilter + * + * Returns: (transfer full) (nullable): The currently configured + * #GstVulkanInstance + * + * Since: 1.26 + */ +GstVulkanInstance * +gst_vulkan_video_filter_get_instance (GstVulkanVideoFilter * filter) +{ + g_return_val_if_fail (GST_IS_VULKAN_VIDEO_FILTER (filter), NULL); + + if (filter->instance) + return gst_object_ref (filter->instance); + else + return NULL; +} + +/** + * gst_vulkan_video_filter_get_device: + * @filter: a #GstVulkanVideoFilter + * + * Returns: (transfer full) (nullable): The currently configured + * #GstVulkanDevice + * + * Since: 1.26 + */ +GstVulkanDevice * +gst_vulkan_video_filter_get_device (GstVulkanVideoFilter * filter) +{ + g_return_val_if_fail (GST_IS_VULKAN_VIDEO_FILTER (filter), NULL); + + if (filter->device) + return gst_object_ref (filter->device); + else + return NULL; +} + +/** + * gst_vulkan_video_filter_get_queue: + * @filter: a #GstVulkanVideoFilter + * + * Returns: (transfer full) (nullable): The currently configured + * #GstVulkanQueue + * + * Since: 1.26 + */ +GstVulkanQueue * +gst_vulkan_video_filter_get_queue (GstVulkanVideoFilter * filter) +{ + g_return_val_if_fail (GST_IS_VULKAN_VIDEO_FILTER (filter), NULL); + + if (filter->queue) + return gst_object_ref (filter->queue); + else + return NULL; +} diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h index e3457295cc..e04c13b094 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkvideofilter.h @@ -85,6 +85,13 @@ struct _GstVulkanVideoFilterClass G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanVideoFilter, gst_object_unref); +GST_VULKAN_API +GstVulkanInstance * gst_vulkan_video_filter_get_instance (GstVulkanVideoFilter * filter); +GST_VULKAN_API +GstVulkanDevice * gst_vulkan_video_filter_get_device (GstVulkanVideoFilter * filter); +GST_VULKAN_API +GstVulkanQueue * gst_vulkan_video_filter_get_queue (GstVulkanVideoFilter * filter); + G_END_DECLS #endif