pub struct HdrPassthroughConfig {
pub enabled: bool,
pub convert_hdr10_to_hlg: bool,
pub inject_sei: bool,
}Expand description
High-level configuration for HDR metadata passthrough in the transcode pipeline.
This is a simplified overlay on top of HdrPassthroughMode: the three
boolean fields map to common production requirements without requiring
callers to construct the full enum.
Fields§
§enabled: boolEnable HDR metadata passthrough. When false, all HDR metadata
is stripped from the output.
convert_hdr10_to_hlg: boolWhen true and enabled, convert HDR10 (PQ/ST-2084) input to
HLG (ITU-R BT.2100). The pixel-level tone-map must be handled
separately by a filter op; this flag only updates the stream-level
transfer-function descriptor.
inject_sei: boolWhen true and enabled, inject SMPTE ST 2086 mastering-display
and CTA-861.3 content-light-level SEI payloads into every output
packet.
Implementations§
Source§impl HdrPassthroughConfig
impl HdrPassthroughConfig
Sourcepub fn passthrough() -> Self
pub fn passthrough() -> Self
Create a simple pass-through config (no conversion, no SEI injection).
Sourcepub fn to_mode(&self) -> HdrPassthroughMode
pub fn to_mode(&self) -> HdrPassthroughMode
Resolve this config into an HdrPassthroughMode for use with
HdrProcessor.
Trait Implementations§
Source§impl Clone for HdrPassthroughConfig
impl Clone for HdrPassthroughConfig
Source§fn clone(&self) -> HdrPassthroughConfig
fn clone(&self) -> HdrPassthroughConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HdrPassthroughConfig
impl Debug for HdrPassthroughConfig
Source§impl Default for HdrPassthroughConfig
impl Default for HdrPassthroughConfig
Source§fn default() -> HdrPassthroughConfig
fn default() -> HdrPassthroughConfig
Auto Trait Implementations§
impl Freeze for HdrPassthroughConfig
impl RefUnwindSafe for HdrPassthroughConfig
impl Send for HdrPassthroughConfig
impl Sync for HdrPassthroughConfig
impl Unpin for HdrPassthroughConfig
impl UnsafeUnpin for HdrPassthroughConfig
impl UnwindSafe for HdrPassthroughConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more