pub struct FocusFoM(pub i32);
Expand description
Reports a Figure of Merit (FoM) to indicate how in-focus the frame is. A larger FocusFoM value indicates a more in-focus frame. This singular value may be based on a combination of statistics gathered from multiple focus regions within an image. The number of focus regions and method of combination is platform dependent. In this respect, it is not necessarily aimed at providing a way to implement a focus algorithm by the application, rather an indication of how in-focus a frame is.
Tuple Fields§
§0: i32
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl From<FocusFoM> for ControlValue
impl From<FocusFoM> for ControlValue
source§impl TryFrom<ControlValue> for FocusFoM
impl TryFrom<ControlValue> for FocusFoM
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Control for FocusFoM
Auto Trait Implementations§
impl Freeze for FocusFoM
impl RefUnwindSafe for FocusFoM
impl Send for FocusFoM
impl Sync for FocusFoM
impl Unpin for FocusFoM
impl UnwindSafe for FocusFoM
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)