Trait gstreamer::prelude::PadExt

source ·
pub trait PadExt: 'static {
Show 49 methods // Required methods fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>; fn can_link(&self, sinkpad: &impl IsA<Pad>) -> bool; fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>; fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>; fn check_reconfigure(&self) -> bool; fn create_stream_id( &self, parent: &impl IsA<Element>, stream_id: Option<&str> ) -> GString; fn forward<P: FnMut(&Pad) -> bool>(&self, forward: P) -> bool; fn allowed_caps(&self) -> Option<Caps>; fn current_caps(&self) -> Option<Caps>; fn direction(&self) -> PadDirection; fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>; fn offset(&self) -> i64; fn pad_template(&self) -> Option<PadTemplate>; fn pad_template_caps(&self) -> Caps; fn parent_element(&self) -> Option<Element>; fn peer(&self) -> Option<Pad>; fn single_internal_link(&self) -> Option<Pad>; fn stream(&self) -> Option<Stream>; fn stream_id(&self) -> Option<GString>; fn task_state(&self) -> TaskState; fn has_current_caps(&self) -> bool; fn is_active(&self) -> bool; fn is_blocked(&self) -> bool; fn is_blocking(&self) -> bool; fn is_linked(&self) -> bool; fn link( &self, sinkpad: &impl IsA<Pad> ) -> Result<PadLinkSuccess, PadLinkError>; fn link_full( &self, sinkpad: &impl IsA<Pad>, flags: PadLinkCheck ) -> Result<PadLinkSuccess, PadLinkError>; fn link_maybe_ghosting(&self, sink: &impl IsA<Pad>) -> Result<(), BoolError>; fn link_maybe_ghosting_full( &self, sink: &impl IsA<Pad>, flags: PadLinkCheck ) -> Result<(), BoolError>; fn mark_reconfigure(&self); fn needs_reconfigure(&self) -> bool; fn pause_task(&self) -> Result<(), BoolError>; fn peer_query_accept_caps(&self, caps: &Caps) -> bool; fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps; fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>; fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>; fn query_accept_caps(&self, caps: &Caps) -> bool; fn query_caps(&self, filter: Option<&Caps>) -> Caps; fn set_active(&self, active: bool) -> Result<(), BoolError>; fn set_offset(&self, offset: i64); fn stop_task(&self) -> Result<(), BoolError>; fn store_sticky_event(&self, event: &Event) -> Result<FlowSuccess, FlowError>; fn unlink(&self, sinkpad: &impl IsA<Pad>) -> Result<(), BoolError>; fn use_fixed_caps(&self); fn caps(&self) -> Option<Caps>; fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_unlinked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn activate_mode(&self, mode: PadMode, active: bool) -> Result<(), BoolError>

source

fn chain(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

source

fn chain_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>

source

fn check_reconfigure(&self) -> bool

source

fn create_stream_id( &self, parent: &impl IsA<Element>, stream_id: Option<&str> ) -> GString

source

fn forward<P: FnMut(&Pad) -> bool>(&self, forward: P) -> bool

source

fn allowed_caps(&self) -> Option<Caps>

source

fn current_caps(&self) -> Option<Caps>

source

fn direction(&self) -> PadDirection

source

fn last_flow_result(&self) -> Result<FlowSuccess, FlowError>

source

fn offset(&self) -> i64

source

fn pad_template(&self) -> Option<PadTemplate>

source

fn pad_template_caps(&self) -> Caps

source

fn parent_element(&self) -> Option<Element>

source

fn peer(&self) -> Option<Pad>

Available on crate feature v1_18 only.
source

fn stream(&self) -> Option<Stream>

source

fn stream_id(&self) -> Option<GString>

source

fn task_state(&self) -> TaskState

source

fn has_current_caps(&self) -> bool

source

fn is_active(&self) -> bool

source

fn is_blocked(&self) -> bool

source

fn is_blocking(&self) -> bool

source

fn is_linked(&self) -> bool

source

fn mark_reconfigure(&self)

source

fn needs_reconfigure(&self) -> bool

source

fn pause_task(&self) -> Result<(), BoolError>

source

fn peer_query_accept_caps(&self, caps: &Caps) -> bool

source

fn peer_query_caps(&self, filter: Option<&Caps>) -> Caps

source

fn push(&self, buffer: Buffer) -> Result<FlowSuccess, FlowError>

source

fn push_list(&self, list: BufferList) -> Result<FlowSuccess, FlowError>

source

fn query_accept_caps(&self, caps: &Caps) -> bool

source

fn query_caps(&self, filter: Option<&Caps>) -> Caps

source

fn set_active(&self, active: bool) -> Result<(), BoolError>

source

fn set_offset(&self, offset: i64)

source

fn stop_task(&self) -> Result<(), BoolError>

source

fn store_sticky_event(&self, event: &Event) -> Result<FlowSuccess, FlowError>

source

fn use_fixed_caps(&self)

source

fn caps(&self) -> Option<Caps>

source

fn connect_linked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_unlinked<F: Fn(&Self, &Pad) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_caps_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_offset_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§

source§

impl<O: IsA<Pad>> PadExt for O