Skip to content

Port CRU's detailed timing presets - #11

Open
neheb wants to merge 1 commit into
ssupt:mainfrom
neheb:cargo-audit
Open

neheb wants to merge 1 commit into
ssupt:mainfrom
neheb:cargo-audit

Conversation

@neheb

@neheb neheb commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Replace the approximated presets with a faithful port of CRU's DetailedResolutionClass calculations: the Automatic PC/HDTV/CRT and Native lookup tables, CVT, CVT-RB, CVT-RB2 and GTF formulas, the Exact rounding rules, and the vertical total (QFT) calculator. All 14 CRU presets are available in CRU's order with CRU's names, and the interlaced flag now feeds into preset calculations.

Verified against CRU's own code compiled natively: 33,925 of 33,930 size/refresh/interlace/preset combinations match exactly; the rest hit a 32-bit overflow in CRU at 65535x65535.

Replace the approximated presets with a faithful port of CRU's
DetailedResolutionClass calculations: the Automatic PC/HDTV/CRT and
Native lookup tables, CVT, CVT-RB, CVT-RB2 and GTF formulas, the Exact
rounding rules, and the vertical total (QFT) calculator. All 14 CRU
presets are available in CRU's order with CRU's names, and the
interlaced flag now feeds into preset calculations.

Verified against CRU's own code compiled natively: 33,925 of 33,930
size/refresh/interlace/preset combinations match exactly; the rest hit
a 32-bit overflow in CRU at 65535x65535.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant