[][src]Trait gstreamer_base::subclass::base_src::BaseSrcImpl

pub trait BaseSrcImpl: BaseSrcImplExt + ElementImpl + Send + Sync + 'static {
    fn start(&self, element: &BaseSrc) -> Result<(), ErrorMessage> { ... }
fn stop(&self, element: &BaseSrc) -> Result<(), ErrorMessage> { ... }
fn is_seekable(&self, element: &BaseSrc) -> bool { ... }
fn get_size(&self, element: &BaseSrc) -> Option<u64> { ... }
fn get_times(
        &self,
        element: &BaseSrc,
        buffer: &BufferRef
    ) -> (ClockTime, ClockTime) { ... }
fn fill(
        &self,
        element: &BaseSrc,
        offset: u64,
        length: u32,
        buffer: &mut BufferRef
    ) -> Result<FlowSuccess, FlowError> { ... }
fn alloc(
        &self,
        element: &BaseSrc,
        offset: u64,
        length: u32
    ) -> Result<Buffer, FlowError> { ... }
fn create(
        &self,
        element: &BaseSrc,
        offset: u64,
        buffer: Option<&mut BufferRef>,
        length: u32
    ) -> Result<CreateSuccess, FlowError> { ... }
fn do_seek(&self, element: &BaseSrc, segment: &mut Segment) -> bool { ... }
fn query(&self, element: &BaseSrc, query: &mut QueryRef) -> bool { ... }
fn event(&self, element: &BaseSrc, event: &Event) -> bool { ... }
fn get_caps(&self, element: &BaseSrc, filter: Option<&Caps>) -> Option<Caps> { ... }
fn negotiate(&self, element: &BaseSrc) -> Result<(), LoggableError> { ... }
fn set_caps(
        &self,
        element: &BaseSrc,
        caps: &Caps
    ) -> Result<(), LoggableError> { ... }
fn fixate(&self, element: &BaseSrc, caps: Caps) -> Caps { ... }
fn unlock(&self, element: &BaseSrc) -> Result<(), ErrorMessage> { ... }
fn unlock_stop(&self, element: &BaseSrc) -> Result<(), ErrorMessage> { ... } }

Provided methods

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

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

fn is_seekable(&self, element: &BaseSrc) -> bool

fn get_size(&self, element: &BaseSrc) -> Option<u64>

fn get_times(
    &self,
    element: &BaseSrc,
    buffer: &BufferRef
) -> (ClockTime, ClockTime)

fn fill(
    &self,
    element: &BaseSrc,
    offset: u64,
    length: u32,
    buffer: &mut BufferRef
) -> Result<FlowSuccess, FlowError>

fn alloc(
    &self,
    element: &BaseSrc,
    offset: u64,
    length: u32
) -> Result<Buffer, FlowError>

fn create(
    &self,
    element: &BaseSrc,
    offset: u64,
    buffer: Option<&mut BufferRef>,
    length: u32
) -> Result<CreateSuccess, FlowError>

fn do_seek(&self, element: &BaseSrc, segment: &mut Segment) -> bool

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

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

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

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

fn set_caps(&self, element: &BaseSrc, caps: &Caps) -> Result<(), LoggableError>

fn fixate(&self, element: &BaseSrc, caps: Caps) -> Caps

fn unlock(&self, element: &BaseSrc) -> Result<(), ErrorMessage>

fn unlock_stop(&self, element: &BaseSrc) -> Result<(), ErrorMessage>

Loading content...

Implementors

Loading content...