From cb26d050921bef3095b26436b66401a4c5eac151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 3 Jul 2024 19:58:49 +0200 Subject: [PATCH] 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. --- .../Math/Test/ColorBatchTestFiles/README.md | 10 ++++++---- .../Math/Test/ColorBatchTestFiles/bc1.png | Bin 232 -> 237 bytes .../Math/Test/ColorBatchTestFiles/bc3.png | Bin 189 -> 190 bytes .../ColorBatchTestFiles/checkerboard-odd.png | Bin 412 -> 411 bytes .../Test/ColorBatchTestFiles/checkerboard.png | Bin 355 -> 355 bytes 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Math/Test/ColorBatchTestFiles/README.md b/src/Magnum/Math/Test/ColorBatchTestFiles/README.md index 3997ac0d0..4f945cbe5 100644 --- a/src/Magnum/Math/Test/ColorBatchTestFiles/README.md +++ b/src/Magnum/Math/Test/ColorBatchTestFiles/README.md @@ -12,11 +12,13 @@ blocks. Both are then passed through StbDxtImageConverter and subsequently decoded back to `checkerboard.png` and `checkerboard-odd.png` with -`compress-format-blocks.py` to act as a ground truth, the output of the script -and its full invocation is pasted to the `ColorBatchTest.cpp`. +`format-block-data.py` to act as a ground truth. The full invocation is listed +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 -output of that script and its full invocation is again in `ColorBatchTest.cpp`. +The remaining `bc*.png` images are generated with +`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 requires `BcDecImageConverter` from the plugins repo anyway, so there's no diff --git a/src/Magnum/Math/Test/ColorBatchTestFiles/bc1.png b/src/Magnum/Math/Test/ColorBatchTestFiles/bc1.png index 31440d67423466792e729918e7c7bc731b3ddb25..3e04000969d826dba333b76f424960ad6e4c03b8 100644 GIT binary patch delta 209 zcmV;?051RN0qp^hB!9F?L_t&-m0gZ83c^4XMBhd$A&qxXT)RzHR_yc$o9BZ!ryy_LA2rV!j4cm}(*2#LgjDgI;lGh)$FUUm)AWERI!;@#B(AiD01g%+mq@0000YW}gkV_`Btfwm2&3k||0kIbcQe}B@4;y6M4B3S3%%;^BYOce;DAX9;Q*&Zd~V`q zQ_=;{h3x`h143ZYKy=*ve-$Ti{1KnP@LBR}qAiVidQckE0~)z*(0fRSCbJF^Gg|NN=Fw{5)7x4VC0l@kCD*$Joc42?EWo!>>+Bw0_ zjqwfu>7-L;c{<1jdSnB=g*W=I0w>jy>lYpG+jmV>2LS9Px~>fo&+if;`vpqHE8DPy zYdy#!Jvp(YHhIma2M`6KFuv_G>6+BE7&R?MCebC6=+fI#xN8X_Km-s@lo6B>U`3n| zUTFaC~DAXB!6k^(LuK)d6pThVc_MOEeEUAGuFZB0lzl9XZSwD0f3N>wU{++qX+To!cLsHJ^mOotfdP(L7#RNE z{=|SHh6MH>;A9XM`-R&D%xWAsZHEChHB>$eGKbAu5U*xOhmq_q0@r_&9043Fp$p*! qDCxk+!4V_%Ap_1-NenTHV*vma%TX-<|Kf%K0000ZB0l(J2XZSwD0e{cL?U{+wmX+To!cLp_e^mOotfdP(L7#RNE z`NV)Ch6MH>;A9XH`-R&D%xWAsZHEChRa8C;GKbAu5U*xOhmq_q0yln>9043F;WhvZ qKuHHi4vrY94;gT#N@9pn918#zl2I)E#Kx8Y0000