#[non_exhaustive]pub enum PeakSource {
Measured,
Declared,
Fixed(Nits),
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
How an image-level conversion obtains the source peak for HDR tone mapping.
Intentionally has no Default so callers choose explicitly between
Measured (streaming full-image scan),
Declared (metadata-only, refuses if absent), and
Fixed (caller-supplied peak).
Row-only plans accept an explicit Option<Nits> instead of PeakSource,
making it a compile-time error to request PeakSource::Measured on a
single-row converter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Measured
Streamingly measure the image’s peak luminance in O(1) row memory.
Declared
Use the source peak declared in HdrMetadata; refuse if absent.
Fixed(Nits)
Use this explicit peak instead of measuring or consulting container metadata.
Trait Implementations§
Source§impl Clone for PeakSource
impl Clone for PeakSource
Source§fn clone(&self) -> PeakSource
fn clone(&self) -> PeakSource
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 PeakSource
Source§impl Debug for PeakSource
impl Debug for PeakSource
impl Eq for PeakSource
Source§impl Hash for PeakSource
impl Hash for PeakSource
Source§impl PartialEq for PeakSource
impl PartialEq for PeakSource
impl StructuralPartialEq for PeakSource
Auto Trait Implementations§
impl Freeze for PeakSource
impl RefUnwindSafe for PeakSource
impl Send for PeakSource
impl Sync for PeakSource
impl Unpin for PeakSource
impl UnsafeUnpin for PeakSource
impl UnwindSafe for PeakSource
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