#[non_exhaustive]pub enum TransferFunction {
TraditionalGammaSdr,
TraditionalGammaHdr,
SmpteSt2084Pq,
Bt2100Hlg,
}Expand description
Source-side electro-optical transfer function.
The integer values are the kernel’s enum hdmi_eotf. That enum is
kernel-internal, so the mapping is restated here to keep it stable for
userspace; TransferFunction::as_u8 is the only place it is applied.
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.
TraditionalGammaSdr
BT.1886 / sRGB.
TraditionalGammaHdr
Traditional gamma, HDR range.
SmpteSt2084Pq
SMPTE ST 2084 (PQ) – HDR10 and HDR10+.
Bt2100Hlg
BT.2100 hybrid log-gamma.
Implementations§
Trait Implementations§
Source§impl Clone for TransferFunction
impl Clone for TransferFunction
impl Copy for TransferFunction
Source§impl Debug for TransferFunction
impl Debug for TransferFunction
Source§impl Default for TransferFunction
impl Default for TransferFunction
impl Eq for TransferFunction
Source§impl PartialEq for TransferFunction
impl PartialEq for TransferFunction
impl StructuralPartialEq for TransferFunction
Auto Trait Implementations§
impl Freeze for TransferFunction
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnsafeUnpin for TransferFunction
impl UnwindSafe for TransferFunction
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