pub struct FilterChain { /* private fields */ }Expand description
Implementations§
Source§impl FilterChain
impl FilterChain
Sourcepub fn prepare(filters: &[VideoFilter]) -> Result<Self>
pub fn prepare(filters: &[VideoFilter]) -> Result<Self>
Prepare a chain: load + convert every overlay image (the rest pass
through). Fails if an overlay image can’t be read or decoded.
Sourcepub fn apply(&self, frame: VideoFrame) -> Result<VideoFrame>
pub fn apply(&self, frame: VideoFrame) -> Result<VideoFrame>
Apply the whole chain to a frame, in order.
Auto Trait Implementations§
impl Freeze for FilterChain
impl RefUnwindSafe for FilterChain
impl Send for FilterChain
impl Sync for FilterChain
impl Unpin for FilterChain
impl UnsafeUnpin for FilterChain
impl UnwindSafe for FilterChain
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