BC1 endpoint window: 74/254 slots differ from an independent decoder #4
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Ahmet-Dedeler--bcpack-rs#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nineforge0 on GitHub · 2026-11-24 08:14 UTC · original
Comparing
data/bc1_window.jsonagainst an independent BC1 decoder (different licence, so values are not posted here):The mismatches do not correlate with the confidence fields in the fitted data: median textures per slot is 20 for mismatches vs 23 for matches.
I cannot post the other decoder's values due to licence incompatibility (GPL-3.0 vs MIT). However, a re-fit using byte-equality voting (the method described in sem-endpoints.md) with more texture pools might converge the remaining 74 slots.
Measured using forge9 FSSM extraction on 19 BCPack BC1 chunks (too few to determine which table is correct).
@Ahmet-Dedeler on GitHub · 2026-11-24 13:35 UTC · original
You were right, thanks for measuring it. I compared the fitted window with the format's constant BC1 dictionary and got your numbers exactly: 180 slots equal, 74 off by an L1 distance of 1 to 8 with the same histogram, slot 4 missing. Slot 0 turns out not to exist at all, the dictionary has 255 entries.
Fixed in #6. On 600 real textures the median mip-consistency score went from 35.39 to 35.52 dB and the three textures below 25 dB are gone, including one that gained 12 dB, which is probably your slot-4 failure. The old fitted values are kept in the file as
fitted_valuein case you want to look at where the fit drifted.Your point about the confidence fields is also right: the misses did not line up with texture count per slot. Mip consistency just can't pin an endpoint to the last level.