3 * Copyright (C) 2019 Matthew Waters <matthew@centricular.com>
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.
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.
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.
21 #ifndef __GST_VULKAN_WINDOW_IOS_H__
22 #define __GST_VULKAN_WINDOW_IOS_H__
24 #include <gst/vulkan/vulkan.h>
25 #include <vulkan/vulkan_ios.h>
29 #define GST_TYPE_VULKAN_WINDOW_IOS (gst_vulkan_window_ios_get_type())
30 #define GST_VULKAN_WINDOW_IOS(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIos))
31 #define GST_VULKAN_WINDOW_IOS_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIosClass))
32 #define GST_IS_VULKAN_WINDOW_IOS(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_TYPE_VULKAN_WINDOW_IOS))
33 #define GST_IS_VULKAN_WINDOW_IOS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_TYPE_VULKAN_WINDOW_IOS))
34 #define GST_VULKAN_WINDOW_IOS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIosClass))
36 typedef struct _GstVulkanWindowIos GstVulkanWindowIos;
37 typedef struct _GstVulkanWindowIosPrivate GstVulkanWindowIosPrivate;
38 typedef struct _GstVulkanWindowIosClass GstVulkanWindowIosClass;
43 * Opaque #GstVulkanWindowIos object
45 struct _GstVulkanWindowIos
48 GstVulkanWindow parent;
54 PFN_vkCreateIOSSurfaceMVK CreateIOSSurface;
57 gpointer _reserved[GST_PADDING];
61 * GstVulkanWindowIosClass:
63 * Opaque #GstVulkanWindowIosClass object
65 struct _GstVulkanWindowIosClass {
67 GstVulkanWindowClass parent_class;
70 gpointer _reserved[GST_PADDING_LARGE];
73 GType gst_vulkan_window_ios_get_type (void);
75 GstVulkanWindowIos * gst_vulkan_window_ios_new (GstVulkanDisplay * display);
77 gboolean gst_vulkan_window_ios_create_window (GstVulkanWindowIos * window_ios);
81 #endif /* __GST_VULKAN_WINDOW_IOS_H__ */