#[repr(transparent)]pub struct AVCaptureVideoStabilizationMode(pub NSInteger);AVCaptureDevice only.Expand description
Constants indicating the modes of video stabilization supported by the device’s format.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVCaptureVideoStabilizationMode
impl AVCaptureVideoStabilizationMode
Sourcepub const Standard: Self
pub const Standard: Self
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.
Sourcepub const Cinematic: Self
pub const Cinematic: Self
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.
Sourcepub const CinematicExtended: Self
pub const CinematicExtended: Self
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. Cinematic extended mode is face aware when enabled on a front-facing ultra wide camera on iPhone, and prioritizes stabilization of the subject of the frame rather than the background.
Sourcepub const PreviewOptimized: Self
pub const PreviewOptimized: Self
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 AVCaptureVideoDataOutput.
Sourcepub const CinematicExtendedEnhanced: Self
pub const CinematicExtendedEnhanced: Self
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. Cinematic extended enhanced mode is face aware when enabled on a front-facing ultra wide camera on iPhone, and prioritizes stabilization of the subject of the frame rather than the background.
Sourcepub const LowLatency: Self
pub const LowLatency: Self
Indicates that video should be stabilized using the low latency stabilization algorithm. Low Latency stabilization has a reduced field of view. Enabling low latency stabilization introduces no additional latency into the video capture pipeline.
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 ==.