mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 03:55:33 +00:00
Add hooks to command line... needs debugging -___-
This commit is contained in:
parent
c9567b132d
commit
87b9aa6856
|
@ -136,7 +136,7 @@ int main(int argc, char **argv) {
|
||||||
fprintf(stderr, "Error compressing image!\n");
|
fprintf(stderr, "Error compressing image!\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
double PSNR = img->ComputePSNR(*ci);
|
double PSNR = img->ComputePSNR(*ci);
|
||||||
if(PSNR > 0.0) {
|
if(PSNR > 0.0) {
|
||||||
fprintf(stdout, "PSNR: %.3f\n", PSNR);
|
fprintf(stdout, "PSNR: %.3f\n", PSNR);
|
||||||
|
@ -149,6 +149,10 @@ int main(int argc, char **argv) {
|
||||||
statManager->ToFile(strcat(argv[fileArg], ".log"));
|
statManager->ToFile(strcat(argv[fileArg], ".log"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image cImg (*ci);
|
||||||
|
ImageFile cImgFile (strcat(argv[fileArg], "-bc7.png"), eFileFormat_PNG, cImg);
|
||||||
|
cImgFile.Write();
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
delete ci;
|
delete ci;
|
||||||
if(statManager)
|
if(statManager)
|
||||||
|
|
Loading…
Reference in a new issue