pub struct FrameCandidate {
pub index: usize,
pub timestamp_seconds: f64,
pub is_keyframe: bool,
pub is_scene_change: bool,
pub quality_score: f64,
}Expand description
A candidate frame for description.
Fields§
§index: usizeFrame index in the video
timestamp_seconds: f64Timestamp in seconds
is_keyframe: boolWhether this is a keyframe (I-frame)
is_scene_change: boolWhether this is a scene change
quality_score: f64Quality score (0-1, based on blur/noise detection)
Trait Implementations§
Source§impl Clone for FrameCandidate
impl Clone for FrameCandidate
Source§fn clone(&self) -> FrameCandidate
fn clone(&self) -> FrameCandidate
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 moreSource§impl Debug for FrameCandidate
impl Debug for FrameCandidate
Source§impl<'de> Deserialize<'de> for FrameCandidate
impl<'de> Deserialize<'de> for FrameCandidate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrameCandidate
impl RefUnwindSafe for FrameCandidate
impl Send for FrameCandidate
impl Sync for FrameCandidate
impl Unpin for FrameCandidate
impl UnsafeUnpin for FrameCandidate
impl UnwindSafe for FrameCandidate
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