pub struct FilterChain { /* private fields */ }Expand description
An ordered chain of filters (the -vf graph).
Implementations§
Source§impl FilterChain
impl FilterChain
Sourcepub fn parse(spec: &str) -> Result<FilterChain>
pub fn parse(spec: &str) -> Result<FilterChain>
Parse an FFmpeg-style filter spec: filters separated by ,, each
name=a:b:c. An empty/blank spec yields an empty (pass-through) chain.
pub fn is_empty(&self) -> bool
Sourcepub fn prepend_range_conversion(&mut self, to_full: bool)
pub fn prepend_range_conversion(&mut self, to_full: bool)
Insert a range conversion at the FRONT of the chain, so every later filter (notably a colour conversion) sees full-range input.
Sourcepub fn set_source_color_range(&mut self, range: ColorRange)
pub fn set_source_color_range(&mut self, range: ColorRange)
Declare the range of the frames entering the chain, so colour conversions interpret Y’CbCr correctly instead of assuming full-range.
Sourcepub fn output_color_range(&self) -> Option<ColorRange>
pub fn output_color_range(&self) -> Option<ColorRange>
The colour range the chain’s output is in, if any filter in it decides. Later filters win, matching evaluation order.
Sourcepub fn apply(&mut self, frame: VideoFrame) -> Result<VideoFrame>
pub fn apply(&mut self, frame: VideoFrame) -> Result<VideoFrame>
Run every filter in order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FilterChain
impl !Sync for FilterChain
impl !UnwindSafe for FilterChain
impl Freeze for FilterChain
impl Send for FilterChain
impl Unpin for FilterChain
impl UnsafeUnpin 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