-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for legacy TGA files that have RLE crossing scanlines #251
Comments
Those TGA files are not properly encoded. Legacy DXTex fails to view them as well. Many of the lines when you RLE decompress them exceed the stated width. In the 15th scanline of
Add 128 values starting at an x of 250 well exceeds the 256 width of the texture. In other words, these TGA are not written using the documented RLE from the TGA specification. They are some sort of non-standard variant or the original encoder was just wrong. For example, in the standard it states:
Perhaps the encoder of these images ignored this limitation... |
Maybe some old RLE Filename: devfonts.tga |
Legacy D3DX9's reader (DXTex) fails on these files too... I'll keep it on my backlog then. |
Thx! |
Samples:
https://drive.google.com/file/d/1v3-5jVnefTw4z5rSsXktcgMGZnS_uZG6/view?usp=sharing
Error reading header?
The text was updated successfully, but these errors were encountered: