TGA: memory optimizations and native grayscale support

- Removed temporary buffer of uncompressed image size when reading (loads images using half the memory)
- Added native support for Grayscale images (they are no longer converted to RGB(A) 32 when reading/writing)
- Fixes wrong X channel value on RGBX32 images (CCBUG: 499584)

It should also reduce loading times for corrupted images.

Closes #33
This commit is contained in:
Mirco Miranda
2025-08-20 23:53:00 +02:00
committed by Albert Astals Cid
parent bc8b5b56b1
commit ebc366b3c5
4 changed files with 173 additions and 118 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB