#[non_exhaustive]pub enum TransferFunction {
Bt601,
Bt709,
Bt2020,
Hlg,
Pq,
}Expand description
The transfer function of a ColorInfo.
This enum is marked #[non_exhaustive] so that transfer functions a later
SDK names can be added without a breaking change.
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.
Bt601
The SDR transfer of ITU-R BT.601: bt_601.
Bt709
The SDR transfer of ITU-R BT.709: bt_709.
Bt2020
The SDR transfer of ITU-R BT.2020: bt_2020.
Hlg
Hybrid log-gamma, ITU-R BT.2100: bt_2100_hlg.
Pq
Perceptual quantization, ITU-R BT.2100 and SMPTE ST 2084:
bt_2100_pq.
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 Display for TransferFunction
impl Display for TransferFunction
impl Eq for TransferFunction
Source§impl Hash for TransferFunction
impl Hash 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