Polymorphism Phase 2 + remove unused gamma/saturation fields
ProcessorManager: replace all isinstance checks with property-based dispatch via base TargetProcessor (device_id, led_client, get_display_index, update_device, update_calibration). Remove gamma/saturation from ProcessingSettings, ColorCorrection schema, serialization, and migration — these were never used in the processing pipeline and are handled by postprocessing template filters. Delete dead apply_color_correction() function. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -79,10 +79,7 @@ def _migrate_devices_to_targets():
|
||||
settings = ProcessingSettings(
|
||||
display_index=legacy_settings.get("display_index", 0),
|
||||
fps=legacy_settings.get("fps", 30),
|
||||
border_width=legacy_settings.get("border_width", 10),
|
||||
brightness=legacy_settings.get("brightness", 1.0),
|
||||
gamma=legacy_settings.get("gamma", 2.2),
|
||||
saturation=legacy_settings.get("saturation", 1.0),
|
||||
smoothing=legacy_settings.get("smoothing", 0.3),
|
||||
interpolation_mode=legacy_settings.get("interpolation_mode", "average"),
|
||||
state_check_interval=legacy_settings.get("state_check_interval", DEFAULT_STATE_CHECK_INTERVAL),
|
||||
|
||||
Reference in New Issue
Block a user