1 | /* |
2 | * GStreamer |
3 | * Copyright (C) 2015 Matthew Waters <matthew@centricular.com> |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Library General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Library General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Library General Public |
16 | * License along with this library; if not, write to the |
17 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
18 | * Boston, MA 02110-1301, USA. |
19 | */ |
20 | |
21 | #ifndef __GTK_GST_SINK_PRIVATE_H__ |
22 | #define __GTK_GST_SINK_PRIVATE_H__ |
23 | |
24 | #include "gtkgstpaintableprivate.h" |
25 | |
26 | #include <gst/gst.h> |
27 | #define GST_USE_UNSTABLE_API |
28 | #include <gst/gl/gl.h> |
29 | #include <gst/video/gstvideosink.h> |
30 | #include <gst/video/video.h> |
31 | |
32 | #define GTK_TYPE_GST_SINK (gtk_gst_sink_get_type()) |
33 | #define GTK_GST_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GTK_TYPE_GST_SINK,GtkGstSink)) |
34 | #define GTK_GST_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GTK_TYPE_GST_SINK,GtkGstSinkClass)) |
35 | #define GTK_GST_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GST_SINK, GtkGstSinkClass)) |
36 | #define GST_IS_GTK_BASE_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GTK_TYPE_GST_SINK)) |
37 | #define GST_IS_GTK_BASE_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GTK_TYPE_GST_SINK)) |
38 | #define GTK_GST_SINK_CAST(obj) ((GtkGstSink*)(obj)) |
39 | |
40 | G_BEGIN_DECLS |
41 | |
42 | typedef struct _GtkGstSink GtkGstSink; |
43 | typedef struct _GtkGstSinkClass GtkGstSinkClass; |
44 | |
45 | struct _GtkGstSink |
46 | { |
47 | /* <private> */ |
48 | GstVideoSink parent; |
49 | |
50 | GstVideoInfo v_info; |
51 | GtkGstPaintable * paintable; |
52 | GdkGLContext * gdk_context; |
53 | GstGLDisplay * gst_display; |
54 | GstGLContext * gst_app_context; |
55 | GstGLContext * gst_context; |
56 | }; |
57 | |
58 | struct _GtkGstSinkClass |
59 | { |
60 | GstVideoSinkClass object_class; |
61 | }; |
62 | |
63 | GType gtk_gst_sink_get_type (void); |
64 | |
65 | G_END_DECLS |
66 | |
67 | #endif /* __GTK_GST_SINK_PRIVATE_H__ */ |
68 | |