Enum libcamera::controls::AeConstraintMode
source · #[repr(i32)]pub enum AeConstraintMode {
ConstraintNormal = 0,
ConstraintHighlight = 1,
ConstraintShadows = 2,
ConstraintCustom = 3,
}
Expand description
Specify a constraint mode for the AE algorithm to use. These determine how the measured scene brightness is adjusted to reach the desired target exposure. Constraint modes may be platform specific, and not all constraint modes may be supported.
Variants§
ConstraintNormal = 0
Default constraint mode. This mode aims to balance the exposure of different parts of the image so as to reach a reasonable average level. However, highlights in the image may appear over-exposed and lowlights may appear under-exposed.
ConstraintHighlight = 1
Highlight constraint mode. This mode adjusts the exposure levels in order to try and avoid over-exposing the brightest parts (highlights) of an image. Other non-highlight parts of the image may appear under-exposed.
ConstraintShadows = 2
Shadows constraint mode. This mode adjusts the exposure levels in order to try and avoid under-exposing the dark parts (shadows) of an image. Other normally exposed parts of the image may appear over-exposed.
ConstraintCustom = 3
Custom constraint mode.
Trait Implementations§
source§impl Clone for AeConstraintMode
impl Clone for AeConstraintMode
source§fn clone(&self) -> AeConstraintMode
fn clone(&self) -> AeConstraintMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ControlEntry for AeConstraintMode
impl ControlEntry for AeConstraintMode
source§impl Debug for AeConstraintMode
impl Debug for AeConstraintMode
source§impl From<AeConstraintMode> for ControlValue
impl From<AeConstraintMode> for ControlValue
source§fn from(val: AeConstraintMode) -> Self
fn from(val: AeConstraintMode) -> Self
source§impl From<AeConstraintMode> for i32
impl From<AeConstraintMode> for i32
source§fn from(enum_value: AeConstraintMode) -> Self
fn from(enum_value: AeConstraintMode) -> Self
source§impl PartialEq for AeConstraintMode
impl PartialEq for AeConstraintMode
source§impl TryFrom<ControlValue> for AeConstraintMode
impl TryFrom<ControlValue> for AeConstraintMode
source§type Error = ControlValueError
type Error = ControlValueError
source§impl TryFrom<i32> for AeConstraintMode
impl TryFrom<i32> for AeConstraintMode
source§impl TryFromPrimitive for AeConstraintMode
impl TryFromPrimitive for AeConstraintMode
impl Control for AeConstraintMode
impl Copy for AeConstraintMode
impl Eq for AeConstraintMode
impl StructuralPartialEq for AeConstraintMode
Auto Trait Implementations§
impl Freeze for AeConstraintMode
impl RefUnwindSafe for AeConstraintMode
impl Send for AeConstraintMode
impl Sync for AeConstraintMode
impl Unpin for AeConstraintMode
impl UnwindSafe for AeConstraintMode
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
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)
clone_to_uninit
)