Replace the Lensfun WebAssembly runtime with our own lens engine.

The wrapper's wasm, its 5 MB data blob and the runtime chunk were fragile to
serve (CSP, MIME, cache) and pulled an LGPL runtime into the bundle just for
calibration data. The Lensfun XML is now converted at build time into
public/lens-db/profiles.json, and search, matching and the correction maths live
in src/lib/lensDb.ts and src/lib/lensEngine.ts. Maps are pinned against output
captured from the previous implementation, so results are unchanged.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 05:17:02 +00:00
parent 637629385a
commit 16456c3c69
29 changed files with 1277 additions and 66564 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import {
correctLensPoint,
uncorrectLensPoint,
type LensCorrection,
} from '../lib/lensfun';
} from '../lib/lensEngine';
import {
frameToSource,
rotatedBounds,