GstBase.BaseSinkClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
activate_pull |
r |
Subclasses should override this when they can provide an alternate method of spawning a thread to drive the pipeline in pull mode. Should start or stop the pulling thread, depending on the value of the “active” argument. Called after actually activating the sink pad in pull mode. The default implementation starts a task on the sink pad. |
|
event |
r |
Override this to handle events arriving on the sink pad |
|
fixate |
r |
Only useful in pull mode. Implement if you have ideas about what should be the default values for the caps you support. |
|
get_caps |
r |
Called to get sink pad caps from the subclass |
|
get_times |
r |
Called to get the start and end times for synchronising the passed buffer to the clock |
|
parent_class |
r |
Element parent class |
|
prepare |
r |
Called to prepare the buffer for render and preroll. This function is called before synchronisation is performed. |
|
prepare_list |
r |
Called to prepare the buffer list for render_list. This function is called before synchronisation is performed. |
|
preroll |
r |
Called to present the preroll buffer if desired. |
|
propose_allocation |
r |
configure the allocation query |
|
query |
r |
perform a |
|
render |
r |
Called when a buffer should be presented or output, at the correct moment if the |
|
render_list |
r |
Same as render but used with buffer lists instead of buffers. |
|
set_caps |
r |
Notify subclass of changed caps |
|
start |
r |
Start processing. Ideal for opening resources in the subclass |
|
stop |
r |
Stop processing. Subclasses should use this to close resources. |
|
unlock |
r |
Unlock any pending access to the resource. Subclasses should unblock any blocked function ASAP and call |
|
unlock_stop |
r |
Clear the previous unlock request. Subclasses should clear any state they set during #GstBaseSinkClass::unlock, and be ready to continue where they left off after |
|
wait_event |
r |
Override this to implement custom logic to wait for the event time (for events like EOS and GAP). Subclasses should always first chain up to the default implementation. |
Methods¶
None
Details¶
- class GstBase.BaseSinkClass¶
Subclasses can override any of the available virtual methods or not, as needed. At the minimum, the render method should be overridden to output/present buffers.