mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
[857/906] display: document the new GstContext api
This commit is contained in:
parent
4cf2f4ded2
commit
4d30769b86
2 changed files with 27 additions and 2 deletions
|
@ -21,6 +21,17 @@
|
||||||
* Boston, MA 02110-1301, USA.
|
* Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SECTION:gstgldisplay
|
||||||
|
* @short_description: window system display connection abstraction
|
||||||
|
* @title: GstGLDisplay
|
||||||
|
* @see_also: #GstContext, #GstGLContext, #GstGLWindow
|
||||||
|
*
|
||||||
|
* #GstGLDisplay represents a connection to the underlying windowing system.
|
||||||
|
* Elements are required to make use of #GstContext to share and propogate
|
||||||
|
* a #GstGLDisplay.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -103,6 +114,13 @@ gst_gl_display_get_gl_api (GstGLDisplay * display)
|
||||||
return gst_gl_context_get_gl_api (display->context);
|
return gst_gl_context_get_gl_api (display->context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_context_set_gl_display:
|
||||||
|
* @context: a #GstContext
|
||||||
|
* @display: resulting #GstGLDisplay
|
||||||
|
*
|
||||||
|
* Sets @display on @context
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gst_context_set_gl_display (GstContext * context, GstGLDisplay * display)
|
gst_context_set_gl_display (GstContext * context, GstGLDisplay * display)
|
||||||
{
|
{
|
||||||
|
@ -118,6 +136,13 @@ gst_context_set_gl_display (GstContext * context, GstGLDisplay * display)
|
||||||
display, NULL);
|
display, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_context_get_gl_display:
|
||||||
|
* @context: a #GstContext
|
||||||
|
* @display: resulting #GstGLDisplay
|
||||||
|
*
|
||||||
|
* Returns: Whether @display was in @context
|
||||||
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_context_get_gl_display (GstContext * context, GstGLDisplay ** display)
|
gst_context_get_gl_display (GstContext * context, GstGLDisplay ** display)
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,14 +42,14 @@ GType gst_gl_display_get_type (void);
|
||||||
/**
|
/**
|
||||||
* GstGLDisplay:
|
* GstGLDisplay:
|
||||||
*
|
*
|
||||||
* the contents of a #GstGLDisplay are private and should only be accessed
|
* The contents of a #GstGLDisplay are private and should only be accessed
|
||||||
* through the provided API
|
* through the provided API
|
||||||
*/
|
*/
|
||||||
struct _GstGLDisplay
|
struct _GstGLDisplay
|
||||||
{
|
{
|
||||||
|
/* <private> */
|
||||||
GstObject object;
|
GstObject object;
|
||||||
|
|
||||||
/* <private> */
|
|
||||||
GstGLContext *context;
|
GstGLContext *context;
|
||||||
GstGLAPI gl_api;
|
GstGLAPI gl_api;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue