Lets #GstBaseTransform sub-classes know the memory allocator used by the base class and its params.
See if trans is configured as a in_place transform.
See if trans is configured as a passthrough transform.
Queries if the transform will handle QoS.
Negotiates src pad caps with downstream elements if the source pad is marked as needing reconfiguring. Unmarks GST_PAD_FLAG_NEED_RECONFIGURE in any case. But marks it again if negotiation fails.
Instructs trans to request renegotiation upstream. This function is typically called after properties on the transform were set that influence the input format.
Instructs trans to renegotiate a new downstream transform on the next buffer. This function is typically called after properties on the transform were set that influence the output format.
If gap_aware is false (the default), output buffers will have the gst.types.BufferFlags.Gap flag unset.
Determines whether a non-writable buffer will be copied before passing to the transform_ip function.
Set passthrough mode for this filter by default. This is mostly useful for filters that do not care about negotiation.
If prefer_passthrough is true (the default), trans will check and prefer passthrough caps from the list of caps returned by the transform_caps vmethod.
Enable or disable QoS handling in the transform.
Set the QoS parameters in the transform. This function is called internally when a QOS event is received but subclasses can provide custom information when needed.
Updates the srcpad caps and sends the caps downstream. This function can be used by subclasses when they have already negotiated their caps but found a change in them (or computed new information). This way, they can notify downstream about that change without losing any buffer.
#GstAudioFilter is a #GstBaseTransform<!-- -->-derived base class for simple audio filters, ie. those that output the same format that they get as input.
#GstAudioFilter will parse the input format for you (with error checking) before calling your setup function. Also, elements deriving from #GstAudioFilter may use gstaudio.audio_filter_class.AudioFilterClass.addPadTemplates from their class_init function to easily configure the set of caps/formats that the element is able to handle.
Derived classes should override the #GstAudioFilterClass.setup() and #GstBaseTransformClass.transform_ip() and/or #GstBaseTransformClass.transform() virtual functions in their class_init function.