Debian Codegraph @

gst-libs/gst/wayland/gstwldisplay.h

raw symbols SCIP
1 /* GStreamer Wayland Library
2 *
3 * Copyright (C) 2014 Collabora Ltd.
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 Free
17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA.
19 */
20
21 #pragma once
22
23 #include <gst/wayland/wayland.h>
24
25 #include <gst/video/video.h>
26 #include <gst/video/video-info.h>
27
28 G_BEGIN_DECLS
29
30 #define GST_TYPE_WL_DISPLAY (gst_wl_display_get_type ())
31
32 GST_WL_API
33 G_DECLARE_FINAL_TYPE (GstWlDisplay, gst_wl_display, GST, WL_DISPLAY, GstObject);
34
35 struct _GstWlDisplay
36 {
37 GstObject parent_instance;
38 };
39
40 GST_WL_API
41 GstWlDisplay *gst_wl_display_new (const gchar * name, GError ** error);
42
43 GST_WL_API
44 GstWlDisplay *gst_wl_display_new_existing (struct wl_display * display,
45 gboolean take_ownership, GError ** error);
46
47 /* see wlbuffer.c for explanation */
48 GST_WL_API
49 void gst_wl_display_register_buffer (GstWlDisplay * self, gpointer gstmem,
50 gpointer wlbuffer);
51
52 GST_WL_API
53 void gst_wl_display_unregister_buffer (GstWlDisplay * self, gpointer gstmem);
54
55 GST_WL_API
56 struct wl_callback * gst_wl_display_sync(GstWlDisplay * self, const struct wl_callback_listener *listener,
57 gpointer data);
58
59 GST_WL_API
60 void gst_wl_display_object_destroy (GstWlDisplay * self, gpointer *object, GDestroyNotify destroy_func);
61
62 GST_WL_API
63 void gst_wl_display_callback_destroy(GstWlDisplay * self, struct wl_callback ** callback);
64
65 GST_WL_API
66 gpointer gst_wl_display_lookup_buffer (GstWlDisplay * self, gpointer gstmem);
67
68 GST_WL_API
69 gboolean gst_wl_display_check_format_for_shm (GstWlDisplay * self,
70 const GstVideoInfo *video_info);
71
72 GST_WL_API
73 gboolean gst_wl_display_check_format_for_dmabuf (GstWlDisplay * self,
74 const GstVideoInfoDmaDrm *drm_info);
75
76 GST_WL_API
77 struct wl_display *gst_wl_display_get_display (GstWlDisplay * self);
78
79 GST_WL_API
80 struct wl_event_queue *gst_wl_display_get_event_queue (GstWlDisplay * self);
81
82 GST_WL_API
83 struct wl_compositor *gst_wl_display_get_compositor (GstWlDisplay * self);
84
85 GST_WL_API
86 struct wl_subcompositor *gst_wl_display_get_subcompositor (GstWlDisplay * self);
87
88 GST_WL_API
89 struct xdg_wm_base *gst_wl_display_get_xdg_wm_base (GstWlDisplay * self);
90
91 GST_WL_API
92 struct zwp_fullscreen_shell_v1 *gst_wl_display_get_fullscreen_shell_v1 (GstWlDisplay * self);
93
94 GST_WL_API
95 struct wp_viewporter *gst_wl_display_get_viewporter (GstWlDisplay * self);
96
97 GST_WL_API
98 struct wl_shm *gst_wl_display_get_shm (GstWlDisplay * self);
99
100 GST_WL_API
101 GArray *gst_wl_display_get_shm_formats (GstWlDisplay * self);
102
103 GST_WL_API
104 GArray *gst_wl_display_get_dmabuf_formats (GstWlDisplay * self);
105
106 GST_WL_API
107 GArray *gst_wl_display_get_dmabuf_modifiers (GstWlDisplay * self);
108
109 GST_WL_API
110 void gst_wl_display_fill_shm_format_list (GstWlDisplay *self, GValue *format_list);
111
112 GST_WL_API
113 void gst_wl_display_fill_dmabuf_format_list (GstWlDisplay *self, GValue *format_list);
114
115 GST_WL_API
116 struct zwp_linux_dmabuf_v1 *gst_wl_display_get_dmabuf_v1 (GstWlDisplay * self);
117
118 GST_WL_API
119 struct wp_single_pixel_buffer_manager_v1 * gst_wl_display_get_single_pixel_buffer_manager_v1 (GstWlDisplay * self);
120
121 GST_WL_API
122 gboolean gst_wl_display_has_own_display (GstWlDisplay * self);
123
124 GST_WL_API
125 struct wp_color_manager_v1 *gst_wl_display_get_color_manager_v1 (GstWlDisplay * self);
126
127 GST_WL_API
128 struct wp_color_representation_manager_v1 *gst_wl_display_get_color_representation_manager_v1 (GstWlDisplay * self);
129
130 GST_WL_API
131 gboolean gst_wl_display_is_color_parametric_creator_supported (GstWlDisplay * self);
132
133 GST_WL_API
134 gboolean gst_wl_display_is_color_mastering_display_supported (GstWlDisplay * self);
135
136 GST_WL_API
137 gboolean gst_wl_display_is_color_transfer_function_supported (GstWlDisplay * self, uint32_t transfer_function);
138
139 GST_WL_API
140 gboolean gst_wl_display_are_color_primaries_supported (GstWlDisplay * self, uint32_t primaries);
141
142 GST_WL_API
143 gboolean gst_wl_display_is_color_alpha_mode_supported (GstWlDisplay * self, uint32_t alpha_mode);
144
145 GST_WL_API
146 gboolean gst_wl_display_are_color_coefficients_supported (GstWlDisplay * self, uint32_t coefficients, uint32_t range);
147
148 GST_WL_API
149 GstWlOutput * gst_wl_display_get_output_by_name (GstWlDisplay * self, const gchar * output_name);
150
151 G_END_DECLS