pub enum TransferFn {
Bt709,
Bt470Bg,
Linear,
St2084,
AribStdB67,
Unspecified,
}Expand description
Transfer characteristics per ITU-T H.273 §8.2 / H.265 Table E.4.
Carried on StreamInfo so the MP4 mux’s colr nclx writer can
round-trip HDR10 (ST2084) and HLG content without losing metadata.
Separate from ColorSpace so existing call sites — every decoder
emits a VideoFrame { color_space, .. } and every colorspace
converter / encoder dispatches on it — continue to compile
unchanged. The transfer function is orthogonal to the matrix
coefficients for pipeline purposes; only the mux needs both.
Variants§
Bt709
Gamma 2.2 / Rec. 709 (H.273 value 1). Default for SDR content.
Bt470Bg
Gamma 2.8 / BT.470BG.
Linear
Linear (H.273 value 8).
St2084
SMPTE ST 2084 / PQ (H.273 value 16). HDR10.
AribStdB67
ARIB STD-B67 / HLG (H.273 value 18). Broadcast HDR.
Unspecified
Unspecified or unmapped — consumers fall back to Bt709 gamma.
Implementations§
Trait Implementations§
Source§impl Clone for TransferFn
impl Clone for TransferFn
Source§fn clone(&self) -> TransferFn
fn clone(&self) -> TransferFn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransferFn
Source§impl Debug for TransferFn
impl Debug for TransferFn
Source§impl Default for TransferFn
impl Default for TransferFn
Source§fn default() -> TransferFn
fn default() -> TransferFn
impl Eq for TransferFn
Source§impl PartialEq for TransferFn
impl PartialEq for TransferFn
Source§fn eq(&self, other: &TransferFn) -> bool
fn eq(&self, other: &TransferFn) -> bool
self and other values to be equal, and is used by ==.