2 * gstvaapidisplay_wayland.h - VA/Wayland display 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_DISPLAY_WAYLAND_H
23 #define GST_VAAPI_DISPLAY_WAYLAND_H
25 #include <va/va_wayland.h>
26 #include <gst/vaapi/gstvaapidisplay.h>
30 #define GST_VAAPI_TYPE_DISPLAY_WAYLAND \
31 (gst_vaapi_display_wayland_get_type())
33 #define GST_VAAPI_DISPLAY_WAYLAND(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35 GST_VAAPI_TYPE_DISPLAY_WAYLAND, \
36 GstVaapiDisplayWayland))
38 #define GST_VAAPI_DISPLAY_WAYLAND_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass), \
40 GST_VAAPI_TYPE_DISPLAY_WAYLAND, \
41 GstVaapiDisplayWaylandClass))
43 #define GST_VAAPI_IS_DISPLAY_WAYLAND(obj) \
44 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_DISPLAY_WAYLAND))
46 #define GST_VAAPI_IS_DISPLAY_WAYLAND_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_DISPLAY_WAYLAND))
49 #define GST_VAAPI_DISPLAY_WAYLAND_GET_CLASS(obj) \
50 (G_TYPE_INSTANCE_GET_CLASS((obj), \
51 GST_VAAPI_TYPE_DISPLAY_WAYLAND, \
52 GstVaapiDisplayWaylandClass))
54 typedef struct _GstVaapiDisplayWayland GstVaapiDisplayWayland;
55 typedef struct _GstVaapiDisplayWaylandPrivate GstVaapiDisplayWaylandPrivate;
56 typedef struct _GstVaapiDisplayWaylandClass GstVaapiDisplayWaylandClass;
59 * GstVaapiDisplayWayland:
61 * VA/Wayland display wrapper.
63 struct _GstVaapiDisplayWayland {
65 GstVaapiDisplay parent_instance;
67 GstVaapiDisplayWaylandPrivate *priv;
71 * GstVaapiDisplayWaylandClass:
73 * VA/Wayland display wrapper clas.
75 struct _GstVaapiDisplayWaylandClass {
77 GstVaapiDisplayClass parent_class;
81 gst_vaapi_display_wayland_get_type(void) G_GNUC_CONST;
84 gst_vaapi_display_wayland_new(const gchar *display_name);
87 gst_vaapi_display_wayland_new_with_display(struct wl_display *wl_display);
90 gst_vaapi_display_wayland_get_display(GstVaapiDisplayWayland *display);
94 #endif /* GST_VAAPI_DISPLAY_WAYLAND_H */