Tizen 2.0 Release
[framework/multimedia/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapiwindow_wayland.h
1 /*
2  *  gstvaapiwindow_wayland.h - VA/Wayland window abstraction
3  *
4  *  Copyright (C) 2012 Intel Corporation
5  *
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.
10  *
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.
15  *
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
20  */
21
22 #ifndef GST_VAAPI_WINDOW_WAYLAND_H
23 #define GST_VAAPI_WINDOW_WAYLAND_H
24
25 #include <wayland-client.h>
26 #include <gst/vaapi/gstvaapidisplay.h>
27 #include <gst/vaapi/gstvaapiwindow.h>
28
29 G_BEGIN_DECLS
30
31 #define GST_VAAPI_TYPE_WINDOW_WAYLAND \
32     (gst_vaapi_window_wayland_get_type())
33
34 #define GST_VAAPI_WINDOW_WAYLAND(obj)                           \
35     (G_TYPE_CHECK_INSTANCE_CAST((obj),                          \
36                                 GST_VAAPI_TYPE_WINDOW_WAYLAND,  \
37                                 GstVaapiWindowWayland))
38
39 #define GST_VAAPI_WINDOW_WAYLAND_CLASS(klass)                   \
40     (G_TYPE_CHECK_CLASS_CAST((klass),                           \
41                              GST_VAAPI_TYPE_WINDOW_WAYLAND,     \
42                              GstVaapiWindowWaylandClass))
43
44 #define GST_VAAPI_IS_WINDOW_WAYLAND(obj) \
45     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_WINDOW_WAYLAND))
46
47 #define GST_VAAPI_IS_WINDOW_WAYLAND_CLASS(klass) \
48     (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_WINDOW_WAYLAND))
49
50 #define GST_VAAPI_WINDOW_WAYLAND_GET_CLASS(obj)                 \
51     (G_TYPE_INSTANCE_GET_CLASS((obj),                           \
52                                GST_VAAPI_TYPE_WINDOW_WAYLAND,   \
53                                GstVaapiWindowWaylandClass))
54
55 typedef struct _GstVaapiWindowWayland           GstVaapiWindowWayland;
56 typedef struct _GstVaapiWindowWaylandPrivate    GstVaapiWindowWaylandPrivate;
57 typedef struct _GstVaapiWindowWaylandClass      GstVaapiWindowWaylandClass;
58
59 /**
60  * GstVaapiWindowWayland:
61  *
62  * A Wayland window abstraction.
63  */
64 struct _GstVaapiWindowWayland {
65     /*< private >*/
66     GstVaapiWindow parent_instance;
67
68     GstVaapiWindowWaylandPrivate *priv;
69 };
70
71 /**
72  * GstVaapiWindowWaylandClass:
73  *
74  * An Wayland #Window wrapper class.
75  */
76 struct _GstVaapiWindowWaylandClass {
77     /*< private >*/
78     GstVaapiWindowClass parent_class;
79 };
80
81 GType
82 gst_vaapi_window_wayland_get_type(void) G_GNUC_CONST;
83
84 GstVaapiWindow *
85 gst_vaapi_window_wayland_new(GstVaapiDisplay *display, guint width, guint height);
86
87 G_END_DECLS
88
89 #endif /* GST_VAAPI_WINDOW_WAYLAND_H */