libs: display: x11: add gst_vaapi_display_x11_new_with_va_display()
[platform/upstream/gstreamer.git] / gst-libs / gst / vaapi / gstvaapidisplay_x11.h
1 /*
2  *  gstvaapidisplay_x11.h - VA/X11 display abstraction
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_DISPLAY_X11_H
26 #define GST_VAAPI_DISPLAY_X11_H
27
28 #include <va/va_x11.h>
29 #include <gst/vaapi/gstvaapidisplay.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_TYPE_VAAPI_DISPLAY_X11              (gst_vaapi_display_x11_get_type ())
34 #define GST_VAAPI_DISPLAY_X11(obj) \
35     (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VAAPI_DISPLAY_X11, GstVaapiDisplayX11))
36
37 typedef struct _GstVaapiDisplayX11              GstVaapiDisplayX11;
38
39 GstVaapiDisplay *
40 gst_vaapi_display_x11_new (const gchar * display_name);
41
42 GstVaapiDisplay *
43 gst_vaapi_display_x11_new_with_display (Display * x11_display);
44
45 GstVaapiDisplay *
46 gst_vaapi_display_x11_new_with_va_display (VADisplay va_display, Display * x11_display);
47
48 Display *
49 gst_vaapi_display_x11_get_display (GstVaapiDisplayX11 * display);
50
51 int
52 gst_vaapi_display_x11_get_screen (GstVaapiDisplayX11 * display);
53
54 void
55 gst_vaapi_display_x11_set_synchronous (GstVaapiDisplayX11 * display,
56     gboolean synchronous);
57
58 GType
59 gst_vaapi_display_x11_get_type (void) G_GNUC_CONST;
60
61 G_END_DECLS
62
63 #endif /* GST_VAAPI_DISPLAY_X11_H */