pub enum ColorPolicy {
RejectHdr,
WarnHdr,
ToneMapHdr(HdrToneMap),
}Expand description
What happens to an HDR (PQ or HLG) source.
Variants§
RejectHdr
Stop rather than show it: a conversion fails with
crate::RenderError::UnsupportedHdr.
WarnHdr
Return a structured warning and a transparent picture; the caller may skip the source.
ToneMapHdr(HdrToneMap)
Bring it into the SDR working space with this tone map
(crate::hdr).
Trait Implementations§
Source§impl Clone for ColorPolicy
impl Clone for ColorPolicy
impl Copy for ColorPolicy
Source§impl Debug for ColorPolicy
impl Debug for ColorPolicy
impl Eq for ColorPolicy
Source§impl PartialEq for ColorPolicy
impl PartialEq for ColorPolicy
impl StructuralPartialEq for ColorPolicy
Auto Trait Implementations§
impl Freeze for ColorPolicy
impl RefUnwindSafe for ColorPolicy
impl Send for ColorPolicy
impl Sync for ColorPolicy
impl Unpin for ColorPolicy
impl UnsafeUnpin for ColorPolicy
impl UnwindSafe for ColorPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.