pub struct StabilizeOptions {
pub smoothing: u16,
pub crop_black: bool,
pub zoom: f32,
pub optzoom: u8,
pub interpol: Interpolation,
}Expand description
Options for the second stabilization pass (transform application).
Fields§
§smoothing: u16Temporal smoothing radius in frames 0–500 (default: 10).
crop_black: boolFill stabilization borders with black instead of previous-frame content (default: true).
zoom: f32Zoom factor: 0.0 = no zoom, positive = fixed zoom-in (default: 0.0).
optzoom: u8Optimal zoom: 0 = disabled, 1 = auto-static, 2 = adaptive (default: 0).
interpol: InterpolationPixel interpolation algorithm (default: Interpolation::Bilinear).
Implementations§
Source§impl StabilizeOptions
impl StabilizeOptions
Sourcepub fn zoom(self, z: f32) -> StabilizeOptions
pub fn zoom(self, z: f32) -> StabilizeOptions
Set the fixed zoom-in factor (0.0 = no zoom).
Sourcepub fn optzoom(self, mode: u8) -> StabilizeOptions
pub fn optzoom(self, mode: u8) -> StabilizeOptions
Set the auto-zoom mode: 0 = disabled, 1 = static, 2 = adaptive.
Values outside 0–2 are clamped.
Sourcepub fn interpol(self, i: Interpolation) -> StabilizeOptions
pub fn interpol(self, i: Interpolation) -> StabilizeOptions
Set the sub-pixel interpolation algorithm used during frame warping.
Trait Implementations§
Source§impl Clone for StabilizeOptions
impl Clone for StabilizeOptions
Source§fn clone(&self) -> StabilizeOptions
fn clone(&self) -> StabilizeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StabilizeOptions
impl Debug for StabilizeOptions
Source§impl Default for StabilizeOptions
impl Default for StabilizeOptions
Source§fn default() -> StabilizeOptions
fn default() -> StabilizeOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for StabilizeOptions
impl PartialEq for StabilizeOptions
Source§fn eq(&self, other: &StabilizeOptions) -> bool
fn eq(&self, other: &StabilizeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StabilizeOptions
Auto Trait Implementations§
impl Freeze for StabilizeOptions
impl RefUnwindSafe for StabilizeOptions
impl Send for StabilizeOptions
impl Sync for StabilizeOptions
impl Unpin for StabilizeOptions
impl UnsafeUnpin for StabilizeOptions
impl UnwindSafe for StabilizeOptions
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