Struct av_scenechange::SceneChangeDetector
source · pub struct SceneChangeDetector<T>where
T: Pixel,{ /* private fields */ }
Expand description
Runs keyframe detection on frames from the lookahead queue.
Implementations§
source§impl<T> SceneChangeDetector<T>where
T: Pixel,
impl<T> SceneChangeDetector<T>where T: Pixel,
pub fn new( encoder_config: EncoderConfig, cpu_feature_level: CpuFeatureLevel, lookahead_distance: usize, sequence: Arc<Sequence> ) -> SceneChangeDetector<T>
sourcepub fn analyze_next_frame(
&mut self,
frame_set: &[&Arc<Frame<T>>],
input_frameno: u64,
previous_keyframe: u64
) -> bool
pub fn analyze_next_frame( &mut self, frame_set: &[&Arc<Frame<T>>], input_frameno: u64, previous_keyframe: u64 ) -> bool
Runs keyframe detection on the next frame in the lookahead queue.
This function requires that a subset of input frames
is passed to it in order, and that keyframes
is only
updated from this method. input_frameno
should correspond
to the second frame in frame_set
.
This will gracefully handle the first frame in the video as well.
Auto Trait Implementations§
impl<T> RefUnwindSafe for SceneChangeDetector<T>where T: RefUnwindSafe,
impl<T> Send for SceneChangeDetector<T>
impl<T> Sync for SceneChangeDetector<T>
impl<T> Unpin for SceneChangeDetector<T>where T: Unpin,
impl<T> UnwindSafe for SceneChangeDetector<T>where T: UnwindSafe + RefUnwindSafe,
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