Browse Source

Math: adapt ColorBatch BCn ground truth test files to bcdec changes.

It fixed interpolation for a more precise rounding, which means the
ground truth files for this test are now off-by-one compared to before.
In particular, nothing in the _source_ BCn data or the Y-flip algorithm
changed, it's just that they're now decoded to RGBA differently by bcdec
so the tests fail.
pull/641/head
Vladimír Vondruš 2 years ago
parent
commit
cb26d05092
  1. 10
      src/Magnum/Math/Test/ColorBatchTestFiles/README.md
  2. BIN
      src/Magnum/Math/Test/ColorBatchTestFiles/bc1.png
  3. BIN
      src/Magnum/Math/Test/ColorBatchTestFiles/bc3.png
  4. BIN
      src/Magnum/Math/Test/ColorBatchTestFiles/checkerboard-odd.png
  5. BIN
      src/Magnum/Math/Test/ColorBatchTestFiles/checkerboard.png

10
src/Magnum/Math/Test/ColorBatchTestFiles/README.md

@ -12,11 +12,13 @@ blocks.
Both are then passed through StbDxtImageConverter and subsequently decoded Both are then passed through StbDxtImageConverter and subsequently decoded
back to `checkerboard.png` and `checkerboard-odd.png` with back to `checkerboard.png` and `checkerboard-odd.png` with
`compress-format-blocks.py` to act as a ground truth, the output of the script `format-block-data.py` to act as a ground truth. The full invocation is listed
and its full invocation is pasted to the `ColorBatchTest.cpp`. for each particular case in `ColorBatchTest.cpp`, the output of the script is
then right below.
The remaining images are generated with `extract-interesting-blocks.py`, the The remaining `bc*.png` images are generated with
output of that script and its full invocation is again in `ColorBatchTest.cpp`. `extract-interesting-blocks.py`, the full invocation for each particular case
and the generated output is again in `ColorBatchTest.cpp`.
Unlike in other tests, the images are PNGs and not TGAs. The full test process Unlike in other tests, the images are PNGs and not TGAs. The full test process
requires `BcDecImageConverter` from the plugins repo anyway, so there's no requires `BcDecImageConverter` from the plugins repo anyway, so there's no

BIN
src/Magnum/Math/Test/ColorBatchTestFiles/bc1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

After

Width:  |  Height:  |  Size: 237 B

BIN
src/Magnum/Math/Test/ColorBatchTestFiles/bc3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 190 B

BIN
src/Magnum/Math/Test/ColorBatchTestFiles/checkerboard-odd.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 411 B

BIN
src/Magnum/Math/Test/ColorBatchTestFiles/checkerboard.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 355 B

Loading…
Cancel
Save