[][src]Struct av_scenechange::DetectionOptions

pub struct DetectionOptions {
    pub use_chroma: bool,
    pub ignore_flashes: bool,
    pub min_scenecut_distance: Option<usize>,
    pub max_scenecut_distance: Option<usize>,
    pub lookahead_distance: usize,
    pub progress_callback: Option<Box<dyn Fn(usize, usize)>>,
}

Options determining how to run scene change detection.

Fields

use_chroma: bool

Whether or not to analyze the chroma planes. Enabling this is slower, but may be more accurate.

ignore_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 ignore_flashes is true.

progress_callback: Option<Box<dyn Fn(usize, usize)>>

An optional callback that will fire after each frame is analyzed. Arguments passed in will be, in order, the number of frames analyzed, and the number of keyframes detected.

This is generally useful for displaying progress, etc.

Trait Implementations

impl Default for DetectionOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]