pub struct DetectionOptions {
pub analysis_speed: SceneDetectionSpeed,
pub detect_flashes: bool,
pub min_scenecut_distance: Option<usize>,
pub max_scenecut_distance: Option<usize>,
pub lookahead_distance: usize,
}Expand description
Options determining how to run scene change detection.
Fields§
§analysis_speed: SceneDetectionSpeedThe speed of detection algorithm to use. Slower algorithms are more accurate/better for use in encoders.
detect_flashes: boolEnabling this will utilize heuristics to avoid scenecuts that are too close to each other. This is generally useful if you want scenecut detection for use in an encoder. If you want a raw list of scene changes, you should disable this.
min_scenecut_distance: Option<usize>The minimum distance between two scene changes.
max_scenecut_distance: Option<usize>The maximum distance between two scene changes.
lookahead_distance: usizeThe distance to look ahead in the video for scene flash detection.
Not used if detect_flashes is false.
Trait Implementations§
Source§impl Clone for DetectionOptions
impl Clone for DetectionOptions
Source§fn clone(&self) -> DetectionOptions
fn clone(&self) -> DetectionOptions
Returns a duplicate 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 DetectionOptions
impl Debug for DetectionOptions
Source§impl Default for DetectionOptions
impl Default for DetectionOptions
impl Copy for DetectionOptions
Auto Trait Implementations§
impl Freeze for DetectionOptions
impl RefUnwindSafe for DetectionOptions
impl Send for DetectionOptions
impl Sync for DetectionOptions
impl Unpin for DetectionOptions
impl UnsafeUnpin for DetectionOptions
impl UnwindSafe for DetectionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more