[−][src]Struct av_scenechange::DetectionOptions
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
impl !Send for DetectionOptions
impl !Sync for DetectionOptions
impl Unpin for DetectionOptions
impl !UnwindSafe for DetectionOptions
impl !RefUnwindSafe for DetectionOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,