pub enum ScenePattern {
SolidColor {
start_frame: u64,
end_frame: u64,
rgb: [u8; 3],
},
HardCut {
at_frame: u64,
before: [u8; 3],
after: [u8; 3],
},
Flash {
start_frame: u64,
length: u64,
rgb: [u8; 3],
},
FadeOutIn {
start_frame: u64,
end_frame: u64,
high: u8,
low: u8,
},
LuminanceRamp {
start_frame: u64,
end_frame: u64,
from: u8,
to: u8,
},
HistogramShift {
start_frame: u64,
end_frame: u64,
},
TextureShift {
start_frame: u64,
end_frame: u64,
offset: u32,
},
}Expand description
Deterministic frame patterns for scene-detection tests and benchmarks.
Variants§
SolidColor
Fills a frame range with one color.
Fields
HardCut
Applies a two-color hard cut at at_frame.
Fields
Flash
Applies a temporary flash.
Fields
FadeOutIn
Creates a fade out/in around the darkest midpoint.
Fields
LuminanceRamp
Applies a luminance ramp.
Fields
HistogramShift
Applies a deterministic stripe pattern with shifted luma distribution.
TextureShift
Applies a deterministic checker texture offset that changes perceptual hashes.
Trait Implementations§
Source§impl Clone for ScenePattern
impl Clone for ScenePattern
Auto Trait Implementations§
impl Forget for ScenePattern
impl Freeze for ScenePattern
impl RefUnwindSafe for ScenePattern
impl Send for ScenePattern
impl Sync for ScenePattern
impl Unpin for ScenePattern
impl UnsafeUnpin for ScenePattern
impl UnwindSafe for ScenePattern
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.