Trait gstreamer_audio::subclass::prelude::AudioEncoderImpl
source · pub trait AudioEncoderImpl: AudioEncoderImplExt + ElementImpl {
Show 16 methods
// Provided methods
fn open(&self) -> Result<(), ErrorMessage> { ... }
fn close(&self) -> Result<(), ErrorMessage> { ... }
fn start(&self) -> Result<(), ErrorMessage> { ... }
fn stop(&self) -> Result<(), ErrorMessage> { ... }
fn set_format(&self, info: &AudioInfo) -> Result<(), LoggableError> { ... }
fn handle_frame(
&self,
buffer: Option<&Buffer>,
) -> Result<FlowSuccess, FlowError> { ... }
fn pre_push(&self, buffer: Buffer) -> Result<Option<Buffer>, FlowError> { ... }
fn flush(&self) { ... }
fn negotiate(&self) -> Result<(), LoggableError> { ... }
fn caps(&self, filter: Option<&Caps>) -> Caps { ... }
fn sink_event(&self, event: Event) -> bool { ... }
fn sink_query(&self, query: &mut QueryRef) -> bool { ... }
fn src_event(&self, event: Event) -> bool { ... }
fn src_query(&self, query: &mut QueryRef) -> bool { ... }
fn propose_allocation(
&self,
query: &mut Allocation,
) -> Result<(), LoggableError> { ... }
fn decide_allocation(
&self,
query: &mut Allocation,
) -> Result<(), LoggableError> { ... }
}
Provided Methods§
fn open(&self) -> Result<(), ErrorMessage>
fn close(&self) -> Result<(), ErrorMessage>
fn start(&self) -> Result<(), ErrorMessage>
fn stop(&self) -> Result<(), ErrorMessage>
fn set_format(&self, info: &AudioInfo) -> Result<(), LoggableError>
fn handle_frame( &self, buffer: Option<&Buffer>, ) -> Result<FlowSuccess, FlowError>
fn pre_push(&self, buffer: Buffer) -> Result<Option<Buffer>, FlowError>
fn flush(&self)
fn negotiate(&self) -> Result<(), LoggableError>
fn caps(&self, filter: Option<&Caps>) -> Caps
fn sink_event(&self, event: Event) -> bool
fn sink_query(&self, query: &mut QueryRef) -> bool
fn src_event(&self, event: Event) -> bool
fn src_query(&self, query: &mut QueryRef) -> bool
fn propose_allocation( &self, query: &mut Allocation, ) -> Result<(), LoggableError>
fn decide_allocation(&self, query: &mut Allocation) -> Result<(), LoggableError>
Object Safety§
This trait is not object safe.