Top |
Functions
Functions
gst_gl_handle_set_context ()
gboolean gst_gl_handle_set_context (GstElement *element
,GstContext *context
,GstGLDisplay **display
,GstGLContext **other_context
);
Helper function for implementing GstElement::set_context()
in OpenGL capable
elements.
Retrieve's the GstGLDisplay or GstGLContext in context
and places the
result in display
or other_context
respectively.
Parameters
element |
||
context |
||
display |
location of a GstGLDisplay. |
[inout][transfer full] |
other_context |
location of a GstGLContext. |
[inout][transfer full] |
gst_gl_handle_context_query ()
gboolean gst_gl_handle_context_query (GstElement *element
,GstQuery *query
,GstGLDisplay *display
,GstGLContext *context
,GstGLContext *other_context
);
Parameters
element |
||
query |
a GstQuery of type |
|
display |
a GstGLDisplay. |
[transfer none][nullable] |
context |
a GstGLContext. |
[transfer none][nullable] |
other_context |
application provided GstGLContext. |
[transfer none][nullable] |
gst_gl_ensure_element_data ()
gboolean gst_gl_ensure_element_data (gpointer element
,GstGLDisplay **display_ptr
,GstGLContext **other_context_ptr
);
Perform the steps necessary for retrieving a GstGLDisplay and (optionally) an application provided GstGLContext from the surrounding elements or from the application using the GstContext mechanism.
If the contents of display_ptr
or other_context_ptr
are not NULL
, then no
GstContext query is necessary for GstGLDisplay or GstGLContext retrieval
or is performed.
This performs GstContext queries (if necessary) for a winsys display
connection with GST_GL_DISPLAY_CONTEXT_TYPE
, "gst.x11.display.handle", and
"GstWaylandDisplayHandleContextType" stopping after the first successful
retrieval.
This also performs a GstContext query (if necessary) for an optional application provided GstGLContext using the name "gst.gl.app_context". The returned GstGLContext will be shared with a GStreamer created OpenGL context.
Parameters
element |
the GstElement running the query |
|
display_ptr |
the resulting GstGLDisplay. |
[inout] |
other_context_ptr |
the resulting GstGLContext. |
[inout] |
gst_gl_query_local_gl_context ()
gboolean gst_gl_query_local_gl_context (GstElement *element
,GstPadDirection direction
,GstGLContext **context_ptr
);
Performs a GST_QUERY_CONTEXT query of type "gst.gl.local_context" on all
GstPads in element
of direction
for the local OpenGL context used by
GStreamer elements.
Parameters
element |
a GstElement to query from |
|
direction |
the GstPadDirection to query |
|
context_ptr |
location containing the current and/or resulting GstGLContext. |
[inout] |
gst_gl_get_plane_data_size ()
gsize gst_gl_get_plane_data_size (GstVideoInfo *info
,GstVideoAlignment *align
,guint plane
);
Retrieve the size in bytes of a video plane of data with a certain alignment
Parameters
info |
||
align |
a GstVideoAlignment or |
|
plane |
plane number in |
gst_gl_get_plane_start ()
gsize gst_gl_get_plane_start (GstVideoInfo *info
,GstVideoAlignment *valign
,guint plane
);
Parameters
info |
||
valign |
a GstVideoAlignment or |
|
plane |
plane number in |
gst_gl_value_get_texture_target_mask ()
GstGLTextureTarget
gst_gl_value_get_texture_target_mask (const GValue *value
);
See gst_gl_value_set_texture_target_from_mask()
for what entails a mask
gst_gl_value_set_texture_target ()
gboolean gst_gl_value_set_texture_target (GValue *value
,GstGLTextureTarget target
);
gst_gl_value_set_texture_target_from_mask ()
gboolean gst_gl_value_set_texture_target_from_mask (GValue *value
,GstGLTextureTarget target_mask
);
A mask is a bitwise OR of (1 << target) where target is a valid GstGLTextureTarget