GstGL.GLUpload¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
context |
r |
||
parent |
r |
Class Details¶
- class GstGL.GLUpload(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GstGL.GLUpload
is an object that uploads data from system memory into GL textures.A
GstGL.GLUpload
can be created withGstGL.GLUpload.new
()- classmethod new(context)[source]¶
- Parameters:
context (
GstGL.GLContext
) – aGstGL.GLContext
- Returns:
a new
GstGL.GLUpload
object- Return type:
- fixate_caps(direction, caps, othercaps)[source]¶
- Parameters:
direction (
Gst.PadDirection
) – the padGst.PadDirection
- Returns:
the fixated caps
- Return type:
Fixate the othercaps based on the information of the caps.
New in version 1.24.
- perform_with_buffer(buffer)[source]¶
- Parameters:
buffer (
Gst.Buffer
) – inputGst.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 newGst.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:
Initializes self with the information required for upload.
- set_context(context)[source]¶
- Parameters:
context (
GstGL.GLContext
) –
- transform_caps(context, direction, caps, filter)[source]¶
- Parameters:
context (
GstGL.GLContext
) –direction (
Gst.PadDirection
) –caps (
Gst.Caps
) –filter (
Gst.Caps
) –
- Return type: