[][src]Trait gstreamer_audio::subclass::prelude::AudioEncoderImpl

pub trait AudioEncoderImpl: AudioEncoderImplExt + ElementImpl + Send + Sync + 'static {
    fn open(&self, element: &AudioEncoder) -> Result<(), ErrorMessage> { ... }
fn close(&self, element: &AudioEncoder) -> Result<(), ErrorMessage> { ... }
fn start(&self, element: &AudioEncoder) -> Result<(), ErrorMessage> { ... }
fn stop(&self, element: &AudioEncoder) -> Result<(), ErrorMessage> { ... }
fn set_format(
        &self,
        element: &AudioEncoder,
        info: &AudioInfo
    ) -> Result<(), LoggableError> { ... }
fn handle_frame(
        &self,
        element: &AudioEncoder,
        buffer: Option<&Buffer>
    ) -> Result<FlowSuccess, FlowError> { ... }
fn pre_push(
        &self,
        element: &AudioEncoder,
        buffer: Buffer
    ) -> Result<Option<Buffer>, FlowError> { ... }
fn flush(&self, element: &AudioEncoder) { ... }
fn negotiate(&self, element: &AudioEncoder) -> Result<(), LoggableError> { ... }
fn get_caps(&self, element: &AudioEncoder, filter: Option<&Caps>) -> Caps { ... }
fn sink_event(&self, element: &AudioEncoder, event: Event) -> bool { ... }
fn sink_query(&self, element: &AudioEncoder, query: &mut QueryRef) -> bool { ... }
fn src_event(&self, element: &AudioEncoder, event: Event) -> bool { ... }
fn src_query(&self, element: &AudioEncoder, query: &mut QueryRef) -> bool { ... }
fn propose_allocation(
        &self,
        element: &AudioEncoder,
        query: &mut QueryRef
    ) -> Result<(), ErrorMessage> { ... }
fn decide_allocation(
        &self,
        element: &AudioEncoder,
        query: &mut QueryRef
    ) -> Result<(), ErrorMessage> { ... } }

Provided methods

fn open(&self, element: &AudioEncoder) -> Result<(), ErrorMessage>

fn close(&self, element: &AudioEncoder) -> Result<(), ErrorMessage>

fn start(&self, element: &AudioEncoder) -> Result<(), ErrorMessage>

fn stop(&self, element: &AudioEncoder) -> Result<(), ErrorMessage>

fn set_format(
    &self,
    element: &AudioEncoder,
    info: &AudioInfo
) -> Result<(), LoggableError>

fn handle_frame(
    &self,
    element: &AudioEncoder,
    buffer: Option<&Buffer>
) -> Result<FlowSuccess, FlowError>

fn pre_push(
    &self,
    element: &AudioEncoder,
    buffer: Buffer
) -> Result<Option<Buffer>, FlowError>

fn flush(&self, element: &AudioEncoder)

fn negotiate(&self, element: &AudioEncoder) -> Result<(), LoggableError>

fn get_caps(&self, element: &AudioEncoder, filter: Option<&Caps>) -> Caps

fn sink_event(&self, element: &AudioEncoder, event: Event) -> bool

fn sink_query(&self, element: &AudioEncoder, query: &mut QueryRef) -> bool

fn src_event(&self, element: &AudioEncoder, event: Event) -> bool

fn src_query(&self, element: &AudioEncoder, query: &mut QueryRef) -> bool

fn propose_allocation(
    &self,
    element: &AudioEncoder,
    query: &mut QueryRef
) -> Result<(), ErrorMessage>

fn decide_allocation(
    &self,
    element: &AudioEncoder,
    query: &mut QueryRef
) -> Result<(), ErrorMessage>

Loading content...

Implementors

Loading content...