pub struct AnalysisResult {
pub spatial_complexity: f32,
pub temporal_complexity: f32,
pub combined_complexity: f32,
pub is_scene_cut: bool,
pub is_flash: bool,
pub scene_change_score: f32,
pub histogram: Vec<u32>,
pub texture_metrics: Option<TextureMetrics>,
pub content_type: ContentType,
pub frame_brightness: f32,
pub contrast: f32,
pub sharpness: f32,
}Expand description
Comprehensive analysis result.
Fields§
§spatial_complexity: f32Spatial complexity metric.
temporal_complexity: f32Temporal complexity metric.
combined_complexity: f32Combined complexity metric.
is_scene_cut: boolScene change detected.
is_flash: boolFlash detected.
scene_change_score: f32Scene change score (0.0-1.0).
histogram: Vec<u32>Frame histogram.
texture_metrics: Option<TextureMetrics>Texture metrics.
content_type: ContentTypeContent type classification.
frame_brightness: f32Frame brightness (0-255).
contrast: f32Frame contrast (0.0-1.0).
sharpness: f32Frame sharpness (0.0-1.0).
Implementations§
Source§impl AnalysisResult
impl AnalysisResult
Sourcepub fn encoding_difficulty(&self) -> f32
pub fn encoding_difficulty(&self) -> f32
Get encoding difficulty score (higher = harder to encode).
Sourcepub fn is_good_keyframe_candidate(&self) -> bool
pub fn is_good_keyframe_candidate(&self) -> bool
Check if this is a good keyframe candidate.
Trait Implementations§
Source§impl Clone for AnalysisResult
impl Clone for AnalysisResult
Source§fn clone(&self) -> AnalysisResult
fn clone(&self) -> AnalysisResult
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 AnalysisResult
impl RefUnwindSafe for AnalysisResult
impl Send for AnalysisResult
impl Sync for AnalysisResult
impl Unpin for AnalysisResult
impl UnsafeUnpin for AnalysisResult
impl UnwindSafe for AnalysisResult
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