3 * Copyright (C) 2012 Matthew Waters <ystreet00@gmail.com>
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.
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.
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.
21 #ifndef __GST_GL_WINDOW_COCOA_H__
22 #define __GST_GL_WINDOW_COCOA_H__
26 #include <gst/gl/gl.h>
30 #define GST_GL_TYPE_WINDOW_COCOA (gst_gl_window_cocoa_get_type())
31 #define GST_GL_WINDOW_COCOA(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_GL_TYPE_WINDOW_COCOA, GstGLWindowCocoa))
32 #define GST_GL_WINDOW_COCOA_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_GL_TYPE_WINDOW_COCOA, GstGLWindowCocoaClass))
33 #define GST_GL_IS_WINDOW_COCOA(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_GL_TYPE_WINDOW_COCOA))
34 #define GST_GL_IS_WINDOW_COCOA_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_GL_TYPE_WINDOW_COCOA))
35 #define GST_GL_WINDOW_COCOA_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_GL_TYPE_WINDOW_COCOA, GstGLWindowCocoaClass))
37 typedef struct _GstGLWindowCocoa GstGLWindowCocoa;
38 typedef struct _GstGLWindowCocoaPrivate GstGLWindowCocoaPrivate;
39 typedef struct _GstGLWindowCocoaClass GstGLWindowCocoaClass;
41 struct _GstGLWindowCocoa {
46 GstGLWindowCocoaPrivate *priv;
48 gpointer _reserved[GST_PADDING];
51 struct _GstGLWindowCocoaClass {
53 GstGLWindowClass parent_class;
56 gpointer _reserved[GST_PADDING_LARGE];
59 GType gst_gl_window_cocoa_get_type (void);
61 GstGLWindowCocoa * gst_gl_window_cocoa_new (void);
63 void gst_gl_window_cocoa_draw_thread (GstGLWindowCocoa *window_cocoa);
68 #endif /* __GST_GL_WINDOW_COCOA_H__ */