GstGL.GLBaseFilter

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Element Gst.Element GstBase.BaseTransform GstBase.BaseTransform Gst.Element->GstBase.BaseTransform Gst.Object->Gst.Element GstGL.GLBaseFilter GstGL.GLBaseFilter GstBase.BaseTransform->GstGL.GLBaseFilter

Subclasses:

GstGL.GLFilter

Methods

Inherited:

GstBase.BaseTransform (15), Gst.Element (82), Gst.Object (27), GObject.Object (37)

Structs:

Gst.ElementClass (10), GObject.ObjectClass (5)

find_gl_context ()

get_gl_context ()

Virtual Methods

Inherited:

GstBase.BaseTransform (22), Gst.Element (16), Gst.Object (1), GObject.Object (7)

do_gl_set_caps (incaps, outcaps)

do_gl_start ()

do_gl_stop ()

Properties

Inherited:

GstBase.BaseTransform (1), Gst.Object (2)

Name

Type

Flags

Short Description

context

GstGL.GLContext

r

Get OpenGL context

Signals

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

context

GstGL.GLContext

r

the currently configured GstGL.GLContext

display

GstGL.GLDisplay

r

the currently configured GstGL.GLDisplay

in_caps

Gst.Caps

r

the currently configured input Gst.Caps

out_caps

Gst.Caps

r

the currently configured output Gst.Caps

parent

GstBase.BaseTransform

r

Class Details

class GstGL.GLBaseFilter(**kwargs)
Bases:

GstBase.BaseTransform

Abstract:

No

Structure:

GstGL.GLBaseFilterClass

GstGL.GLBaseFilter handles the nitty gritty details of retrieving an OpenGL context. It also provided some wrappers around GstBase.BaseTransform's start(), stop() and set_caps() virtual methods that ensure an OpenGL context is available and current in the calling thread.

find_gl_context()[source]
Returns:

Whether an OpenGL context could be retrieved or created successfully

Return type:

bool

New in version 1.16.

get_gl_context()[source]
Returns:

the GstGL.GLContext found by self

Return type:

GstGL.GLContext or None

New in version 1.18.

do_gl_set_caps(incaps, outcaps) virtual
Parameters:
Return type:

bool

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.

do_gl_start() virtual
Return type:

bool

called in the GL thread to setup the element GL state.

do_gl_stop() virtual

called in the GL thread to setup the element GL state.

Property Details

GstGL.GLBaseFilter.props.context
Name:

context

Type:

GstGL.GLContext

Default Value:

None

Flags:

READABLE

Get OpenGL context