pub struct FilterComplex {
pub overlay: Option<(u32, u32)>,
}Expand description
A -filter_complex graph. For now it models the most-used multi-input
operation: overlay — compositing a second input over the first (logo /
watermark / picture-in-picture). The labels ([0:v][1:v]...) are parsed but
the wiring is fixed: input 0 is the base, input 1 the overlay.
Fields§
§overlay: Option<(u32, u32)>(x, y) placement of the overlay’s top-left on the base, or None if
the graph has no overlay.
Implementations§
Source§impl FilterComplex
impl FilterComplex
Sourcepub fn parse(spec: &str) -> Result<FilterComplex>
pub fn parse(spec: &str) -> Result<FilterComplex>
Parse a filter_complex spec. Recognizes overlay=X:Y (numeric, plus the
common corner shorthands W-w, H-h resolved against the base size at
apply time — for now numeric offsets only).
Auto Trait Implementations§
impl Freeze for FilterComplex
impl RefUnwindSafe for FilterComplex
impl Send for FilterComplex
impl Sync for FilterComplex
impl Unpin for FilterComplex
impl UnsafeUnpin for FilterComplex
impl UnwindSafe for FilterComplex
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