Enum ColorTransfer
#[repr(u8)]pub enum ColorTransfer {
Show 16 variants
Bt1886 = 0,
Bt470M = 1,
Bt470Bg = 2,
Smpte170M = 3,
Smpte240M = 4,
Linear = 5,
Log100 = 6,
Log316 = 7,
Xvycc = 8,
Bt1361E = 9,
Srgb = 10,
Bt2020_10 = 11,
Bt2020_12 = 12,
Pq = 13,
Smpte428 = 14,
Hlg = 15,
}Expand description
Official transfer-function metadata values.
Variants§
Bt1886 = 0
ITU-R BT.1886 transfer function.
Bt470M = 1
ITU-R BT.470 System M transfer function.
Bt470Bg = 2
ITU-R BT.470 System B/G transfer function.
Smpte170M = 3
SMPTE 170M transfer function.
Smpte240M = 4
SMPTE 240M transfer function.
Linear = 5
Linear-light transfer function.
Log100 = 6
Logarithmic curve with 100:1 range.
Log316 = 7
Logarithmic curve with 316:1 range.
Xvycc = 8
xvYCC transfer function.
Bt1361E = 9
ITU-R BT.1361 extended-color-gamut transfer function.
Srgb = 10
IEC sRGB transfer function.
Bt2020_10 = 11
ITU-R BT.2020 10-bit transfer function.
Bt2020_12 = 12
ITU-R BT.2020 12-bit transfer function.
Pq = 13
SMPTE ST 2084 perceptual quantizer.
Smpte428 = 14
SMPTE ST 428 transfer function.
Hlg = 15
ARIB STD-B67 hybrid log-gamma.
Implementations§
§impl ColorTransfer
impl ColorTransfer
pub fn parse(value: &str) -> Result<ColorTransfer, PixelFlowError>
pub fn parse(value: &str) -> Result<ColorTransfer, PixelFlowError>
Parses canonical transfer metadata string.
Trait Implementations§
§impl Clone for ColorTransfer
impl Clone for ColorTransfer
§fn clone(&self) -> ColorTransfer
fn clone(&self) -> ColorTransfer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ColorTransfer
impl Debug for ColorTransfer
§impl PartialEq for ColorTransfer
impl PartialEq for ColorTransfer
impl Copy for ColorTransfer
impl Eq for ColorTransfer
impl StructuralPartialEq for ColorTransfer
Auto Trait Implementations§
impl Freeze for ColorTransfer
impl RefUnwindSafe for ColorTransfer
impl Send for ColorTransfer
impl Sync for ColorTransfer
impl Unpin for ColorTransfer
impl UnsafeUnpin for ColorTransfer
impl UnwindSafe for ColorTransfer
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