2 * gstvaapisink.h - VA-API video sink
4 * Copyright (C) 2010-2011 Splitted-Desktop Systems
5 * Copyright (C) 2011 Intel Corporation
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public License
9 * as published by the Free Software Foundation; either version 2.1
10 * of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301 USA
23 #ifndef GST_VAAPISINK_H
24 #define GST_VAAPISINK_H
26 #include <gst/video/gstvideosink.h>
27 #include <gst/vaapi/gstvaapidisplay.h>
28 #include <gst/vaapi/gstvaapiwindow.h>
30 #include <gst/vaapi/gstvaapitexture.h>
36 #define GST_TYPE_VAAPISINK \
37 (gst_vaapisink_get_type())
39 #define GST_VAAPISINK(obj) \
40 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
44 #define GST_VAAPISINK_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_CAST((klass), \
49 #define GST_IS_VAAPISINK(obj) \
50 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_VAAPISINK))
52 #define GST_IS_VAAPISINK_CLASS(klass) \
53 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_TYPE_VAAPISINK))
55 #define GST_VAAPISINK_GET_CLASS(obj) \
56 (G_TYPE_INSTANCE_GET_CLASS((obj), \
60 typedef struct _GstVaapiSink GstVaapiSink;
61 typedef struct _GstVaapiSinkClass GstVaapiSinkClass;
63 #if !USE_VAAPISINK_GLX
64 typedef struct _GstVaapiTexture GstVaapiTexture;
67 struct _GstVaapiSink {
69 GstVideoSink parent_instance;
71 GstVaapiDisplay *display;
72 GstVaapiWindow *window;
75 GstVaapiTexture *texture;
80 GstVaapiRectangle display_rect;
81 guint foreign_window : 1;
83 guint synchronous : 1;
85 guint use_reflection : 1;
88 struct _GstVaapiSinkClass {
90 GstVideoSinkClass parent_class;
94 gst_vaapisink_get_type(void);
98 #endif /* GST_VAAPISINK_H */