#[non_exhaustive]pub struct ToneMapContext {
pub source_peak_nits: f32,
pub target_peak_nits: f32,
pub working_primaries: Primaries,
}Expand description
Gathered analysis context handed to ToneMapper::prepare.
Fields are populated by the pipeline based on Requirements flags.
Optional fields are Some iff the corresponding flag was true.
Required fields (source_peak_nits,
target_peak_nits,
working_primaries) are always populated.
Constructed by the pipeline; downstream code generally only reads
this. The struct is #[non_exhaustive] so additional optional stats
can be added in patch releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_peak_nits: f32Resolved source peak luminance in cd/m², supplied via RowPlan::build
or PeakSource (Fixed, Declared, or Measured).
target_peak_nits: f32Target peak luminance in cd/m².
working_primaries: PrimariesWorking primaries the strip will be in. Default Primaries::Bt2020.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToneMapContext
impl RefUnwindSafe for ToneMapContext
impl Send for ToneMapContext
impl Sync for ToneMapContext
impl Unpin for ToneMapContext
impl UnsafeUnpin for ToneMapContext
impl UnwindSafe for ToneMapContext
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