#[repr(i32)]pub enum AfPause {
Immediate = 0,
Deferred = 1,
Resume = 2,
}
Expand description
Pause lens movements when in continuous autofocus mode.
This control has no effect except when in continuous autofocus mode (AfModeContinuous). It can be used to pause any lens movements while (for example) images are captured. The algorithm remains inactive until it is instructed to resume.
Variants§
Immediate = 0
Pause the continuous autofocus algorithm immediately.
The autofocus algorithm is paused whether or not any kind of scan is underway. AfPauseState will subsequently report AfPauseStatePaused. AfState may report any of AfStateScanning, AfStateFocused or AfStateFailed, depending on the algorithm’s state when it received this control.
Deferred = 1
Pause the continuous autofocus algorithm at the end of the scan.
This is similar to AfPauseImmediate, and if the AfState is currently reporting AfStateFocused or AfStateFailed it will remain in that state and AfPauseState will report AfPauseStatePaused.
However, if the algorithm is scanning (AfStateScanning), AfPauseState will report AfPauseStatePausing until the scan is finished, at which point AfState will report one of AfStateFocused or AfStateFailed, and AfPauseState will change to AfPauseStatePaused.
Resume = 2
Resume continuous autofocus operation.
The algorithm starts again from exactly where it left off, and AfPauseState will report AfPauseStateRunning.