|
Packit |
971217 |
/*
|
|
Packit |
971217 |
* GStreamer
|
|
Packit |
971217 |
* Copyright (C) 2014 Sebastian Dröge <sebastian@centricular.com>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_GL_CONTEXT_EAGL_H__
|
|
Packit |
971217 |
#define __GST_GL_CONTEXT_EAGL_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
#include <gst/gl/gl.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_GL_CONTEXT_EAGL (gst_gl_context_eagl_get_type())
|
|
Packit |
971217 |
#define GST_GL_CONTEXT_EAGL(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GST_TYPE_GL_CONTEXT_EAGL, GstGLContextEagl))
|
|
Packit |
971217 |
#define GST_GL_CONTEXT_EAGL_CLASS(k) (G_TYPE_CHECK_CLASS((k), GST_TYPE_GL_CONTEXT_EAGL, GstGLContextEaglClass))
|
|
Packit |
971217 |
#define GST_IS_GL_CONTEXT_EAGL(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GST_TYPE_GL_CONTEXT_EAGL))
|
|
Packit |
971217 |
#define GST_IS_GL_CONTEXT_EAGL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), GST_TYPE_GL_CONTEXT_EAGL))
|
|
Packit |
971217 |
#define GST_GL_CONTEXT_EAGL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GST_TYPE_GL_CONTEXT_EAGL, GstGLContextEaglClass))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GS_GL_CONTEXT_EAGL_CONTEXT(obj) \
|
|
Packit |
971217 |
((__bridge EAGLContext *)(obj->priv->eagl_context))
|
|
Packit |
971217 |
#define GS_GL_CONTEXT_EAGL_LAYER(obj) \
|
|
Packit |
971217 |
((__bridge CAEAGLLayer *)(obj->priv->eagl_layer))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstGLContextEagl GstGLContextEagl;
|
|
Packit |
971217 |
typedef struct _GstGLContextEaglPrivate GstGLContextEaglPrivate;
|
|
Packit |
971217 |
typedef struct _GstGLContextEaglClass GstGLContextEaglClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstGLContextEagl {
|
|
Packit |
971217 |
/*< private >*/
|
|
Packit |
971217 |
GstGLContext parent;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/*< private >*/
|
|
Packit |
971217 |
GstGLContextEaglPrivate *priv;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gpointer _reserved[GST_PADDING];
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstGLContextEaglClass {
|
|
Packit |
971217 |
/*< private >*/
|
|
Packit |
971217 |
GstGLContextClass parent_class;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/*< private >*/
|
|
Packit |
971217 |
gpointer _reserved[GST_PADDING_LARGE];
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_gl_context_eagl_get_type (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstGLContextEagl * gst_gl_context_eagl_new (GstGLDisplay * display);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
void gst_gl_context_eagl_update_layer (GstGLContext * context);
|
|
Packit |
971217 |
void gst_gl_context_eagl_resize (GstGLContextEagl * eagl_context);
|
|
Packit |
971217 |
void gst_gl_context_eagl_prepare_draw (GstGLContextEagl * context);
|
|
Packit |
971217 |
void gst_gl_context_eagl_finish_draw (GstGLContextEagl * context);
|
|
Packit |
971217 |
guintptr gst_gl_context_eagl_get_current_context (void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_GL_CONTEXT_EAGL_H__ */
|