vaapisink: Expose the overlay capability for compatibility with dvbsuboverlay.
[platform/upstream/gstreamer.git] / gst / vaapi / gstvaapivideocontext.h
1 /*
2  *  gstvaapivideocontext.h - GStreamer/VA video context
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2011-2013 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *  Copyright (C) 2013 Igalia
9  *    Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
10  *
11  *  This library is free software; you can redistribute it and/or
12  *  modify it under the terms of the GNU Lesser General Public License
13  *  as published by the Free Software Foundation; either version 2.1
14  *  of the License, or (at your option) any later version.
15  *
16  *  This library is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  *  Lesser General Public License for more details.
20  *
21  *  You should have received a copy of the GNU Lesser General Public
22  *  License along with this library; if not, write to the Free
23  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24  *  Boston, MA 02110-1301 USA
25  */
26
27 #ifndef GST_VAAPI_VIDEO_CONTEXT_H
28 #define GST_VAAPI_VIDEO_CONTEXT_H
29
30 #include <gst/vaapi/gstvaapidisplay.h>
31
32 #define GST_VAAPI_DISPLAY_CONTEXT_TYPE_NAME "gst.vaapi.Display"
33
34 G_GNUC_INTERNAL
35 GstContext *
36 gst_vaapi_video_context_new_with_display (GstVaapiDisplay * display,
37     gboolean persistent);
38
39 G_GNUC_INTERNAL
40 gboolean
41 gst_vaapi_video_context_get_display (GstContext * context,
42     GstVaapiDisplay ** display_ptr);
43
44 G_GNUC_INTERNAL
45 void
46 gst_vaapi_video_context_prepare (GstElement * element, const gchar ** types);
47
48 G_GNUC_INTERNAL
49 void
50 gst_vaapi_video_context_propagate (GstElement * element,
51     GstVaapiDisplay * display);
52
53 #endif /* GST_VAAPI_VIDEO_CONTEXT_H */