GstGLBaseFilter
GstGLBaseFilter handles the nitty gritty details of retrieving an OpenGL
context. It also provided some wrappers around GstBaseTransform's
start()
, stop()
and set_caps()
virtual methods that ensure an OpenGL
context is available and current in the calling thread.
GstGLBaseFilter
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseTransform ╰──GstGLBaseFilter ╰──GstGLFilter
The parent instance type of a base GStreamer GL Filter.
Members
parent
(GstBaseTransform)
–
display
(GstGLDisplay *)
–
the currently configured GstGLDisplay
context
(GstGLContext *)
–
the currently configured GstGLContext
Class structure
GstGLBaseFilterClass
The base class for GStreamer GL Filter.
Fields
parent_class
(GstBaseTransformClass)
–
GstGL.GLBaseFilterClass
The base class for GStreamer GL Filter.
Attributes
parent_class
(GstBase.BaseTransformClass)
–
supported_gl_api
(GstGL.GLAPI)
–
the logical-OR of GstGL.GLAPI's supported by this element
GstGL.GLBaseFilterClass
The base class for GStreamer GL Filter.
Attributes
parent_class
(GstBase.BaseTransformClass)
–
supported_gl_api
(GstGL.GLAPI)
–
the logical-OR of GstGL.GLAPI's supported by this element
GstGL.GLBaseFilter
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstBase.BaseTransform ╰──GstGL.GLBaseFilter ╰──GstGL.GLFilter
The parent instance type of a base GStreamer GL Filter.
Members
parent
(GstBase.BaseTransform)
–
display
(GstGL.GLDisplay)
–
the currently configured GstGL.GLDisplay
context
(GstGL.GLContext)
–
the currently configured GstGL.GLContext
GstGL.GLBaseFilter
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstBase.BaseTransform ╰──GstGL.GLBaseFilter ╰──GstGL.GLFilter
The parent instance type of a base GStreamer GL Filter.
Members
parent
(GstBase.BaseTransform)
–
display
(GstGL.GLDisplay)
–
the currently configured GstGL.GLDisplay
context
(GstGL.GLContext)
–
the currently configured GstGL.GLContext
Methods
gst_gl_base_filter_find_gl_context
gboolean gst_gl_base_filter_find_gl_context (GstGLBaseFilter * filter)
Parameters:
filter
–
Whether an OpenGL context could be retrieved or created successfully
Since : 1.16
GstGL.GLBaseFilter.prototype.find_gl_context
function GstGL.GLBaseFilter.prototype.find_gl_context(): {
// javascript wrapper for 'gst_gl_base_filter_find_gl_context'
}
Parameters:
Whether an OpenGL context could be retrieved or created successfully
Since : 1.16
GstGL.GLBaseFilter.find_gl_context
def GstGL.GLBaseFilter.find_gl_context (self):
#python wrapper for 'gst_gl_base_filter_find_gl_context'
Parameters:
Whether an OpenGL context could be retrieved or created successfully
Since : 1.16
gst_gl_base_filter_get_gl_context
GstGLContext * gst_gl_base_filter_get_gl_context (GstGLBaseFilter * filter)
Parameters:
filter
–
the GstGLContext found by filter
Since : 1.18
GstGL.GLBaseFilter.prototype.get_gl_context
function GstGL.GLBaseFilter.prototype.get_gl_context(): {
// javascript wrapper for 'gst_gl_base_filter_get_gl_context'
}
Parameters:
the GstGL.GLContext found by filter
Since : 1.18
GstGL.GLBaseFilter.get_gl_context
def GstGL.GLBaseFilter.get_gl_context (self):
#python wrapper for 'gst_gl_base_filter_get_gl_context'
Parameters:
the GstGL.GLContext found by filter
Since : 1.18
Properties
Virtual Methods
gl_set_caps
gboolean gl_set_caps (GstGLBaseFilter * filter, GstCaps * incaps, GstCaps * outcaps)
called in the GL thread when caps are set on filter. Note: this will also be called when changing OpenGL contexts where GstBaseTransform::set_caps may not.
Parameters:
filter
–
incaps
–
outcaps
–
vfunc_gl_set_caps
function vfunc_gl_set_caps(filter: GstGL.GLBaseFilter, incaps: Gst.Caps, outcaps: Gst.Caps): {
// javascript implementation of the 'gl_set_caps' virtual method
}
called in the GL thread when caps are set on filter. Note: this will also be called when changing OpenGL contexts where GstBaseTransform::set_caps may not.
Parameters:
do_gl_set_caps
def do_gl_set_caps (filter, incaps, outcaps):
#python implementation of the 'gl_set_caps' virtual method
called in the GL thread when caps are set on filter. Note: this will also be called when changing OpenGL contexts where GstBaseTransform::set_caps may not.
Parameters:
gl_start
gboolean gl_start (GstGLBaseFilter * filter)
called in the GL thread to setup the element GL state.
Parameters:
filter
–
vfunc_gl_start
function vfunc_gl_start(filter: GstGL.GLBaseFilter): {
// javascript implementation of the 'gl_start' virtual method
}
called in the GL thread to setup the element GL state.
Parameters:
do_gl_start
def do_gl_start (filter):
#python implementation of the 'gl_start' virtual method
called in the GL thread to setup the element GL state.
Parameters:
gl_stop
gl_stop (GstGLBaseFilter * filter)
called in the GL thread to setup the element GL state.
Parameters:
filter
–
vfunc_gl_stop
function vfunc_gl_stop(filter: GstGL.GLBaseFilter): {
// javascript implementation of the 'gl_stop' virtual method
}
called in the GL thread to setup the element GL state.
Parameters:
do_gl_stop
def do_gl_stop (filter):
#python implementation of the 'gl_stop' virtual method
called in the GL thread to setup the element GL state.
Parameters:
The results of the search are