pub struct AdaptiveExposure {
pub exposure: f32,
pub min: f32,
pub max: f32,
pub speed_up: f32,
pub speed_down: f32,
}Expand description
Augen-Adaption: die Belichtung wandert mit begrenzter Geschwindigkeit (in Blenden/Sekunde) zum Zielwert, im log2-Raum — wie die Pupille.
Richtungsgesondert: steigt die Belichtung (Szene wird dunkler), adaptiert das Auge schnell; sinkt sie (Szene wird heller, Blendung), langsam. Beide Tempi sind konfigurierbar.
Fields§
§exposure: f32Aktueller Belichtungs-Multiplikator.
min: f32Erlaubter Bereich des Multiplikators.
max: f32§speed_up: f32Blenden/Sekunde, wenn die Belichtung steigt (dunkle Szene).
speed_down: f32Blenden/Sekunde, wenn die Belichtung sinkt (helle Szene).
Implementations§
Source§impl AdaptiveExposure
impl AdaptiveExposure
Sourcepub fn target_for(&self, mean_lum: f32, key: f32) -> f32
pub fn target_for(&self, mean_lum: f32, key: f32) -> f32
Ziel-Belichtung für eine gemessene Szenen-Leuchtdichte:
key / L, in [min, max] geklemmt. Schwarze Szenen (L ≤ 0)
ziehen auf max (stärkstes Aufhellen).
Trait Implementations§
Source§impl Clone for AdaptiveExposure
impl Clone for AdaptiveExposure
Source§fn clone(&self) -> AdaptiveExposure
fn clone(&self) -> AdaptiveExposure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdaptiveExposure
Source§impl Debug for AdaptiveExposure
impl Debug for AdaptiveExposure
Source§impl Default for AdaptiveExposure
impl Default for AdaptiveExposure
Source§impl PartialEq for AdaptiveExposure
impl PartialEq for AdaptiveExposure
Source§fn eq(&self, other: &AdaptiveExposure) -> bool
fn eq(&self, other: &AdaptiveExposure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdaptiveExposure
Auto Trait Implementations§
impl Freeze for AdaptiveExposure
impl RefUnwindSafe for AdaptiveExposure
impl Send for AdaptiveExposure
impl Sync for AdaptiveExposure
impl Unpin for AdaptiveExposure
impl UnsafeUnpin for AdaptiveExposure
impl UnwindSafe for AdaptiveExposure
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