Trait gstreamer_base::subclass::prelude::PushSrcImpl

source ·
pub trait PushSrcImpl: PushSrcImplExt + BaseSrcImpl {
    // Provided methods
    fn fill(&self, buffer: &mut BufferRef) -> Result<FlowSuccess, FlowError> { ... }
    fn alloc(&self) -> Result<Buffer, FlowError> { ... }
    fn create(
        &self,
        buffer: Option<&mut BufferRef>,
    ) -> Result<CreateSuccess, FlowError> { ... }
}

Provided Methods§

source

fn fill(&self, buffer: &mut BufferRef) -> Result<FlowSuccess, FlowError>

Ask the subclass to fill the buffer with data.

source

fn alloc(&self) -> Result<Buffer, FlowError>

Allocate memory for a buffer.

§Returns
source

fn create( &self, buffer: Option<&mut BufferRef>, ) -> Result<CreateSuccess, FlowError>

Ask the subclass to create a buffer, the default implementation will call alloc if no allocated buf is provided and then call fill.

Object Safety§

This trait is not object safe.

Implementors§