diff options
Diffstat (limited to 'guilib/DDSImage.cpp')
-rw-r--r-- | guilib/DDSImage.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guilib/DDSImage.cpp b/guilib/DDSImage.cpp index 1ed2c9b28f..2f3eb457b0 100644 --- a/guilib/DDSImage.cpp +++ b/guilib/DDSImage.cpp @@ -22,6 +22,7 @@ #include "DDSImage.h" #include "XBTF.h" #include "lib/libsquish/squish.h" +#include "utils/log.h" #include <string.h> #ifndef NO_XBMC_FILESYSTEM @@ -185,6 +186,12 @@ bool CDDSImage::Compress(unsigned int width, unsigned int height, unsigned int p } return false; } + else + { + double colorMSE, alphaMSE; + squish::ComputeMSE(brga, width, height, pitch, m_data, squish::kDxt1 | squish::kSourceBGRA, colorMSE, alphaMSE); + CLog::Log(LOGDEBUG, "%s - DDS error is: %2.2f:%2.2f", __FUNCTION__, colorMSE, alphaMSE); + } return true; } |