| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef __GST_VK_WINDOW_WAYLAND_H__ |
| 22 |
#define __GST_VK_WINDOW_WAYLAND_H__ |
| 23 |
|
| 24 |
#include <wayland-client.h> |
| 25 |
#include <wayland-cursor.h> |
| 26 |
|
| 27 |
#include <gst/vulkan/vulkan.h> |
| 28 |
|
| 29 |
#include <vulkan/vulkan_wayland.h> |
| 30 |
|
| 31 |
G_BEGIN_DECLS |
| 32 |
|
| 33 |
#define GST_TYPE_VULKAN_WINDOW_WAYLAND (gst_vulkan_window_wayland_get_type()) |
| 34 |
GType gst_vulkan_window_wayland_get_type (void); |
| 35 |
|
| 36 |
#define GST_VULKAN_WINDOW_WAYLAND(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_TYPE_VULKAN_WINDOW_WAYLAND, GstVulkanWindowWayland)) |
| 37 |
#define GST_VULKAN_WINDOW_WAYLAND_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_TYPE_VULKAN_WINDOW_WAYLAND, GstVulkanWindowWaylandClass)) |
| 38 |
#define GST_IS_VULKAN_WINDOW_WAYLAND(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_TYPE_VULKAN_WINDOW_WAYLAND)) |
| 39 |
#define GST_IS_VULKAN_WINDOW_WAYLAND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_TYPE_VULKAN_WINDOW_WAYLAND)) |
| 40 |
#define GST_VULKAN_WINDOW_WAYLAND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_TYPE_VULKAN_WINDOW_WAYLAND, GstVulkanWindowWaylandClass)) |
| 41 |
|
| 42 |
typedef struct _GstVulkanWindowWayland GstVulkanWindowWayland; |
| 43 |
typedef struct _GstVulkanWindowWaylandClass GstVulkanWindowWaylandClass; |
| 44 |
|
| 45 |
struct _GstVulkanWindowWayland { |
| 46 |
|
| 47 |
GstVulkanWindow parent; |
| 48 |
|
| 49 |
PFN_vkCreateWaylandSurfaceKHR CreateWaylandSurface; |
| 50 |
PFN_vkGetPhysicalDeviceWaylandPresentationSupportKHR GetPhysicalDeviceWaylandPresentationSupport; |
| 51 |
|
| 52 |
struct wl_event_queue *queue; |
| 53 |
struct wl_surface *surface; |
| 54 |
struct wl_shell_surface *shell_surface; |
| 55 |
struct wl_callback *callback; |
| 56 |
|
| 57 |
struct xdg_surface *xdg_surface; |
| 58 |
struct xdg_toplevel *xdg_toplevel; |
| 59 |
|
| 60 |
int window_width, window_height; |
| 61 |
|
| 62 |
GSource *wl_source; |
| 63 |
|
| 64 |
gpointer _reserved[GST_PADDING]; |
| 65 |
}; |
| 66 |
|
| 67 |
struct _GstVulkanWindowWaylandClass { |
| 68 |
|
| 69 |
GstVulkanWindowClass parent_class; |
| 70 |
|
| 71 |
|
| 72 |
gpointer _reserved[GST_PADDING]; |
| 73 |
}; |
| 74 |
|
| 75 |
GstVulkanWindowWayland * gst_vulkan_window_wayland_new (GstVulkanDisplay * display); |
| 76 |
|
| 77 |
G_END_DECLS |
| 78 |
|
| 79 |
#endif |