pub enum VideoDetector {
Black {
min_duration_s: f64,
pixel_th: f64,
picture_th: f64,
},
Scene {
threshold_pct: f64,
},
Crop {
limit: u32,
round: u32,
reset: u32,
},
}Expand description
A video-domain detector.
Variants§
Black
blackdetect: reports black regions.
min_duration_s: minimum black duration to report (seconds).pixel_th: per-pixel blackness threshold, 0.0..1.0.picture_th: fraction of the picture that must be black, 0.0..1.0.
Scene
scdet: reports scene changes.
threshold_pct is a percentage in 0.0..=100.0 (e.g. 10.0 means
10%, not 0.10). Runs with sc_pass=0 so frames/metadata pass through
untouched.
Crop
cropdetect: suggests a crop rectangle.
limit: luminance threshold below which a pixel is “black”.round: width/height are rounded to a multiple of this.reset: recompute the crop every N frames (0 = never reset).
Trait Implementations§
Source§impl Clone for VideoDetector
impl Clone for VideoDetector
Source§fn clone(&self) -> VideoDetector
fn clone(&self) -> VideoDetector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VideoDetector
impl Debug for VideoDetector
Source§impl PartialEq for VideoDetector
impl PartialEq for VideoDetector
Source§fn eq(&self, other: &VideoDetector) -> bool
fn eq(&self, other: &VideoDetector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoDetector
Auto Trait Implementations§
impl Freeze for VideoDetector
impl RefUnwindSafe for VideoDetector
impl Send for VideoDetector
impl Sync for VideoDetector
impl Unpin for VideoDetector
impl UnsafeUnpin for VideoDetector
impl UnwindSafe for VideoDetector
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