pub enum FilterFrame {
Video(VideoFrame),
Audio(AudioFrame),
}Expand description
A frame that can be passed through the filter graph.
Variants§
Implementations§
Source§impl FilterFrame
impl FilterFrame
Sourcepub fn as_video(&self) -> Option<&VideoFrame>
pub fn as_video(&self) -> Option<&VideoFrame>
Get as video frame if applicable.
Sourcepub fn as_audio(&self) -> Option<&AudioFrame>
pub fn as_audio(&self) -> Option<&AudioFrame>
Get as audio frame if applicable.
Sourcepub fn as_video_mut(&mut self) -> Option<&mut VideoFrame>
pub fn as_video_mut(&mut self) -> Option<&mut VideoFrame>
Get mutable video frame if applicable.
Sourcepub fn as_audio_mut(&mut self) -> Option<&mut AudioFrame>
pub fn as_audio_mut(&mut self) -> Option<&mut AudioFrame>
Get mutable audio frame if applicable.
Trait Implementations§
Source§impl Clone for FilterFrame
impl Clone for FilterFrame
Source§fn clone(&self) -> FilterFrame
fn clone(&self) -> FilterFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilterFrame
impl Debug for FilterFrame
Source§impl From<AudioFrame> for FilterFrame
impl From<AudioFrame> for FilterFrame
Source§fn from(frame: AudioFrame) -> Self
fn from(frame: AudioFrame) -> Self
Converts to this type from the input type.
Source§impl From<FilterFrame> for FrameRef
impl From<FilterFrame> for FrameRef
Source§fn from(frame: FilterFrame) -> Self
fn from(frame: FilterFrame) -> Self
Converts to this type from the input type.
Source§impl From<VideoFrame> for FilterFrame
impl From<VideoFrame> for FilterFrame
Source§fn from(frame: VideoFrame) -> Self
fn from(frame: VideoFrame) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for FilterFrame
impl RefUnwindSafe for FilterFrame
impl Send for FilterFrame
impl Sync for FilterFrame
impl Unpin for FilterFrame
impl UnsafeUnpin for FilterFrame
impl UnwindSafe for FilterFrame
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<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