Enum libcamera::controls::AfMetering
source · #[repr(i32)]pub enum AfMetering {
Auto = 0,
Windows = 1,
}
Expand description
Instruct the AF algorithm how it should decide which parts of the image should be used to measure focus.
Variants§
Auto = 0
The AF algorithm should decide for itself where it will measure focus.
Windows = 1
The AF algorithm should use the rectangles defined by the AfWindows control to measure focus. If no windows are specified the behaviour is platform dependent.
Trait Implementations§
source§impl Clone for AfMetering
impl Clone for AfMetering
source§fn clone(&self) -> AfMetering
fn clone(&self) -> AfMetering
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ControlEntry for AfMetering
impl ControlEntry for AfMetering
source§impl Debug for AfMetering
impl Debug for AfMetering
source§impl From<AfMetering> for ControlValue
impl From<AfMetering> for ControlValue
source§fn from(val: AfMetering) -> Self
fn from(val: AfMetering) -> Self
Converts to this type from the input type.
source§impl From<AfMetering> for i32
impl From<AfMetering> for i32
source§fn from(enum_value: AfMetering) -> Self
fn from(enum_value: AfMetering) -> Self
Converts to this type from the input type.
source§impl PartialEq for AfMetering
impl PartialEq for AfMetering
source§impl TryFrom<ControlValue> for AfMetering
impl TryFrom<ControlValue> for AfMetering
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
source§impl TryFrom<i32> for AfMetering
impl TryFrom<i32> for AfMetering
source§impl TryFromPrimitive for AfMetering
impl TryFromPrimitive for AfMetering
impl Control for AfMetering
impl Copy for AfMetering
impl Eq for AfMetering
impl StructuralPartialEq for AfMetering
Auto Trait Implementations§
impl Freeze for AfMetering
impl RefUnwindSafe for AfMetering
impl Send for AfMetering
impl Sync for AfMetering
impl Unpin for AfMetering
impl UnwindSafe for AfMetering
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
)