Add hooks to command line... needs debugging -___-

This commit is contained in:
Pavel Krajcevski 2012-10-20 19:37:21 -04:00
parent c9567b132d
commit 87b9aa6856

View file

@ -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)