Lines Matching refs:context_wgl

88 gst_gl_context_wgl_init (GstGLContextWGL * context_wgl)  in gst_gl_context_wgl_init()  argument
90 context_wgl->priv = gst_gl_context_wgl_get_instance_private (context_wgl); in gst_gl_context_wgl_init()
92 context_wgl->priv->context_api = GST_GL_API_OPENGL | GST_GL_API_OPENGL3; in gst_gl_context_wgl_init()
113 _create_context_with_flags (GstGLContextWGL * context_wgl, HDC dpy, in _create_context_with_flags() argument
144 context_wgl->priv->wglCreateContextAttribsARB (dpy, share_context, in _create_context_with_flags()
155 GstGLContextWGL *context_wgl; in gst_gl_context_wgl_create_context() local
160 context_wgl = GST_GL_CONTEXT_WGL (context); in gst_gl_context_wgl_create_context()
189 context_wgl->priv->wglCreateContextAttribsARB = in gst_gl_context_wgl_create_context()
197 if (context_wgl->priv->wglCreateContextAttribsARB != NULL in gst_gl_context_wgl_create_context()
217 context_wgl->wgl_context = _create_context_with_flags (context_wgl, in gst_gl_context_wgl_create_context()
221 if (context_wgl->wgl_context) { in gst_gl_context_wgl_create_context()
222 context_wgl->priv->context_api = GST_GL_API_OPENGL3; in gst_gl_context_wgl_create_context()
228 if (!context_wgl->wgl_context) { in gst_gl_context_wgl_create_context()
230 if (context_wgl->priv->wglCreateContextAttribsARB && external_gl_context) { in gst_gl_context_wgl_create_context()
231 context_wgl->wgl_context = in gst_gl_context_wgl_create_context()
232 context_wgl->priv->wglCreateContextAttribsARB (device, in gst_gl_context_wgl_create_context()
237 if (!context_wgl->wgl_context) { in gst_gl_context_wgl_create_context()
239 context_wgl->wgl_context = wglCreateContext (device); in gst_gl_context_wgl_create_context()
241 if (!context_wgl->wgl_context) { in gst_gl_context_wgl_create_context()
250 if (!wglShareLists (external_gl_context, context_wgl->wgl_context)) { in gst_gl_context_wgl_create_context()
260 context_wgl->priv->context_api = GST_GL_API_OPENGL; in gst_gl_context_wgl_create_context()
264 (guintptr) context_wgl->wgl_context); in gst_gl_context_wgl_create_context()
279 GstGLContextWGL *context_wgl; in gst_gl_context_wgl_destroy_context() local
281 context_wgl = GST_GL_CONTEXT_WGL (context); in gst_gl_context_wgl_destroy_context()
283 if (context_wgl->wgl_context) in gst_gl_context_wgl_destroy_context()
284 wglDeleteContext (context_wgl->wgl_context); in gst_gl_context_wgl_destroy_context()
285 context_wgl->wgl_context = NULL; in gst_gl_context_wgl_destroy_context()
365 GstGLContextWGL *context_wgl; in gst_gl_context_wgl_activate() local
370 context_wgl = GST_GL_CONTEXT_WGL (context); in gst_gl_context_wgl_activate()
374 result = wglMakeCurrent (device, context_wgl->wgl_context); in gst_gl_context_wgl_activate()
387 GstGLContextWGL *context_wgl = GST_GL_CONTEXT_WGL (context); in gst_gl_context_wgl_get_gl_api() local
389 return context_wgl->priv->context_api; in gst_gl_context_wgl_get_gl_api()