pub struct SceneChangeExample { /* private fields */ }Expand description
Example: Scene change detection with adaptive keyframes.
This example shows how the encoder automatically detects scene changes and inserts keyframes at appropriate locations.
Implementations§
Source§impl SceneChangeExample
impl SceneChangeExample
Sourcepub fn with_params(
self,
threshold: f64,
min_keyint: u32,
max_keyint: u32,
) -> Self
pub fn with_params( self, threshold: f64, min_keyint: u32, max_keyint: u32, ) -> Self
Set scene change detection parameters.
Sourcepub fn run(&self, frames: &[VideoFrame]) -> Result<SceneChangeReport, String>
pub fn run(&self, frames: &[VideoFrame]) -> Result<SceneChangeReport, String>
Run encoding with scene change detection.
Auto Trait Implementations§
impl Freeze for SceneChangeExample
impl RefUnwindSafe for SceneChangeExample
impl Send for SceneChangeExample
impl Sync for SceneChangeExample
impl Unpin for SceneChangeExample
impl UnsafeUnpin for SceneChangeExample
impl UnwindSafe for SceneChangeExample
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> 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