2 * gstvaapidisplay_priv.h - Base VA display (private definitions)
4 * Copyright (C) 2010-2011 Splitted-Desktop Systems
5 * Copyright (C) 2011-2012 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_VAAPI_DISPLAY_PRIV_H
24 #define GST_VAAPI_DISPLAY_PRIV_H
26 #include <gst/vaapi/gstvaapidisplay.h>
27 #include <gst/vaapi/gstvaapidisplaycache.h>
31 #define GST_VAAPI_DISPLAY_GET_PRIVATE(obj) \
32 (G_TYPE_INSTANCE_GET_PRIVATE((obj), \
33 GST_VAAPI_TYPE_DISPLAY, \
34 GstVaapiDisplayPrivate))
36 #define GST_VAAPI_DISPLAY_CAST(display) ((GstVaapiDisplay *)(display))
39 * GST_VAAPI_DISPLAY_VADISPLAY:
40 * @display_: a #GstVaapiDisplay
42 * Macro that evaluates to the #VADisplay of @display.
43 * This is an internal macro that does not do any run-time type check.
45 #undef GST_VAAPI_DISPLAY_VADISPLAY
46 #define GST_VAAPI_DISPLAY_VADISPLAY(display_) \
47 GST_VAAPI_DISPLAY_CAST(display_)->priv->display
50 * GST_VAAPI_DISPLAY_LOCK:
51 * @display: a #GstVaapiDisplay
55 #undef GST_VAAPI_DISPLAY_LOCK
56 #define GST_VAAPI_DISPLAY_LOCK(display) \
57 gst_vaapi_display_lock(GST_VAAPI_DISPLAY_CAST(display))
60 * GST_VAAPI_DISPLAY_UNLOCK:
61 * @display: a #GstVaapiDisplay
65 #undef GST_VAAPI_DISPLAY_UNLOCK
66 #define GST_VAAPI_DISPLAY_UNLOCK(display) \
67 gst_vaapi_display_unlock(GST_VAAPI_DISPLAY_CAST(display))
70 * GstVaapiDisplayPrivate:
72 * Base class for VA displays.
74 struct _GstVaapiDisplayPrivate {
75 GstVaapiDisplay *parent;
77 GstVaapiDisplayType display_type;
87 GArray *image_formats;
88 GArray *subpicture_formats;
90 guint create_display : 1;
93 GstVaapiDisplayCache *
94 gst_vaapi_display_get_cache(void);
98 #endif /* GST_VAAPI_DISPLAY_PRIV_H */