Commit 520a0c5
Fix 4 converter fallback defaults and add comprehensive test coverage
Fixes:
- toDeband: y/cb/cr fallback 64→32 to match model defaults
- toColorCorrection: coring fallback true→false to match model default
- toNoiseReduction: qtgmcEzDenoise fallback 2.0→0.0, qtgmcEzKeepGrain
fallback 0.2→0.0 to match model defaults
New tests (98 total, up from 86):
- QTGMC round-trip: all 70+ params verified (typed→dynamic→typed)
- IVTC round-trip: all 9 params verified
- QTGMC built-in noise reduction round-trip
- Deblock default consistency vs schema
- Converter fallback validation: 8 tests feed empty DynamicParameters
into every toX() method and verify the fallback values match the Dart
model constructor defaults — catches any future ?? value drift
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8dc34e3 commit 520a0c5
2 files changed
Lines changed: 397 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
506 | | - | |
| 505 | + | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
570 | | - | |
571 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
0 commit comments