[][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,
}

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.

Trait Implementations

impl Clone for DetectionOptions[src]

impl Copy for DetectionOptions[src]

impl Default for DetectionOptions[src]

impl Debug for DetectionOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]