Struct av_scenechange::DetectionOptions
source · 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: SceneDetectionSpeed
The speed of detection algorithm to use. Slower algorithms are more accurate/better for use in encoders.
detect_flashes: bool
Enabling 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 distane between two scene changes.
max_scenecut_distance: Option<usize>
The maximum distance between two scene changes.
lookahead_distance: usize
The 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 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 DetectionOptions
impl Debug for DetectionOptions
source§impl Default for DetectionOptions
impl Default for DetectionOptions
impl Copy for DetectionOptions
Auto Trait Implementations§
impl RefUnwindSafe for DetectionOptions
impl Send for DetectionOptions
impl Sync for DetectionOptions
impl Unpin 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