GstAudio.AudioDecoderClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
close |
r |
Optional. Called when the element changes to |
|
decide_allocation |
r |
Optional. Setup the allocation parameters for allocating output buffers. The passed in query contains the result of the downstream allocation query. Subclasses should chain up to the parent implementation to invoke the default handler. |
|
element_class |
r |
The parent class structure |
|
flush |
r |
Optional. Instructs subclass to clear any codec caches and discard any pending samples and not yet returned decoded data. hard indicates whether a FLUSH is being processed, or otherwise a DISCONT (or conceptually similar). |
|
getcaps |
r |
Optional. Allows for a custom sink getcaps implementation. If not implemented, default returns |
|
handle_frame |
r |
Provides input data (or |
|
negotiate |
r |
Optional. Negotiate with downstream and configure buffer pools, etc. Subclasses should chain up to the parent implementation to invoke the default handler. |
|
open |
r |
Optional. Called when the element changes to |
|
parse |
r |
Optional. Allows chopping incoming data into manageable units (frames) for subsequent decoding. This division is at subclass discretion and may or may not correspond to 1 (or more) frames as defined by audio format. |
|
pre_push |
r |
Optional. Called just prior to pushing (encoded data) buffer downstream. Subclass has full discretionary access to buffer, and a not OK flow return will abort downstream pushing. |
|
propose_allocation |
r |
Optional. Propose buffer allocation parameters for upstream elements. Subclasses should chain up to the parent implementation to invoke the default handler. |
|
set_format |
r |
Notifies subclass of incoming data format (caps). |
|
sink_event |
r |
Optional. Event handler on the sink pad. Subclasses should chain up to the parent implementation to invoke the default handler. |
|
sink_query |
r |
Optional. Query handler on the sink pad. This function should return |
|
src_event |
r |
Optional. Event handler on the src pad. Subclasses should chain up to the parent implementation to invoke the default handler. |
|
src_query |
r |
Optional. Query handler on the source pad. This function should return |
|
start |
r |
Optional. Called when the element starts processing. Allows opening external resources. |
|
stop |
r |
Optional. Called when the element stops processing. Allows closing external resources. |
|
transform_meta |
r |
Optional. Transform the metadata on the input buffer to the output buffer. By default this method copies all meta without tags and meta with only the “audio” tag. subclasses can implement this method and return |
Methods¶
None
Details¶
- class GstAudio.AudioDecoderClass¶
Subclasses can override any of the available virtual methods or not, as needed. At minimum handle_frame (and likely set_format) needs to be overridden.