3 * Copyright (C) 2019 Matthew Waters <ystreet00@gmail.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__
28 #define GST_TYPE_VULKAN_WINDOW_IOS (gst_vulkan_window_ios_get_type())
29 #define GST_VULKAN_WINDOW_IOS(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIos))
30 #define GST_VULKAN_WINDOW_IOS_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIosClass))
31 #define GST_IS_VULKAN_WINDOW_IOS(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_TYPE_VULKAN_WINDOW_IOS))
32 #define GST_IS_VULKAN_WINDOW_IOS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_TYPE_VULKAN_WINDOW_IOS))
33 #define GST_VULKAN_WINDOW_IOS_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_TYPE_VULKAN_WINDOW_IOS, GstVulkanWindowIosClass))
35 typedef struct _GstVulkanWindowIos GstVulkanWindowIos;
36 typedef struct _GstVulkanWindowIosPrivate GstVulkanWindowIosPrivate;
37 typedef struct _GstVulkanWindowIosClass GstVulkanWindowIosClass;
42 * Opaque #GstVulkanWindowIos object
44 struct _GstVulkanWindowIos
47 GstVulkanWindow parent;
53 PFN_vkCreateIOSSurfaceMVK CreateIOSSurface;
56 GstVulkanWindowIosPrivate *priv;
58 gpointer _reserved[GST_PADDING];
62 * GstVulkanWindowIosClass:
64 * Opaque #GstVulkanWindowIosClass object
66 struct _GstVulkanWindowIosClass {
68 GstVulkanWindowClass parent_class;
71 gpointer _reserved[GST_PADDING_LARGE];
74 GType gst_vulkan_window_ios_get_type (void);
76 GstVulkanWindowIos * gst_vulkan_window_ios_new (GstVulkanDisplay * display);
78 gboolean gst_vulkan_window_ios_create_window (GstVulkanWindowIos * window_ios);
82 #endif /* __GST_VULKAN_WINDOW_IOS_H__ */