mbechard / libsquish

Automatically exported from code.google.com/p/libsquish
MIT License
0 stars 0 forks source link

Decompression issue. #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have grabbed the latest version and with addition of limits.h got it 
compiling on Android. I am trying to use the DecompressImage function on 
devices that do not support s3tc. I use nvcompress to generate the dds files 
that I am trying to decompress. I have attached an example that contains the 
input dds file and the output (post DecompressImage) rgba data, you can use 
gimp to load the raw image. It looks like the blocks color palette isn't being 
calculated properly, perhaps it is RGBA/BGRA?

Original issue reported on code.google.com by christia...@gmail.com on 28 Jan 2012 at 12:51

Attachments:

GoogleCodeExporter commented 9 years ago
By latest version I mean 1.11.

Original comment by christia...@gmail.com on 28 Jan 2012 at 12:53

GoogleCodeExporter commented 9 years ago
Nevermind I found my problem. The pointer I was passing into decompress was not 
at the start of the compressed data, it was close enough that surprisingly the 
output kinda looked like the target image. 

Original comment by christia...@gmail.com on 28 Jan 2012 at 1:55