franck-ohayon-sb / libsquish

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

Squish assumes image data is supplied in RGBA format, but DXT outputs colors in BGRA #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is only important when using the perceptual metric. The solution is just 
to flip the luminance 
calculation components and to relabel all rgba variables and documentation 
appropriately. Also, 
images are usually gamma corrected, yet the current perceptual metric is using 
the arbitrary Rec. 
709 coefficients (which is only good for linear space). Using CCIR 601 is more 
correct. They are: Y' 
= 0.299 R' + 0.587 G' + 0.114 B'.

Original issue reported on code.google.com by mar...@opedo.com on 28 Mar 2010 at 10:34

GoogleCodeExporter commented 9 years ago
Sorry i was looking at the older code base about the RGBA, BGRA, mistake. But 
there should still be a flag to 
support both input formats.

Original comment by mar...@opedo.com on 28 Mar 2010 at 10:52