From 87b9aa68569582613a212a44f2040ad0793378d3 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sat, 20 Oct 2012 19:37:21 -0400 Subject: [PATCH] Add hooks to command line... needs debugging -___- --- CLTool/src/clunix.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)