2 * gstvaapiwindow_wayland.h - VA/Wayland window abstraction
4 * Copyright (C) 2012 Intel Corporation
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef GST_VAAPI_WINDOW_WAYLAND_H
23 #define GST_VAAPI_WINDOW_WAYLAND_H
25 #include <wayland-client.h>
26 #include <gst/vaapi/gstvaapidisplay.h>
27 #include <gst/vaapi/gstvaapiwindow.h>
31 #define GST_VAAPI_TYPE_WINDOW_WAYLAND \
32 (gst_vaapi_window_wayland_get_type())
34 #define GST_VAAPI_WINDOW_WAYLAND(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36 GST_VAAPI_TYPE_WINDOW_WAYLAND, \
37 GstVaapiWindowWayland))
39 #define GST_VAAPI_WINDOW_WAYLAND_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST((klass), \
41 GST_VAAPI_TYPE_WINDOW_WAYLAND, \
42 GstVaapiWindowWaylandClass))
44 #define GST_VAAPI_IS_WINDOW_WAYLAND(obj) \
45 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_WINDOW_WAYLAND))
47 #define GST_VAAPI_IS_WINDOW_WAYLAND_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_WINDOW_WAYLAND))
50 #define GST_VAAPI_WINDOW_WAYLAND_GET_CLASS(obj) \
51 (G_TYPE_INSTANCE_GET_CLASS((obj), \
52 GST_VAAPI_TYPE_WINDOW_WAYLAND, \
53 GstVaapiWindowWaylandClass))
55 typedef struct _GstVaapiWindowWayland GstVaapiWindowWayland;
56 typedef struct _GstVaapiWindowWaylandPrivate GstVaapiWindowWaylandPrivate;
57 typedef struct _GstVaapiWindowWaylandClass GstVaapiWindowWaylandClass;
60 * GstVaapiWindowWayland:
62 * A Wayland window abstraction.
64 struct _GstVaapiWindowWayland {
66 GstVaapiWindow parent_instance;
68 GstVaapiWindowWaylandPrivate *priv;
72 * GstVaapiWindowWaylandClass:
74 * An Wayland #Window wrapper class.
76 struct _GstVaapiWindowWaylandClass {
78 GstVaapiWindowClass parent_class;
82 gst_vaapi_window_wayland_get_type(void) G_GNUC_CONST;
85 gst_vaapi_window_wayland_new(GstVaapiDisplay *display, guint width, guint height);
89 #endif /* GST_VAAPI_WINDOW_WAYLAND_H */