#[non_exhaustive]pub struct Requirements {
pub source_peak_nits: bool,
pub full_image: bool,
}Expand description
Pipeline analysis requirements declared by a ToneMapper.
The pipeline reads this before building the execution plan and
inserts analysis steps for whichever fields are true:
source_peak_nits— pipeline resolves viaPeakSource(including streaming measurement viameasure_content_light_level) and forwards it intoToneMapContext.full_image— pipeline buffers the entire source image before callingprepare. Reserved for a future release. SettingtruereturnsFullImageMapperNotSupportedfrom the builder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_peak_nits: boolThe mapper reads ToneMapContext::source_peak_nits, resolved from
PeakSource or RowPlan::build’s hdr_peak.
full_image: boolThe pipeline must buffer the entire source image before calling
prepare. Reserved for a future release. Setting true returns
FullImageMapperNotSupported
when configured via
ConvertPolicy::with_tone_mapper.
Implementations§
Source§impl Requirements
impl Requirements
Sourcepub const NONE: Self
pub const NONE: Self
No analysis required. The mapper is fully self-contained (peaks pre-baked at construction, no image stats needed).
Sourcepub const SOURCE_PEAK_ONLY: Self
pub const SOURCE_PEAK_ONLY: Self
Only source peak is needed — the common case for any pointwise
tone curve that wants the pipeline to measure or supply the
peak (e.g., Bt2446A::pipeline_managed).
Trait Implementations§
Source§impl Clone for Requirements
impl Clone for Requirements
Source§fn clone(&self) -> Requirements
fn clone(&self) -> Requirements
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more