GstGLContext: GStreamer Bad Plugins 1.0 Library Reference Manual

## GstGLContext GstGLContext |

## Functions

GQuark | gst_gl_context_error_quark ()
void | (*GstGLContextThreadFunc) ()
GstGLContext * | gst_gl_context_new ()
GstGLContext * | gst_gl_context_new_wrapped ()
gboolean | gst_gl_context_create ()
void | gst_gl_context_destroy ()
gboolean | gst_gl_context_activate ()
gpointer | gst_gl_context_default_get_proc_address ()
gpointer | gst_gl_context_get_proc_address ()
gpointer | gst_gl_context_get_proc_address_with_platform ()
GstGLWindow * | gst_gl_context_get_window ()
gboolean | gst_gl_context_set_window ()
void | gst_gl_context_thread_add ()
GstGLDisplay * | gst_gl_context_get_display ()
GstGLAPI | gst_gl_context_get_gl_api ()
guintptr | gst_gl_context_get_gl_context ()
GstGLPlatform | gst_gl_context_get_gl_platform ()
guintptr | gst_gl_context_get_current_gl_context ()
GstGLAPI | gst_gl_context_get_current_gl_api ()
GThread * | gst_gl_context_get_thread ()
gboolean | gst_gl_context_can_share ()
gboolean | gst_gl_context_is_shared ()
void | gst_gl_context_set_shared_with ()
gboolean | gst_gl_context_check_feature ()
gboolean | gst_gl_context_check_gl_version ()
void | gst_gl_context_get_gl_version ()
gboolean | gst_gl_context_fill_info ()
GstGLContext * | gst_gl_context_get_current ()

## Types and Values

#define | GST_GL_CONTEXT_ERROR
enum | GstGLContextError
| GstGLContext

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── GstObject
                ╰── GstGLContext

## Description

## Functions

### gst_gl_context_error_quark ()

    GQuark
    gst_gl_context_error_quark (void);

### GstGLContextThreadFunc ()

    void
    (*GstGLContextThreadFunc) (GstGLContext *context,
                               gpointer data);

### gst_gl_context_new ()

    GstGLContext *
    gst_gl_context_new (GstGLDisplay *display);

### gst_gl_context_new_wrapped ()

    GstGLContext *
    gst_gl_context_new_wrapped (GstGLDisplay *display,
                                guintptr handle,
                                GstGLPlatform context_type,
                                GstGLAPI available_apis);

### gst_gl_context_create ()

    gboolean
    gst_gl_context_create (GstGLContext *context,
                           GstGLContext *other_context,
                           GError **error);

### gst_gl_context_destroy ()

    void
    gst_gl_context_destroy (GstGLContext *context);

### gst_gl_context_activate ()

    gboolean
    gst_gl_context_activate (GstGLContext *context,
                             gboolean activate);

### gst_gl_context_default_get_proc_address ()

    gpointer
    gst_gl_context_default_get_proc_address
                                   (GstGLAPI gl_api,
                                    const gchar *name);

### gst_gl_context_get_proc_address ()

    gpointer
    gst_gl_context_get_proc_address (GstGLContext *context,
                                     const gchar *name);

### gst_gl_context_get_proc_address_with_platform ()

    gpointer
    gst_gl_context_get_proc_address_with_platform
                                   (GstGLPlatform context_type,
                                    GstGLAPI gl_api,
                                    const gchar *name);

### gst_gl_context_get_window ()

    GstGLWindow *
    gst_gl_context_get_window (GstGLContext *context);

### gst_gl_context_set_window ()

    gboolean
    gst_gl_context_set_window (GstGLContext *context,
                               GstGLWindow *window);

### gst_gl_context_thread_add ()

    void
    gst_gl_context_thread_add (GstGLContext *context,
                               GstGLContextThreadFunc func,
                               gpointer data);

### gst_gl_context_get_display ()

    GstGLDisplay *
    gst_gl_context_get_display (GstGLContext *context);

### gst_gl_context_get_gl_api ()

    GstGLAPI
    gst_gl_context_get_gl_api (GstGLContext *context);

### gst_gl_context_get_gl_context ()

    guintptr
    gst_gl_context_get_gl_context (GstGLContext *context);

### gst_gl_context_get_gl_platform ()

    GstGLPlatform
    gst_gl_context_get_gl_platform (GstGLContext *context);

### gst_gl_context_get_current_gl_context ()

    guintptr
    gst_gl_context_get_current_gl_context (GstGLPlatform context_type);

### gst_gl_context_get_current_gl_api ()

    GstGLAPI
    gst_gl_context_get_current_gl_api (GstGLPlatform platform,
                                       guint *major,
                                       guint *minor);

### gst_gl_context_get_thread ()

    GThread *
    gst_gl_context_get_thread (GstGLContext *context);

### gst_gl_context_can_share ()

    gboolean
    gst_gl_context_can_share (GstGLContext *context,
                              GstGLContext *other_context);

### gst_gl_context_is_shared ()

    gboolean
    gst_gl_context_is_shared (GstGLContext *context);

### gst_gl_context_set_shared_with ()

    void
    gst_gl_context_set_shared_with (GstGLContext *context,
                                    GstGLContext *share);

### gst_gl_context_check_feature ()

    gboolean
    gst_gl_context_check_feature (GstGLContext *context,
                                  const gchar *feature);

### gst_gl_context_check_gl_version ()

    gboolean
    gst_gl_context_check_gl_version (GstGLContext *context,
                                     GstGLAPI api,
                                     gint maj,
                                     gint min);

### gst_gl_context_get_gl_version ()

    void
    gst_gl_context_get_gl_version (GstGLContext *context,
                                   gint *maj,
                                   gint *min);

### gst_gl_context_fill_info ()

    gboolean
    gst_gl_context_fill_info (GstGLContext *context,
                              GError **error);

### gst_gl_context_get_current ()

    GstGLContext *
    gst_gl_context_get_current (void);

## Types and Values

### GST_GL_CONTEXT_ERROR

    #define GST_GL_CONTEXT_ERROR (gst_gl_context_error_quark ())

### enum GstGLContextError

#### Members

GST_GL_CONTEXT_ERROR_FAILED |  |
GST_GL_CONTEXT_ERROR_WRONG_CONFIG |  |
GST_GL_CONTEXT_ERROR_WRONG_API |  |
GST_GL_CONTEXT_ERROR_OLD_LIBS |  |
GST_GL_CONTEXT_ERROR_CREATE_CONTEXT |  |
GST_GL_CONTEXT_ERROR_RESOURCE_UNAVAILABLE |  |

### GstGLContext

    typedef struct _GstGLContext GstGLContext;