Trait gstreamer_audio::prelude::AudioDecoderExt [−][src]
pub trait AudioDecoderExt: 'static {}Show methods
fn allocate_output_buffer(&self, size: usize) -> Result<Buffer, BoolError>; fn audio_info(&self) -> Option<AudioInfo>; fn delay(&self) -> i32; fn is_drainable(&self) -> bool; fn estimate_rate(&self) -> i32; fn latency(&self) -> (ClockTime, Option<ClockTime>); fn max_errors(&self) -> i32; fn min_latency(&self) -> ClockTime; fn needs_format(&self) -> bool; fn parse_state(&self) -> (bool, bool); fn is_plc(&self) -> bool; fn plc_aware(&self) -> i32; fn tolerance(&self) -> ClockTime; fn merge_tags(&self, tags: Option<&TagList>, mode: TagMergeMode); fn proxy_getcaps(&self, caps: Option<&Caps>, filter: Option<&Caps>) -> Caps; fn set_allocation_caps(&self, allocation_caps: Option<&Caps>); fn set_drainable(&self, enabled: bool); fn set_estimate_rate(&self, enabled: bool); fn set_latency(&self, min: ClockTime, max: impl Into<Option<ClockTime>>); fn set_max_errors(&self, num: i32); fn set_min_latency(&self, num: ClockTime); fn set_needs_format(&self, enabled: bool); fn set_plc(&self, enabled: bool); fn set_plc_aware(&self, plc: bool); fn set_tolerance(&self, tolerance: ClockTime); fn set_use_default_pad_acceptcaps(&self, use_: bool); fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId;
Expand description
Required methods
fn is_drainable(&self) -> bool
[src]
fn is_drainable(&self) -> bool
[src]fn estimate_rate(&self) -> i32
[src]
fn estimate_rate(&self) -> i32
[src]Returns
currently configured byte to time conversion setting
fn max_errors(&self) -> i32
[src]
fn max_errors(&self) -> i32
[src]Returns
currently configured decoder tolerated error count.
fn min_latency(&self) -> ClockTime
[src]
fn min_latency(&self) -> ClockTime
[src]fn needs_format(&self) -> bool
[src]
fn needs_format(&self) -> bool
[src]Queries decoder required format handling.
Returns
TRUE if required format handling is enabled.
MT safe.
Queries decoder packet loss concealment handling.
Returns
TRUE if packet loss concealment is enabled.
MT safe.
Queries current audio jitter tolerance threshold.
Returns
decoder audio jitter tolerance threshold.
MT safe.
Sets the audio decoder tags and how they should be merged with any
upstream stream tags. This will override any tags previously-set
with merge_tags()
.
Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own.
tags
a gst::TagList
to merge, or NULL
mode
the gst::TagMergeMode
to use, usually gst::TagMergeMode::Replace
fn set_allocation_caps(&self, allocation_caps: Option<&Caps>)
[src]
fn set_allocation_caps(&self, allocation_caps: Option<&Caps>)
[src]v1_10
only.Sets a caps in allocation query which are different from the set
pad’s caps. Use this function before calling
AudioDecoderExtManual::negotiate()
. Setting to None
the allocation
query will use the caps from the pad.
allocation_caps
fn set_drainable(&self, enabled: bool)
[src]
fn set_drainable(&self, enabled: bool)
[src]Configures decoder drain handling. If drainable, subclass might be handed a NULL buffer to have it return any leftover decoded data. Otherwise, it is not considered so capable and will only ever be passed real data.
MT safe.
enabled
new state
fn set_estimate_rate(&self, enabled: bool)
[src]
fn set_estimate_rate(&self, enabled: bool)
[src]Allows baseclass to perform byte to time estimated conversion.
enabled
whether to enable byte to time conversion
fn set_max_errors(&self, num: i32)
[src]fn set_min_latency(&self, num: ClockTime)
[src]fn set_needs_format(&self, enabled: bool)
[src]fn set_plc_aware(&self, plc: bool)
[src]fn set_tolerance(&self, tolerance: ClockTime)
[src]fn set_use_default_pad_acceptcaps(&self, use_: bool)
[src]fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]v1_18
only.fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_plc_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]Implementors
v1_10
only.fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_max_errors_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]v1_18
only.fn connect_min_latency_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]fn connect_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]