Repository navigation
Add RGBW colorimetric codec profile API - #3435
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (24)
📝 WalkthroughWalkthroughThis PR refactors the RGBW colorimetric solver to carry a per-instance ChangesRGBW Colorimetric Per-Profile Ownership Refactor
AutoResearch Pin 22 Guard and CI Cache Fix
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
src/fl/color/rgbw.has the publicfl::color::*facade for RGBW colorimetric profile APIs.fl::shared_ptr<const fl::color::DiodeProfile>in the RGBW examples instead of the removedDiodeProfilePtrConstalias.fl::Rgbwcarry an owned immutable profile directly, and warm the colorimetric cache fromsetRgbw(...)before the hot pixel path uses it.fastled-lintwithsoldr --no-cache cargo build, avoiding the hosted-runner zccache protocol mismatch, and update the ESP32-S3 bloat baseline for the intentional size change.Attribution
Thanks to sonia (@JChalka) for originating the RGBW colorimetric work, the math-model discussion, verifier material, and roadmap that shaped this API and the strategy harness.
Example sketch:
https://github.com/FastLED/FastLED/blob/codex/rgbw-colorimetric-codec/examples/RGBWColorimetric/RGBWColorimetric.ino
Verification
bash test fastled_core --cpp --verbose --no-fingerprint --cleanbash test rgbw_colorimetric --cpp --verbose --no-fingerprintbash test colorimetric_strategy_table --cpp --verbose --no-fingerprintbash test --examples RGBW --verbose --no-fingerprint --cleanbash test --examples RGBWColorimetric --verbose --no-fingerprint --cleanbash lint --cpp --no-fingerprint src/fl/gfx/rgbw.h src/fl/gfx/rgbw.cpp.hpp src/fl/color/rgbw.h src/FastLED.h examples/RGBW/RGBW.ino examples/RGBWColorimetric/RGBWColorimetric.ino tests/fastled_core.cpp tests/fl/gfx/rgbw_colorimetric.cpp tests/misc/colorimetric_strategy_table.cppsoldr --no-cache cargo build --manifest-path ci/lint_cpp_rs/Cargo.toml --bin fastled-lintpython -m py_compile ci/lint_cpp/rust_binary_cache.pygit diff --checkCloses #2748.
Closes #3231.
Closes #3242.
Closes #3255.
Closes #3422.
Closes #3429.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation