pub struct PlaybinPort {
pub input_caps: Caps,
pub target: Box<dyn Fn(&Caps) -> bool>,
pub sink: Box<dyn DynAsyncElement>,
}Expand description
One output branch of a playbin graph (M379): the elementary stream a
demux port carries, the raw target to decode it to, and the sink it ends in.
The caller derives these from the demux’s announced
StreamCollection and its selection: one
PlaybinPort per selected stream, in demux port order.
Fields§
§input_caps: CapsThe port’s elementary-stream caps (e.g. H.264), the decode-chain input the registry auto-plugs from.
target: Box<dyn Fn(&Caps) -> bool>The raw shape to decode the port to (commonly is_raw_video for a
video port, is_raw_audio for an audio port).
sink: Box<dyn DynAsyncElement>The terminal sink for this branch (e.g. an autovideosink /
autoaudiosink chosen by the stream kind).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PlaybinPort
impl !Send for PlaybinPort
impl !Sync for PlaybinPort
impl !UnwindSafe for PlaybinPort
impl Freeze for PlaybinPort
impl Unpin for PlaybinPort
impl UnsafeUnpin for PlaybinPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more