Catch data-entry errors like a 4MP camera (2560×1440) mislabeled megapixels: 8 — hand-caught during the X-Spans import.
Add to scripts/build.js (alongside the #124 lint): for single-sensor cameras, warn/error if megapixels diverges from (max_width × max_height) / 1e6 beyond a tolerance (~±35%).
Must exempt multi-sensor cameras — panoramic / dual-lens / X-Spans legitimately use combined megapixels with single-stream max_width×max_height (e.g. SDT8C842 'Dual 8MP' → 16 MP). Detect via type (panoramic/dual-lens) or a 'Dual/Quad/x N' label, and skip those.
Catch data-entry errors like a 4MP camera (2560×1440) mislabeled
megapixels: 8— hand-caught during the X-Spans import.Add to
scripts/build.js(alongside the #124 lint): for single-sensor cameras, warn/error ifmegapixelsdiverges from(max_width × max_height) / 1e6beyond a tolerance (~±35%).Must exempt multi-sensor cameras — panoramic / dual-lens / X-Spans legitimately use combined megapixels with single-stream
max_width×max_height(e.g.SDT8C842'Dual 8MP' → 16 MP). Detect via type (panoramic/dual-lens) or a 'Dual/Quad/x N' label, and skip those.