diff --git a/CLTool/src/clunix.cpp b/CLTool/src/clunix.cpp index bd9ac3e..7708521 100644 --- a/CLTool/src/clunix.cpp +++ b/CLTool/src/clunix.cpp @@ -136,7 +136,7 @@ int main(int argc, char **argv) { fprintf(stderr, "Error compressing image!\n"); return 1; } - + double PSNR = img->ComputePSNR(*ci); if(PSNR > 0.0) { fprintf(stdout, "PSNR: %.3f\n", PSNR); @@ -149,6 +149,10 @@ int main(int argc, char **argv) { statManager->ToFile(strcat(argv[fileArg], ".log")); } + Image cImg (*ci); + ImageFile cImgFile (strcat(argv[fileArg], "-bc7.png"), eFileFormat_PNG, cImg); + cImgFile.Write(); + // Cleanup delete ci; if(statManager)