| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef __GST_VK_DISPLAY_WAYLAND_H__ |
| 22 |
#define __GST_VK_DISPLAY_WAYLAND_H__ |
| 23 |
|
| 24 |
#include <gst/gst.h> |
| 25 |
|
| 26 |
#include <wayland-client.h> |
| 27 |
|
| 28 |
#include <gst/vulkan/vulkan.h> |
| 29 |
#include <vulkan/vulkan_wayland.h> |
| 30 |
|
| 31 |
G_BEGIN_DECLS |
| 32 |
|
| 33 |
#define GST_TYPE_VULKAN_DISPLAY_WAYLAND (gst_vulkan_display_wayland_get_type()) |
| 34 |
GST_VULKAN_API |
| 35 |
GType gst_vulkan_display_wayland_get_type (void); |
| 36 |
|
| 37 |
#define GST_VULKAN_DISPLAY_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VULKAN_DISPLAY_WAYLAND,GstVulkanDisplayWayland)) |
| 38 |
#define GST_VULKAN_DISPLAY_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_VULKAN_DISPLAY_WAYLAND,GstVulkanDisplayWaylandClass)) |
| 39 |
#define GST_IS_VULKAN_DISPLAY_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VULKAN_DISPLAY_WAYLAND)) |
| 40 |
#define GST_IS_VULKAN_DISPLAY_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VULKAN_DISPLAY_WAYLAND)) |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
#define GST_VULKAN_DISPLAY_WAYLAND_CAST(obj) ((GstVulkanDisplayWayland*)(obj)) |
| 47 |
|
| 48 |
typedef struct _GstVulkanDisplayWayland GstVulkanDisplayWayland; |
| 49 |
typedef struct _GstVulkanDisplayWaylandClass GstVulkanDisplayWaylandClass; |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
struct _GstVulkanDisplayWayland |
| 60 |
{ |
| 61 |
GstVulkanDisplay parent; |
| 62 |
|
| 63 |
struct wl_display *display; |
| 64 |
struct wl_registry *registry; |
| 65 |
struct wl_compositor *compositor; |
| 66 |
struct wl_subcompositor *subcompositor; |
| 67 |
struct wl_shell *shell; |
| 68 |
|
| 69 |
|
| 70 |
gboolean foreign_display; |
| 71 |
}; |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
struct _GstVulkanDisplayWaylandClass |
| 79 |
{ |
| 80 |
GstVulkanDisplayClass object_class; |
| 81 |
}; |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
#define GST_VULKAN_DISPLAY_WAYLAND_DISPLAY(display_) (GST_VULKAN_DISPLAY_WAYLAND (display_)->display) |
| 89 |
|
| 90 |
GST_VULKAN_API |
| 91 |
GstVulkanDisplayWayland *gst_vulkan_display_wayland_new (const gchar * name) G_GNUC_WARN_UNUSED_RESULT; |
| 92 |
GST_VULKAN_API |
| 93 |
GstVulkanDisplayWayland *gst_vulkan_display_wayland_new_with_display (struct wl_display *display) G_GNUC_WARN_UNUSED_RESULT; |
| 94 |
|
| 95 |
G_END_DECLS |
| 96 |
|
| 97 |
#endif |