pub struct Analysis { /* private fields */ }Expand description
A one-shot detection/measurement run over a single input.
Implementations§
Source§impl Analysis
impl Analysis
Sourcepub fn new(input: impl Into<Input>) -> Self
pub fn new(input: impl Into<Input>) -> Self
Starts an analysis over input (a path, URL, or anything convertible
into an Input).
Sourcepub fn video_detector(self, detector: VideoDetector) -> Self
pub fn video_detector(self, detector: VideoDetector) -> Self
Adds a video detector. At most one of each kind is allowed per run.
Sourcepub fn crop_detection(self, options: CropDetectionOptions) -> Self
pub fn crop_detection(self, options: CropDetectionOptions) -> Self
Adds native crop detection via CropDetectionOptions.
Mutually exclusive with VideoDetector::Crop on the same run.
Sourcepub fn audio_detector(self, detector: AudioDetector) -> Self
pub fn audio_detector(self, detector: AudioDetector) -> Self
Adds an audio detector. At most one of each kind is allowed per run.
Sourcepub fn run(self) -> Result<AnalysisReport>
pub fn run(self) -> Result<AnalysisReport>
Runs the analysis to completion and folds the events into a report.
§Errors
Error::InvalidRecipeArgif no detectors are configured, a detector kind is duplicated, or a required filter / thenullmuxer is missing.Error::AnalysisFrameif native crop detection cannot read a decoded frame (interlaced fields, hardware surface, unsupported format).- Any error bubbling up from the underlying FFmpeg run.
Sourcepub fn run_detailed(self) -> Result<DetailedAnalysisReport>
pub fn run_detailed(self) -> Result<DetailedAnalysisReport>
Like run, but also returns the last raw/aligned crop
observation when native crop detection ran.
Auto Trait Implementations§
impl !RefUnwindSafe for Analysis
impl !Sync for Analysis
impl !UnwindSafe for Analysis
impl Freeze for Analysis
impl Send for Analysis
impl Unpin for Analysis
impl UnsafeUnpin for Analysis
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