2 * gstvaapidisplay_priv.h - Base VA display (private definitions)
4 * gstreamer-vaapi (C) 2010-2011 Splitted-Desktop Systems
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef GST_VAAPI_DISPLAY_PRIV_H
23 #define GST_VAAPI_DISPLAY_PRIV_H
25 #include <gst/vaapi/gstvaapidisplay.h>
26 #include <gst/vaapi/gstvaapidisplaycache.h>
30 #define GST_VAAPI_DISPLAY_GET_PRIVATE(obj) \
31 (G_TYPE_INSTANCE_GET_PRIVATE((obj), \
32 GST_VAAPI_TYPE_DISPLAY, \
33 GstVaapiDisplayPrivate))
35 #define GST_VAAPI_DISPLAY_CAST(display) ((GstVaapiDisplay *)(display))
38 * GST_VAAPI_DISPLAY_VADISPLAY:
39 * @display_: a #GstVaapiDisplay
41 * Macro that evaluates to the #VADisplay of @display.
42 * This is an internal macro that does not do any run-time type check.
44 #undef GST_VAAPI_DISPLAY_VADISPLAY
45 #define GST_VAAPI_DISPLAY_VADISPLAY(display_) \
46 GST_VAAPI_DISPLAY_CAST(display_)->priv->display
49 * GST_VAAPI_DISPLAY_LOCK:
50 * @display: a #GstVaapiDisplay
54 #undef GST_VAAPI_DISPLAY_LOCK
55 #define GST_VAAPI_DISPLAY_LOCK(display) \
56 gst_vaapi_display_lock(GST_VAAPI_DISPLAY_CAST(display))
59 * GST_VAAPI_DISPLAY_UNLOCK:
60 * @display: a #GstVaapiDisplay
64 #undef GST_VAAPI_DISPLAY_UNLOCK
65 #define GST_VAAPI_DISPLAY_UNLOCK(display) \
66 gst_vaapi_display_unlock(GST_VAAPI_DISPLAY_CAST(display))
69 * GstVaapiDisplayPrivate:
71 * Base class for VA displays.
73 struct _GstVaapiDisplayPrivate {
74 GstVaapiDisplay *parent;
75 GStaticRecMutex mutex;
85 GArray *image_formats;
86 GArray *subpicture_formats;
87 guint create_display : 1;
90 GstVaapiDisplayCache *
91 gst_vaapi_display_get_cache(void);
95 #endif /* GST_VAAPI_DISPLAY_PRIV_H */