gstvaapidisplay_x11.h 1.61 KB
Newer Older
gb's avatar
gb committed
1 2 3
/*
 *  gstvaapidisplay_x11.h - VA/X11 display abstraction
 *
4
 *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5
 *  Copyright (C) 2012 Intel Corporation
gb's avatar
gb committed
6
 *
gb's avatar
gb committed
7 8 9 10
 *  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.
gb's avatar
gb committed
11
 *
gb's avatar
gb committed
12
 *  This library is distributed in the hope that it will be useful,
gb's avatar
gb committed
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
gb's avatar
gb committed
14 15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
gb's avatar
gb committed
16
 *
gb's avatar
gb committed
17 18 19 20
 *  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
gb's avatar
gb committed
21 22 23 24 25
 */

#ifndef GST_VAAPI_DISPLAY_X11_H
#define GST_VAAPI_DISPLAY_X11_H

26
#include <va/va_x11.h>
gb's avatar
gb committed
27
#include <gst/vaapi/gstvaapidisplay.h>
gb's avatar
gb committed
28 29 30

G_BEGIN_DECLS

31 32
#define GST_VAAPI_DISPLAY_X11(obj) \
    ((GstVaapiDisplayX11 *)(obj))
gb's avatar
gb committed
33 34 35 36

typedef struct _GstVaapiDisplayX11              GstVaapiDisplayX11;

GstVaapiDisplay *
37
gst_vaapi_display_x11_new(const gchar *display_name);
gb's avatar
gb committed
38

39 40 41
GstVaapiDisplay *
gst_vaapi_display_x11_new_with_display(Display *x11_display);

gb's avatar
gb committed
42 43 44
Display *
gst_vaapi_display_x11_get_display(GstVaapiDisplayX11 *display);

45 46 47
int
gst_vaapi_display_x11_get_screen(GstVaapiDisplayX11 *display);

48 49 50 51
void
gst_vaapi_display_x11_set_synchronous(GstVaapiDisplayX11 *display,
    gboolean synchronous);

gb's avatar
gb committed
52 53 54
G_END_DECLS

#endif /* GST_VAAPI_DISPLAY_X11_H */