#[repr(transparent)]pub struct AVCaptureVideoStabilizationMode(pub NSInteger);AVCaptureDevice only.Expand description
Constants indicating the modes of video stabilization supported by the device’s format.
Indicates that video should not be stabilized.
Indicates that video should be stabilized using the standard video stabilization algorithm introduced with iOS 5.0. Standard video stabilization has a reduced field of view. Enabling video stabilization may introduce additional latency into the video capture pipeline.
Indicates that video should be stabilized using the cinematic stabilization algorithm for more dramatic results. Cinematic video stabilization has a reduced field of view compared to standard video stabilization. Enabling cinematic video stabilization introduces much more latency into the video capture pipeline than standard video stabilization and consumes significantly more system memory. Use narrow or identical min and max frame durations in conjunction with this mode.
Indicates that the video should be stabilized using the extended cinematic stabilization algorithm. Enabling extended cinematic stabilization introduces longer latency into the video capture pipeline compared to the AVCaptureVideoStabilizationModeCinematic and consumes more memory, but yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode.
Indicates that video should be stabilized using the preview optimized stabilization algorithm. Preview stabilization is a low latency and low power algorithm which is supported only on connections which either have an associated preview layer or have a preview-sized VideoDataOutput.
Indicates that the video should be stabilized using the enhanced extended cinematic stabilization algorithm. Enhanced extended cinematic has a reduced field of view compared to extended cinematic, without any noticeable increase in latency, and it yields improved stability. It is recommended to use identical or similar min and max frame durations in conjunction with this mode.
Indicates that the most appropriate video stabilization mode for the device and format should be chosen.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptureVideoStabilizationMode
impl AVCaptureVideoStabilizationMode
pub const Off: Self
pub const Standard: Self
pub const Cinematic: Self
pub const CinematicExtended: Self
pub const PreviewOptimized: Self
pub const CinematicExtendedEnhanced: Self
pub const Auto: Self
Trait Implementations§
Source§impl Clone for AVCaptureVideoStabilizationMode
impl Clone for AVCaptureVideoStabilizationMode
Source§fn clone(&self) -> AVCaptureVideoStabilizationMode
fn clone(&self) -> AVCaptureVideoStabilizationMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Ord for AVCaptureVideoStabilizationMode
impl Ord for AVCaptureVideoStabilizationMode
Source§fn cmp(&self, other: &AVCaptureVideoStabilizationMode) -> Ordering
fn cmp(&self, other: &AVCaptureVideoStabilizationMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AVCaptureVideoStabilizationMode
impl PartialEq for AVCaptureVideoStabilizationMode
Source§fn eq(&self, other: &AVCaptureVideoStabilizationMode) -> bool
fn eq(&self, other: &AVCaptureVideoStabilizationMode) -> bool
self and other values to be equal, and is used by ==.