GstBase.BaseSrcClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
alloc |
r |
Ask the subclass to allocate a buffer with for offset and size. The default implementation will create a new buffer from the negotiated allocator. |
|
create |
r |
Ask the subclass to create a buffer with offset and size. When the subclass returns |
|
decide_allocation |
r |
configure the allocation query |
|
do_seek |
r |
Perform seeking on the resource to the indicated segment. |
|
event |
r |
Override this to implement custom event handling. |
|
fill |
r |
Ask the subclass to fill the buffer with data for offset and size. The passed buffer is guaranteed to hold the requested amount of bytes. |
|
fixate |
r |
Called during negotiation if caps need fixating. Implement instead of setting a fixate function on the source pad. |
|
get_caps |
r |
Called to get the caps to report |
|
get_size |
r |
Return the total size of the resource, in the format set by |
|
get_times |
r |
Given a buffer, return the start and stop time when it should be pushed out. The base class will sync on the clock using these times. |
|
is_seekable |
r |
Check if the source can seek |
|
negotiate |
r |
Negotiated the caps with the peer. |
|
parent_class |
r |
Element parent class |
|
prepare_seek_segment |
r |
Prepare the |
|
query |
r |
Handle a requested query. |
|
set_caps |
r |
Notify subclass of changed output caps |
|
start |
r |
Start processing. Subclasses should open resources and prepare to produce data. Implementation should call |
|
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. In particular, any |
|
unlock_stop |
r |
Clear the previous unlock request. Subclasses should clear any state they set during #GstBaseSrcClass::unlock, such as clearing command queues. |
Methods¶
None
Details¶
- class GstBase.BaseSrcClass¶
Subclasses can override any of the available virtual methods or not, as needed. At the minimum, the create method should be overridden to produce buffers.