2019-04-08 11:35:22 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
#ifndef _VK_UTILS_H_
|
|
|
|
#define _VK_UTILS_H_
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/vulkan/vulkan.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
GST_VULKAN_API
|
2019-04-11 06:52:54 +00:00
|
|
|
gboolean gst_vulkan_ensure_element_data (GstElement * element,
|
2019-04-08 11:35:22 +00:00
|
|
|
GstVulkanDisplay ** display_ptr,
|
|
|
|
GstVulkanInstance ** instance_ptr);
|
|
|
|
GST_VULKAN_API
|
2024-11-06 11:47:32 +00:00
|
|
|
gboolean gst_vulkan_ensure_element_device (GstElement * element,
|
|
|
|
GstVulkanInstance * instance,
|
|
|
|
GstVulkanDevice ** device_ptr,
|
|
|
|
guint device_id);
|
|
|
|
GST_VULKAN_API
|
2019-04-08 11:35:22 +00:00
|
|
|
gboolean gst_vulkan_handle_set_context (GstElement * element,
|
|
|
|
GstContext * context,
|
|
|
|
GstVulkanDisplay ** display,
|
|
|
|
GstVulkanInstance ** instance);
|
|
|
|
GST_VULKAN_API
|
|
|
|
gboolean gst_vulkan_handle_context_query (GstElement * element,
|
|
|
|
GstQuery * query,
|
2019-09-16 01:21:55 +00:00
|
|
|
GstVulkanDisplay * display,
|
|
|
|
GstVulkanInstance * instance,
|
|
|
|
GstVulkanDevice * device);
|
2019-04-08 11:35:22 +00:00
|
|
|
|
|
|
|
GST_VULKAN_API
|
|
|
|
void gst_vulkan_global_context_query (GstElement * element,
|
|
|
|
const gchar * context_type);
|
|
|
|
GST_VULKAN_API
|
|
|
|
GstQuery * gst_vulkan_local_context_query (GstElement * element,
|
|
|
|
const gchar * context_type);
|
|
|
|
GST_VULKAN_API
|
|
|
|
gboolean gst_vulkan_run_query (GstElement * element,
|
|
|
|
GstQuery * query,
|
|
|
|
GstPadDirection direction);
|
|
|
|
|
2019-11-29 02:45:42 +00:00
|
|
|
GST_VULKAN_API
|
|
|
|
GstVulkanImageView * gst_vulkan_get_or_create_image_view (GstVulkanImageMemory * image);
|
|
|
|
|
2023-01-13 15:02:22 +00:00
|
|
|
GST_VULKAN_API
|
|
|
|
GstVulkanImageView * gst_vulkan_get_or_create_image_view_with_info (GstVulkanImageMemory * image,
|
2023-11-29 19:05:18 +00:00
|
|
|
const VkImageViewCreateInfo * create_info);
|
2023-01-13 15:02:22 +00:00
|
|
|
|
2019-11-29 02:45:42 +00:00
|
|
|
GST_VULKAN_API
|
|
|
|
GstVulkanHandle * gst_vulkan_create_shader (GstVulkanDevice * device,
|
2021-10-22 02:35:41 +00:00
|
|
|
const gchar * code,
|
2019-11-29 02:45:42 +00:00
|
|
|
gsize size,
|
|
|
|
GError ** error);
|
|
|
|
|
2019-04-08 11:35:22 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /*_VK_UTILS_H_ */
|