2 * gstvaapidisplay_drm_priv.h - Internal VA/DRM interface
4 * Copyright (C) 2012 Intel Corporation
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_DRM_PRIV_H
23 #define GST_VAAPI_DISPLAY_DRM_PRIV_H
25 #include <gst/vaapi/gstvaapidisplay_drm.h>
29 #define GST_VAAPI_DISPLAY_DRM_GET_PRIVATE(obj) \
30 (G_TYPE_INSTANCE_GET_PRIVATE((obj), \
31 GST_VAAPI_TYPE_DISPLAY_DRM, \
32 GstVaapiDisplayDRMPrivate))
34 #define GST_VAAPI_DISPLAY_DRM_CAST(display) ((GstVaapiDisplayDRM *)(display))
37 * GST_VAAPI_DISPLAY_DRM_DEVICE:
38 * @display: a #GstVaapiDisplay
40 * Macro that evaluates to the underlying DRM file descriptor of @display
42 #undef GST_VAAPI_DISPLAY_DRM_DEVICE
43 #define GST_VAAPI_DISPLAY_DRM_DEVICE(display) \
44 GST_VAAPI_DISPLAY_DRM_CAST(display)->priv->drm_device
46 struct _GstVaapiDisplayDRMPrivate {
47 gchar *device_path_default;
50 guint create_display : 1;
55 #endif /* GST_VAAPI_DISPLAY_DRM_PRIV_H */