Commit 64a6900
authored
Export ktxTexture2_DecodeAstc in JS bindings (#1034)
Add ktxTexture2_DecodeAstc to `libktx_read`, a previous omission. Needed
too so the function can be included in the read-only JS bindings.
Add tests of ASTC encode and decode functionality to `texturetest`. The
change includes needing to pass the path to `ktxdiff` to `texturetests`
as the new tests use it to compare the decoded result with the original
image.
Change `texturetest` to use std::filesystem::path and c++17.
Fix issue in `astc_codec.cpp` where conversion of `params.inputSwizzle'
could fail, asserting in a debug build.1 parent f753fca commit 64a6900
12 files changed
Lines changed: 1335 additions & 973 deletions
File tree
- .github/workflows
- interface/js_binding
- lib
- tests
- loadtests
- streamtests
- texturetests
- transcodetests
- webgl
- libktx-webgl
- llt-three
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
766 | | - | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1277 | 1278 | | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1285 | 1289 | | |
1286 | 1290 | | |
1287 | 1291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
| |||
363 | 373 | | |
364 | 374 | | |
365 | 375 | | |
366 | | - | |
| 376 | + | |
367 | 377 | | |
368 | 378 | | |
369 | 379 | | |
| |||
426 | 436 | | |
427 | 437 | | |
428 | 438 | | |
429 | | - | |
| 439 | + | |
430 | 440 | | |
431 | 441 | | |
432 | 442 | | |
| |||
443 | 453 | | |
444 | 454 | | |
445 | 455 | | |
446 | | - | |
| 456 | + | |
447 | 457 | | |
448 | 458 | | |
449 | 459 | | |
| |||
457 | 467 | | |
458 | 468 | | |
459 | 469 | | |
460 | | - | |
| 470 | + | |
461 | 471 | | |
462 | 472 | | |
463 | 473 | | |
| |||
479 | 489 | | |
480 | 490 | | |
481 | 491 | | |
482 | | - | |
| 492 | + | |
483 | 493 | | |
484 | 494 | | |
485 | 495 | | |
| |||
491 | 501 | | |
492 | 502 | | |
493 | 503 | | |
494 | | - | |
| 504 | + | |
495 | 505 | | |
496 | 506 | | |
497 | 507 | | |
| |||
526 | 536 | | |
527 | 537 | | |
528 | 538 | | |
529 | | - | |
| 539 | + | |
530 | 540 | | |
531 | 541 | | |
532 | 542 | | |
533 | | - | |
| 543 | + | |
534 | 544 | | |
535 | 545 | | |
536 | 546 | | |
| |||
633 | 643 | | |
634 | 644 | | |
635 | 645 | | |
| 646 | + | |
636 | 647 | | |
637 | 648 | | |
638 | 649 | | |
| |||
1286 | 1297 | | |
1287 | 1298 | | |
1288 | 1299 | | |
| 1300 | + | |
1289 | 1301 | | |
1290 | 1302 | | |
1291 | 1303 | | |
| |||
0 commit comments