AudioFilter

#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.

class AudioFilter : BaseTransform {}

Inherited Members

From BaseTransform

getAllocator
void getAllocator(gst.allocator.Allocator allocator, gst.allocation_params.AllocationParams params)

Lets #GstBaseTransform sub-classes know the memory allocator used by the base class and its params.

getBufferPool
gst.buffer_pool.BufferPool getBufferPool()
isInPlace
bool isInPlace()

See if trans is configured as a in_place transform.

isPassthrough
bool isPassthrough()

See if trans is configured as a passthrough transform.

isQosEnabled
bool isQosEnabled()

Queries if the transform will handle QoS.

reconfigure
bool reconfigure()

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.

reconfigureSink
void reconfigureSink()

Instructs trans to request renegotiation upstream. This function is typically called after properties on the transform were set that influence the input format.

reconfigureSrc
void reconfigureSrc()

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.

setGapAware
void setGapAware(bool gapAware)

If gap_aware is false (the default), output buffers will have the gst.types.BufferFlags.Gap flag unset.

setInPlace
void setInPlace(bool inPlace)

Determines whether a non-writable buffer will be copied before passing to the transform_ip function.

setPassthrough
void setPassthrough(bool passthrough)

Set passthrough mode for this filter by default. This is mostly useful for filters that do not care about negotiation.

setPreferPassthrough
void setPreferPassthrough(bool preferPassthrough)

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.

setQosEnabled
void setQosEnabled(bool enabled)

Enable or disable QoS handling in the transform.

updateQos
void updateQos(double proportion, gst.types.ClockTimeDiff diff, gst.types.ClockTime timestamp)

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.

updateSrcCaps
bool updateSrcCaps(gst.caps.Caps updatedCaps)

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.