GstGL.GLUpload

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstGL.GLUpload GstGL.GLUpload Gst.Object->GstGL.GLUpload

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_input_template_caps ()

class

new (context)

fixate_caps (direction, caps, othercaps)

get_caps ()

perform_with_buffer (buffer)

propose_allocation (decide_query, query)

set_caps (in_caps, out_caps)

set_context (context)

transform_caps (context, direction, caps, filter)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

context

GstGL.GLContext

r

parent

Gst.Object

r

Class Details

class GstGL.GLUpload(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

GstGL.GLUploadClass

GstGL.GLUpload is an object that uploads data from system memory into GL textures.

A GstGL.GLUpload can be created with GstGL.GLUpload.new()

classmethod get_input_template_caps()[source]
Return type:

Gst.Caps

classmethod new(context)[source]
Parameters:

context (GstGL.GLContext) – a GstGL.GLContext

Returns:

a new GstGL.GLUpload object

Return type:

GstGL.GLUpload

fixate_caps(direction, caps, othercaps)[source]
Parameters:
Returns:

the fixated caps

Return type:

Gst.Caps

Fixate the othercaps based on the information of the caps.

New in version 1.24.

get_caps()[source]
Returns:

in_caps:

the input Gst.Caps

out_caps:

the output Gst.Caps

Return type:

(in_caps: Gst.Caps, out_caps: Gst.Caps)

perform_with_buffer(buffer)[source]
Parameters:

buffer (Gst.Buffer) – input Gst.Buffer

Returns:

whether the upload was successful

outbuf_ptr:

resulting Gst.Buffer

Return type:

(GstGL.GLUploadReturn, outbuf_ptr: Gst.Buffer)

Uploads buffer using the transformation specified by GstGL.GLUpload.set_caps() creating a new Gst.Buffer in outbuf_ptr.

propose_allocation(decide_query, query)[source]
Parameters:

Adds the required allocation parameters to support uploading.

set_caps(in_caps, out_caps)[source]
Parameters:
Returns:

whether in_caps and out_caps could be set on self

Return type:

bool

Initializes self with the information required for upload.

set_context(context)[source]
Parameters:

context (GstGL.GLContext) –

transform_caps(context, direction, caps, filter)[source]
Parameters:
Return type:

Gst.Caps