#[repr(C)]pub enum VSRequestPattern {
General = 0,
NoFrameReuse = 1,
StrictSpatial = 2,
}
Expand description
Describes the upstream frame request pattern of a filter.
Variants§
General = 0
Anything goes. Note that filters that may be requesting beyond the end of a
VSNode
length in frames (repeating the last frame) should use
VSRequestPattern::General
) and not any of the other modes.
NoFrameReuse = 1
Will only request an input frame at most once if all output frames are requested
exactly one time. This includes filters such as Trim, Reverse, SelectEvery
.
StrictSpatial = 2
Only requests frame N to output frame N. The main difference to
VSRequestPattern::NoFrameReuse
is that the requested frame
is always fixed and known ahead of time. Filter examples
Lut, Expr (conditionally, see VSRequestPattern::General
note)
and similar.
Trait Implementations§
Source§impl Clone for VSRequestPattern
impl Clone for VSRequestPattern
Source§fn clone(&self) -> VSRequestPattern
fn clone(&self) -> VSRequestPattern
Returns a copy of the value. Read more
1.0.0 · 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 VSRequestPattern
impl Debug for VSRequestPattern
Source§impl Hash for VSRequestPattern
impl Hash for VSRequestPattern
Source§impl Ord for VSRequestPattern
impl Ord for VSRequestPattern
Source§fn cmp(&self, other: &VSRequestPattern) -> Ordering
fn cmp(&self, other: &VSRequestPattern) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VSRequestPattern
impl PartialEq for VSRequestPattern
Source§impl PartialOrd for VSRequestPattern
impl PartialOrd for VSRequestPattern
impl Copy for VSRequestPattern
impl Eq for VSRequestPattern
impl StructuralPartialEq for VSRequestPattern
Auto Trait Implementations§
impl Freeze for VSRequestPattern
impl RefUnwindSafe for VSRequestPattern
impl Send for VSRequestPattern
impl Sync for VSRequestPattern
impl Unpin for VSRequestPattern
impl UnwindSafe for VSRequestPattern
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