GstBase.AggregatorClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
aggregate |
r |
Mandatory. Called when buffers are queued on all sinkpads. Classes should iterate the |
|
clip |
r |
Optional. Called when a buffer is received on a sink pad, the task of clipping it and translating it to the current segment falls on the subclass. The function should use the segment of data and the negotiated media type on the pad to perform clipping of input buffer. This function takes ownership of buf and should output a buffer or return |
|
create_new_pad |
r |
Optional. Called when a new pad needs to be created. Allows subclass that don’t have a single sink pad template to provide a pad based on the provided information. |
|
decide_allocation |
r |
Optional. Allows the subclass to influence the allocation choices. Setup the allocation parameters for allocating output buffers. The passed in query contains the result of the downstream allocation query. |
|
finish_buffer |
r |
Optional. Called when a subclass calls |
|
finish_buffer_list |
r |
||
fixate_src_caps |
r |
Optional. Fixate and return the src pad caps provided. The function takes ownership of caps and returns a fixated version of caps. caps is not guaranteed to be writable. |
|
flush |
r |
Optional. Called after a successful flushing seek, once all the flush stops have been received. Flush pad-specific data in |
|
get_next_time |
r |
Optional. Called when the element needs to know the running time of the next rendered buffer for live pipelines. This causes deadline based aggregation to occur. Defaults to returning |
|
negotiate |
r |
Optional. Negotiate the caps with the peer |
|
negotiated_src_caps |
r |
Optional. Notifies subclasses what caps format has been negotiated |
|
parent_class |
r |
||
peek_next_sample |
r |
||
propose_allocation |
r |
Optional. Allows the subclass to handle the allocation query from upstream. |
|
sink_event |
r |
Optional. Called when an event is received on a sink pad, the subclass should always chain up. |
|
sink_event_pre_queue |
r |
Optional. Called when an event is received on a sink pad before queueing up serialized events. The subclass should always chain up |
|
sink_query |
r |
Optional. Called when a query is received on a sink pad, the subclass should always chain up. |
|
sink_query_pre_queue |
r |
Optional. Called when a query is received on a sink pad before queueing up serialized queries. The subclass should always chain up |
|
src_activate |
r |
Optional. Called when the src pad is activated, it will start/stop its pad task right after that call. |
|
src_event |
r |
Optional. Called when an event is received on the src pad, the subclass should always chain up. |
|
src_query |
r |
Optional. Called when a query is received on the src pad, the subclass should always chain up. |
|
start |
r |
Optional. Called when the element goes from READY to PAUSED. The subclass should get ready to process aggregated buffers. |
|
stop |
r |
Optional. Called when the element goes from PAUSED to READY. The subclass should free all resources and reset its state. |
|
update_src_caps |
r |
Lets subclasses update the |
Methods¶
None
Details¶
- class GstBase.AggregatorClass¶
The aggregator base class will handle in a thread-safe way all manners of concurrent flushes, seeks, pad additions and removals, leaving to the subclass the responsibility of clipping buffers, and aggregating buffers in the way the implementor sees fit.
It will also take care of event ordering (stream-start, segment, eos).
Basically, a simple implementation will override aggregate, and call _finish_buffer from inside that function.
New in version 1.14.