Merge branch 'move_subdir_editing-services' into tizen_gst_1.19.2_mono
[platform/upstream/gstreamer.git] / subprojects / gstreamer-vaapi / gst-libs / gst / vaapi / gstvaapiutils_x11.h
1 /*
2  *  gstvaapiutils_x11.h - X11 utilties
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2012-2013 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *
9  *  This library is free software; you can redistribute it and/or
10  *  modify it under the terms of the GNU Lesser General Public License
11  *  as published by the Free Software Foundation; either version 2.1
12  *  of the License, or (at your option) any later version.
13  *
14  *  This library is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  *  Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public
20  *  License along with this library; if not, write to the Free
21  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  *  Boston, MA 02110-1301 USA
23  */
24
25 #ifndef GST_VAAPI_UTILS_X11_H
26 #define GST_VAAPI_UTILS_X11_H
27
28 #include "config.h"
29 #include <X11/Xlib.h>
30 #include <glib.h>
31
32 G_GNUC_INTERNAL
33 void
34 x11_trap_errors (void);
35
36 G_GNUC_INTERNAL
37 int
38 x11_untrap_errors (void);
39
40 G_GNUC_INTERNAL
41 Window
42 x11_create_window (Display * dpy, guint w, guint h, guint vid, Colormap cmap);
43
44 G_GNUC_INTERNAL
45 gboolean
46 x11_get_geometry (Display * dpy, Drawable drawable, gint * px, gint * py,
47     guint * pwidth, guint * pheight, guint * pdepth);
48
49 #endif /* GST_VAAPI_UTILS_X11_H */