BC1 endpoint window: 74/254 slots differ from an independent decoder #4

Closed
opened 2026-11-26 18:55:53 +00:00 by github-bot · 1 comment
Owner

@⁠nineforge0 on GitHub · 2026-11-24 08:14 UTC · original

Comparing data/bc1_window.json against an independent BC1 decoder (different licence, so values are not posted here):

  • 180 / 254 slots match exactly.
  • 74 slots differ with L1 distance: 1 (32 slots), 2 (32), 3 (6), 4 (1), 5 (1), 7 (1), 8 (1).
  • Slot 4 is present in the other decoder but missing here. Its absence causes one known BC1 failure (see the slot-4 report on a downstream PR).

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).

**@⁠nineforge0** on GitHub · 2026-11-24 08:14 UTC · [original](https://github.com/Ahmet-Dedeler/bcpack-rs/issues/4) Comparing `data/bc1_window.json` against an independent BC1 decoder (different licence, so values are not posted here): - **180 / 254 slots match exactly.** - **74 slots differ** with L1 distance: 1 (32 slots), 2 (32), 3 (6), 4 (1), 5 (1), 7 (1), 8 (1). - **Slot 4 is present in the other decoder but missing here.** Its absence causes one known BC1 failure (see the slot-4 report on a downstream PR). 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:55:53 +00:00
Author
Owner

@⁠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_value in 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.

**@⁠Ahmet-Dedeler** on GitHub · 2026-11-24 13:35 UTC · [original](https://github.com/Ahmet-Dedeler/bcpack-rs/issues/4#issuecomment-7133043974) 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_value` in 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Ahmet-Dedeler--bcpack-rs#4
No description provided.