GstBase.PushSrc¶
- Subclasses:
None
Methods¶
- Inherited:
GstBase.BaseSrc (23), Gst.Element (82), Gst.Object (27), GObject.Object (37)
- Structs:
Virtual Methods¶
- Inherited:
GstBase.BaseSrc (19), Gst.Element (16), Gst.Object (1), GObject.Object (7)
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GstBase.PushSrc(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This class is mostly useful for elements that cannot do random access, or at least very slowly. The source usually prefers to push out a fixed size buffer.
Subclasses usually operate in a format that is different from the default
Gst.Format.BYTES
format ofGstBase.BaseSrc
.Classes extending this base class will usually be scheduled in a push based mode. If the peer accepts to operate without offsets and within the limits of the allowed block size, this class can operate in getrange based mode automatically. To make this possible, the subclass should implement and override the SCHEDULING query.
The subclass should extend the methods from the baseclass in addition to the
::create
method.Seeking, flushing, scheduling and sync is all handled by this base class.
- do_alloc() virtual¶
- Return type:
(
Gst.FlowReturn
, buf:Gst.Buffer
orNone
)
Allocate memory for a buffer.
- do_create(buf) virtual¶
- Parameters:
buf (
Gst.Buffer
orNone
) –- Return type:
(
Gst.FlowReturn
, buf:Gst.Buffer
orNone
)
Ask the subclass to create a buffer, the default implementation will call alloc if no allocated buf is provided and then call fill.
- do_fill(buf) virtual¶
- Parameters:
buf (
Gst.Buffer
) –- Return type:
Ask the subclass to fill the buffer with data.