pub struct ContentAnalyzer { /* private fields */ }Expand description
Content analyzer for video frames.
Implementations§
Source§impl ContentAnalyzer
impl ContentAnalyzer
Sourcepub fn set_scene_threshold(&mut self, threshold: SceneChangeThreshold)
pub fn set_scene_threshold(&mut self, threshold: SceneChangeThreshold)
Set scene change threshold.
Sourcepub fn set_min_scene_length(&mut self, frames: u32)
pub fn set_min_scene_length(&mut self, frames: u32)
Set minimum scene length.
Sourcepub fn set_block_size(&mut self, size: u32)
pub fn set_block_size(&mut self, size: u32)
Set block size for analysis.
Sourcepub fn set_flash_detection(&mut self, enable: bool)
pub fn set_flash_detection(&mut self, enable: bool)
Enable or disable flash detection.
Sourcepub fn set_texture_analysis(&mut self, enable: bool)
pub fn set_texture_analysis(&mut self, enable: bool)
Enable or disable texture analysis.
Sourcepub fn analyze(&mut self, luma: &[u8], stride: usize) -> AnalysisResult
pub fn analyze(&mut self, luma: &[u8], stride: usize) -> AnalysisResult
Analyze a frame and return comprehensive metrics.
Trait Implementations§
Source§impl Clone for ContentAnalyzer
impl Clone for ContentAnalyzer
Source§fn clone(&self) -> ContentAnalyzer
fn clone(&self) -> ContentAnalyzer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContentAnalyzer
impl RefUnwindSafe for ContentAnalyzer
impl Send for ContentAnalyzer
impl Sync for ContentAnalyzer
impl Unpin for ContentAnalyzer
impl UnsafeUnpin for ContentAnalyzer
impl UnwindSafe for ContentAnalyzer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more