2010-03-16 09:12:47 +00:00
|
|
|
/*
|
|
|
|
* gstvaapiutils_x11.h - X11 utilties
|
|
|
|
*
|
2012-01-16 09:41:10 +00:00
|
|
|
* Copyright (C) 2010-2011 Splitted-Desktop Systems
|
2013-11-22 04:57:18 +00:00
|
|
|
* Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
|
2013-11-22 05:37:12 +00:00
|
|
|
* Copyright (C) 2012-2013 Intel Corporation
|
2013-11-22 04:57:18 +00:00
|
|
|
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
2010-03-16 09:12:47 +00:00
|
|
|
*
|
2010-05-03 07:07:27 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2.1
|
|
|
|
* of the License, or (at your option) any later version.
|
2010-03-16 09:12:47 +00:00
|
|
|
*
|
2010-05-03 07:07:27 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2010-03-16 09:12:47 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2010-05-03 07:07:27 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2010-03-16 09:12:47 +00:00
|
|
|
*
|
2010-05-03 07:07:27 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free
|
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
2010-03-16 09:12:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GST_VAAPI_UTILS_X11_H
|
|
|
|
#define GST_VAAPI_UTILS_X11_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2014-01-23 09:20:40 +00:00
|
|
|
#include "libgstvaapi_priv_check.h"
|
2010-03-16 09:12:47 +00:00
|
|
|
#include <X11/Xlib.h>
|
2012-02-07 09:01:01 +00:00
|
|
|
#include <glib.h>
|
2010-03-16 09:12:47 +00:00
|
|
|
|
2012-07-19 15:55:00 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
2014-01-23 16:41:02 +00:00
|
|
|
x11_trap_errors (void);
|
2010-03-16 09:12:47 +00:00
|
|
|
|
2012-07-19 15:55:00 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
int
|
2014-01-23 16:41:02 +00:00
|
|
|
x11_untrap_errors (void);
|
2010-03-16 09:12:47 +00:00
|
|
|
|
2012-07-19 15:55:00 +00:00
|
|
|
G_GNUC_INTERNAL
|
2010-03-16 09:12:47 +00:00
|
|
|
Window
|
2014-01-23 16:41:02 +00:00
|
|
|
x11_create_window (Display * dpy, guint w, guint h, Visual * vis,
|
|
|
|
Colormap cmap);
|
2010-03-16 09:12:47 +00:00
|
|
|
|
2012-07-19 15:55:00 +00:00
|
|
|
G_GNUC_INTERNAL
|
2010-03-16 09:12:47 +00:00
|
|
|
gboolean
|
2014-01-23 16:41:02 +00:00
|
|
|
x11_get_geometry (Display * dpy, Drawable drawable, gint * px, gint * py,
|
|
|
|
guint * pwidth, guint * pheight, guint * pdepth);
|
2010-03-16 09:12:47 +00:00
|
|
|
|
|
|
|
#endif /* GST_VAAPI_UTILS_X11_H */
|