• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer
3  * Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 #ifndef _VK_UTILS_H_
21 #define _VK_UTILS_H_
22 
23 #include <gst/gst.h>
24 #include <vk.h>
25 
26 G_BEGIN_DECLS
27 
28 gboolean gst_vulkan_ensure_element_data (gpointer element,
29     GstVulkanDisplay **display_ptr, GstVulkanInstance ** instance_ptr);
30 gboolean gst_vulkan_handle_set_context (GstElement * element, GstContext * context,
31     GstVulkanDisplay ** display, GstVulkanInstance ** instance);
32 gboolean gst_vulkan_handle_context_query (GstElement * element, GstQuery * query,
33     GstVulkanDisplay ** display, GstVulkanInstance ** instance, GstVulkanDevice ** device);
34 
35 void gst_vulkan_global_context_query (GstElement * element, const gchar * context_type);
36 GstQuery * gst_vulkan_local_context_query (GstElement * element, const gchar * context_type, gboolean set_context);
37 gboolean gst_vulkan_run_query (GstElement * element,
38     GstQuery * query, GstPadDirection direction);
39 
40 G_END_DECLS
41 
42 #endif /*_VK_UTILS_H_ */
43