Trait gstreamer_audio::prelude::AudioDecoderExt
source · pub trait AudioDecoderExt:
IsA<AudioDecoder>
+ Sealed
+ 'static {
Show 30 methods
// Provided methods
fn allocate_output_buffer(&self, size: usize) -> Buffer { ... }
fn finish_frame(
&self,
buf: Option<Buffer>,
frames: i32,
) -> Result<FlowSuccess, FlowError> { ... }
fn audio_info(&self) -> 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_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 { ... }
}
Provided Methods§
fn allocate_output_buffer(&self, size: usize) -> Buffer
fn finish_frame( &self, buf: Option<Buffer>, frames: i32, ) -> Result<FlowSuccess, FlowError>
fn audio_info(&self) -> 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 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_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
Object Safety§
This trait is not object safe.