pub enum NodeType {
Source,
Decoder,
Filter,
Encoder,
Sink,
Mixer,
Splitter,
}Expand description
Classification of a processing node.
Variants§
Source
Produces media data (e.g. file reader, camera capture).
Decoder
Decodes compressed media into raw frames.
Filter
Transforms media data (e.g. scaler, colour converter).
Encoder
Encodes raw frames into a compressed format.
Sink
Consumes media data (e.g. file writer, display).
Mixer
Combines multiple input streams into one.
Splitter
Distributes one input stream to multiple outputs.
Implementations§
Source§impl NodeType
impl NodeType
Sourcepub fn max_inputs(&self) -> usize
pub fn max_inputs(&self) -> usize
Maximum number of input connections accepted by this node type.
Sourcepub fn max_outputs(&self) -> usize
pub fn max_outputs(&self) -> usize
Maximum number of output connections this node type can produce.
Trait Implementations§
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnsafeUnpin for NodeType
impl UnwindSafe for NodeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more