Trait Audio Decoder ExtManual
Source pub trait AudioDecoderExtManual: IsA<AudioDecoder> + 'static {
// Provided methods
fn negotiate(&self) -> Result<(), FlowError> { ... }
fn set_output_caps(&self, caps: &Caps) -> Result<(), FlowError> { ... }
fn set_output_format(&self, info: &AudioInfo) -> Result<(), FlowError> { ... }
fn allocator(&self) -> (Option<Allocator>, AllocationParams) { ... }
fn error<T: MessageErrorDomain>(
&self,
weight: i32,
code: T,
message: Option<&str>,
debug: Option<&str>,
file: &str,
function: &str,
line: u32,
) -> Result<FlowSuccess, FlowError> { ... }
fn sink_pad(&self) -> &Pad { ... }
fn src_pad(&self) -> &Pad { ... }
fn input_segment(&self) -> Segment { ... }
fn output_segment(&self) -> Segment { ... }
}Provided Methods§
Sourcefn set_output_caps(&self, caps: &Caps) -> Result<(), FlowError>
fn set_output_caps(&self, caps: &Caps) -> Result<(), FlowError>
Configure output caps on the srcpad of self. Similar to
set_output_format(), but allows subclasses to specify
output caps that can’t be expressed via AudioInfo e.g. caps that have
caps features.
§caps
(fixed) [gst::Caps][crate::gst::Caps]
§Returns
true on success.
Sourcefn set_output_format(&self, info: &AudioInfo) -> Result<(), FlowError>
fn set_output_format(&self, info: &AudioInfo) -> Result<(), FlowError>
Sourcefn allocator(&self) -> (Option<Allocator>, AllocationParams)
fn allocator(&self) -> (Option<Allocator>, AllocationParams)
Lets AudioDecoder sub-classes to know the memory allocator
used by the base class and its params.
Unref the allocator after use it.
§Returns
§allocator
the [gst::Allocator][crate::gst::Allocator]
used
§params
the
[gst::AllocationParams][crate::gst::AllocationParams] of allocator
fn error<T: MessageErrorDomain>( &self, weight: i32, code: T, message: Option<&str>, debug: Option<&str>, file: &str, function: &str, line: u32, ) -> Result<FlowSuccess, FlowError>
fn sink_pad(&self) -> &Pad
fn src_pad(&self) -> &Pad
fn input_segment(&self) -> Segment
fn output_segment(&self) -> Segment
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.