Enum libcamera::controls::AeMeteringMode
source · #[repr(i32)]pub enum AeMeteringMode {
MeteringCentreWeighted = 0,
MeteringSpot = 1,
MeteringMatrix = 2,
MeteringCustom = 3,
}
Expand description
Specify a metering mode for the AE algorithm to use. The metering modes determine which parts of the image are used to determine the scene brightness. Metering modes may be platform specific and not all metering modes may be supported.
Variants§
MeteringCentreWeighted = 0
Centre-weighted metering mode.
MeteringSpot = 1
Spot metering mode.
MeteringMatrix = 2
Matrix metering mode.
MeteringCustom = 3
Custom metering mode.
Trait Implementations§
source§impl Clone for AeMeteringMode
impl Clone for AeMeteringMode
source§fn clone(&self) -> AeMeteringMode
fn clone(&self) -> AeMeteringMode
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 AeMeteringMode
impl ControlEntry for AeMeteringMode
source§impl Debug for AeMeteringMode
impl Debug for AeMeteringMode
source§impl From<AeMeteringMode> for ControlValue
impl From<AeMeteringMode> for ControlValue
source§fn from(val: AeMeteringMode) -> Self
fn from(val: AeMeteringMode) -> Self
Converts to this type from the input type.
source§impl From<AeMeteringMode> for i32
impl From<AeMeteringMode> for i32
source§fn from(enum_value: AeMeteringMode) -> Self
fn from(enum_value: AeMeteringMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for AeMeteringMode
impl PartialEq for AeMeteringMode
source§impl TryFrom<ControlValue> for AeMeteringMode
impl TryFrom<ControlValue> for AeMeteringMode
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
source§impl TryFrom<i32> for AeMeteringMode
impl TryFrom<i32> for AeMeteringMode
source§impl TryFromPrimitive for AeMeteringMode
impl TryFromPrimitive for AeMeteringMode
impl Control for AeMeteringMode
impl Copy for AeMeteringMode
impl Eq for AeMeteringMode
impl StructuralPartialEq for AeMeteringMode
Auto Trait Implementations§
impl Freeze for AeMeteringMode
impl RefUnwindSafe for AeMeteringMode
impl Send for AeMeteringMode
impl Sync for AeMeteringMode
impl Unpin for AeMeteringMode
impl UnwindSafe for AeMeteringMode
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
)