Repository navigation
Description
Context
#4156 R7 asks the rendering white and OKLCh mapping space to share a defined reference. The D65 mapping-space part is implemented and tested, but ChannelOptions::setTargetWhite() accepts and stores a valid white while current rendering does not consume it: src/fl/channels/options.h stores it, src/fl/channels/channel.h exposes it, and src/fl/gfx/pipeline.cpp.hpp processes through a pipeline whose white is built without this override. The regression in #4317 records that the setter is inert. This is an accepted setting with no visible effect.
Proposal
Thread the channel's selected target white into pipeline construction and gamut mapping. Define its precedence against source profile white and measured emitter white, and recompute the brightest feasible neutral for the selected white. If a requested white is outside the emitter gamut, return an explicit binding/result status rather than silently ignoring it. Preserve D65 as the OKLCh computation space with symmetric adaptation of target and gamut.
Acceptance criteria
- Capture RED evidence that two distinct accepted target whites currently yield the same wire output for a profile and source where the selected neutral should differ; implement, then make it GREEN.
- Test D65 and warm targets, a neutral ramp, out-of-gamut target white, source/profile rebinding, and RGB allocation. Physical RGBW/RGBWW managed allocation is tracked separately in feat(color): connect profiled RGBW/RGBWW emitters to managed output #4515; do not count legacy delegation as managed coverage. Compare emitted XYZ/chromaticity to the selected neutral axis and P5 reference.
- Document the distinction among source white, selected rendering white, physical all-emitter-full output, and maximum neutral luminance; keep no-override behavior compatible.
- Verify cache invalidation and profile lifetime when the target white changes.
Decisions
- Make the accepted setter effective rather than deprecating it: it is already public, validated, and carried to
Channel. - Keep the D65 OKLCh reference established by test(gfx): R7's neutral-axis question, measured — and the override that reaches nothing #4317; the remaining problem is override propagation and feasible-neutral normalization.
Related issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(color): honor managed target-white overrides (FastLED#4532)