GstGL.GLBaseSrc

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.BaseSrc GstBase.BaseSrc Gst.Element->GstBase.BaseSrc Gst.Object->Gst.Element GstBase.PushSrc GstBase.PushSrc GstBase.BaseSrc->GstBase.PushSrc GstGL.GLBaseSrc GstGL.GLBaseSrc GstBase.PushSrc->GstGL.GLBaseSrc

Subclasses:

None

Methods

Inherited:

GstBase.BaseSrc (23), Gst.Element (82), Gst.Object (27), GObject.Object (37)

Structs:

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

Virtual Methods

Inherited:

GstBase.PushSrc (3), GstBase.BaseSrc (19), Gst.Element (16), Gst.Object (1), GObject.Object (7)

do_fill_gl_memory (mem)

do_gl_start ()

do_gl_stop ()

Properties

Inherited:

GstBase.BaseSrc (5), Gst.Object (2)

Name

Type

Flags

Short Description

timestamp-offset

int

r/w

An offset added to timestamps set on buffers (in ns)

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

out_caps

Gst.Caps

r

the currently configured output Gst.Caps

out_info

GstVideo.VideoInfo

r

the currently configured output GstVideo.VideoInfo

parent

GstBase.PushSrc

r

running_time

int

r

the total running time

Class Details

class GstGL.GLBaseSrc(**kwargs)
Bases:

GstBase.PushSrc

Abstract:

Yes

Structure:

GstGL.GLBaseSrcClass

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

New in version 1.18.

do_fill_gl_memory(mem) virtual
Parameters:

mem (GstGL.GLMemory) –

Return type:

bool

called in the GL thread to fill the current video texture.

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.GLBaseSrc.props.timestamp_offset
Name:

timestamp-offset

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

An offset added to timestamps set on buffers (in ns)