Add initial VA display abstraction.
[profile/ivi/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapidisplay.h
1 /*
2  *  gstvaapidisplay.h - VA display abstraction
3  *
4  *  gstreamer-vaapi (C) 2010 Splitted-Desktop Systems
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
19  */
20
21 #ifndef GST_VAAPI_DISPLAY_H
22 #define GST_VAAPI_DISPLAY_H
23
24 #include <va/va.h>
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS
28
29 #define GST_VAAPI_TYPE_DISPLAY \
30     (gst_vaapi_display_get_type())
31
32 #define GST_VAAPI_DISPLAY(obj)                          \
33     (G_TYPE_CHECK_INSTANCE_CAST((obj),                  \
34                                 GST_VAAPI_TYPE_DISPLAY, \
35                                 GstVaapiDisplay))
36
37 #define GST_VAAPI_DISPLAY_CLASS(klass)                  \
38     (G_TYPE_CHECK_CLASS_CAST((klass),                   \
39                              GST_VAAPI_TYPE_DISPLAY,    \
40                              GstVaapiDisplayClass))
41
42 #define GST_VAAPI_IS_DISPLAY(obj) \
43     (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_DISPLAY))
44
45 #define GST_VAAPI_IS_DISPLAY_CLASS(klass) \
46     (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_DISPLAY))
47
48 #define GST_VAAPI_DISPLAY_GET_CLASS(obj)                \
49     (G_TYPE_INSTANCE_GET_CLASS((obj),                   \
50                                GST_VAAPI_TYPE_DISPLAY,  \
51                                GstVaapiDisplay))
52
53 typedef struct _GstVaapiDisplay                 GstVaapiDisplay;
54 typedef struct _GstVaapiDisplayPrivate          GstVaapiDisplayPrivate;
55 typedef struct _GstVaapiDisplayClass            GstVaapiDisplayClass;
56
57 struct _GstVaapiDisplay {
58     /*< private >*/
59     GObject parent_instance;
60
61     GstVaapiDisplayPrivate *priv;
62 };
63
64 struct _GstVaapiDisplayClass {
65     /*< private >*/
66     GObjectClass parent_class;
67 };
68
69 GType
70 gst_vaapi_display_get_type(void);
71
72 VADisplay
73 gst_vaapi_display_get_display(GstVaapiDisplay *display);
74
75 G_END_DECLS
76
77 #endif /* GST_VAAPI_DISPLAY_H */