Commit ce3d759
committed
Better handle signed and integer output types.
When running the CLI, if the original input image is a UNorm type and the
output texture type is SNorm, the values will be re-mapped from [0, 1] to
[-1, 1] before conversion. In the case of Int and UInt outputs, the value
will be converted to the full integer range.
Conversion to EAC signed formats now take into account the fact that it
assumes the inputs are in the range [0, 1].
Worked around bugs in FreeImage conversions:
* RGB5 and RGB565 to RGBF handles the values as a 24 BPP image.
* Grayscale values converted to double don't normalize the values.
Updated astc-encoder to 5.3.0. Incremented version to 2.9.0.1 parent 63be6f0 commit ce3d759
File tree
11 files changed
+648
-37
lines changed- lib
- include/cuttlefish
- src
- test
- tool
11 files changed
+648
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Submodule ISPCTextureCompressor updated 1 file
Submodule astc-encoder updated 43 files
- .github/workflows/build_test.yaml+159-24
- .github/workflows/post_weekly_release.yaml+56-3
- .gitignore+2
- CMakeLists.txt+7-2
- Docs/Building-BE.md+97
- Docs/ChangeLog-5x.md+47-1
- README.md+9-3
- Source/CMakeLists.txt+19-2
- Source/GoogleTest+1-1
- Source/UnitTest/cmake_core.cmake+44-20
- Source/UnitTest/test_simd.cpp+214-223
- Source/astcenc.h+15-1
- Source/astcenc_averages_and_directions.cpp+42-42
- Source/astcenc_block_sizes.cpp+13-13
- Source/astcenc_color_unquantize.cpp+2-9
- Source/astcenc_compress_symbolic.cpp+2-2
- Source/astcenc_entry.cpp+24-1
- Source/astcenc_find_best_partitioning.cpp+2-2
- Source/astcenc_ideal_endpoints_and_weights.cpp+9-9
- Source/astcenc_internal.h+4-10
- Source/astcenc_internal_entry.h+26-11
- Source/astcenc_mathlib.h+3-3
- Source/astcenc_partition_tables.cpp+3-3
- Source/astcenc_pick_best_endpoint_format.cpp+9-6
- Source/astcenc_vecmathlib.h+10-29
- Source/astcenc_vecmathlib_avx2_8.h+15-2
- Source/astcenc_vecmathlib_common_4.h+16-2
- Source/astcenc_vecmathlib_neon_4.h-9
- Source/astcenc_vecmathlib_none_4.h+13-13
- Source/astcenc_vecmathlib_sse_4.h-16
- Source/astcenc_vecmathlib_sve_8.h+9
- Source/astcenccli_image_load_store.cpp+64-26
- Source/astcenccli_platform_dependents.cpp+2
- Source/astcenccli_toplevel.cpp+2-1
- Source/cmake_compiler.cmake+37
- Source/cmake_core.cmake+10-22
- Test/Images/Small/astc_reference-main-avx2_fast_results.csv+149-149
- Test/Images/Small/astc_reference-main-avx2_fastest_results.csv+149-149
- Test/Images/Small/astc_reference-main-avx2_medium_results.csv+149-149
- Test/Images/Small/astc_reference-main-avx2_thorough_results.csv+149-149
- Test/astc_test_functional.py+2-2
- Test/astc_test_image.py+1-1
- Utils/Example/astc_api_example.cpp+1-5
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
334 | 351 | | |
335 | 352 | | |
336 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
197 | 209 | | |
198 | 210 | | |
199 | 211 | | |
| |||
1176 | 1188 | | |
1177 | 1189 | | |
1178 | 1190 | | |
1179 | | - | |
1180 | | - | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1181 | 1194 | | |
1182 | 1195 | | |
1183 | 1196 | | |
| |||
1229 | 1242 | | |
1230 | 1243 | | |
1231 | 1244 | | |
1232 | | - | |
1233 | | - | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1234 | 1249 | | |
1235 | 1250 | | |
1236 | 1251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
769 | 770 | | |
770 | 771 | | |
771 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
772 | 902 | | |
773 | 903 | | |
774 | 904 | | |
| |||
0 commit comments