• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GStreamer
3  * Copyright (C) 2019 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 
21 #ifndef __GST_VULKAN_DEBUG_H__
22 #define __GST_VULKAN_DEBUG_H__
23 
24 #include <gst/gst.h>
25 #include <vulkan/vulkan.h>
26 #include <gst/vulkan/vulkan-prelude.h>
27 
28 G_BEGIN_DECLS
29 
30 /**
31  * GST_VULKAN_EXTENT3D_FORMAT:
32  *
33  * Since: 1.18
34  */
35 #define GST_VULKAN_EXTENT3D_FORMAT G_GUINT32_FORMAT ", %" G_GUINT32_FORMAT ", %" G_GUINT32_FORMAT
36 
37 /**
38  * GST_VULKAN_EXTENT3D_ARGS:
39  *
40  * Since: 1.18
41  */
42 #define GST_VULKAN_EXTENT3D_ARGS(var) (var).width, (var).height, (var).depth
43 
44 /**
45  * GST_VULKAN_EXTENT2D_FORMAT:
46  *
47  * Since: 1.18
48  */
49 #define GST_VULKAN_EXTENT2D_FORMAT G_GUINT32_FORMAT ", %" G_GUINT32_FORMAT
50 
51 /**
52  * GST_VULKAN_EXTENT2D_ARGS:
53  *
54  * Since: 1.18
55  */
56 #define GST_VULKAN_EXTENT2D_ARGS(var) (var).width, (var).height
57 
58 GST_VULKAN_API
59 const gchar *               gst_vulkan_physical_device_type_to_string       (VkPhysicalDeviceType type);
60 
61 GST_VULKAN_API
62 gchar *                     gst_vulkan_memory_property_flags_to_string      (VkMemoryPropertyFlags prop_bits);
63 GST_VULKAN_API
64 gchar *                     gst_vulkan_memory_heap_flags_to_string          (VkMemoryHeapFlags prop_bits);
65 GST_VULKAN_API
66 gchar *                     gst_vulkan_queue_flags_to_string                (VkQueueFlags queue_bits);
67 GST_VULKAN_API
68 gchar *                     gst_vulkan_sample_count_flags_to_string         (VkSampleCountFlags sample_count_bits);
69 GST_VULKAN_API
70 const gchar *               gst_vulkan_present_mode_to_string               (VkPresentModeKHR present_mode);
71 
72 G_END_DECLS
73 
74 #endif /* __GST_VULKAN_DEBUG_H__ */
75