mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 05:15:42 +01:00
Formatting fixes
This commit is contained in:
parent
2a41e873fa
commit
da010a465f
@ -52,7 +52,14 @@
|
||||
#include "Image.h"
|
||||
|
||||
void PrintUsage() {
|
||||
fprintf(stderr, "Usage: tc [-l] [-q <quality>] [-n <num>] [-simd] [-t <threads> [-j <jobs>]] <imagefile>\n");
|
||||
fprintf(stderr, "Usage: tc [OPTIONS] imagefile\n");
|
||||
fprintf(stderr, "\n");
|
||||
fprintf(stderr, "\t-l\t\tSave an output log.\n");
|
||||
fprintf(stderr, "\t-q <quality>\tSet compression quality level. Default: 50\n");
|
||||
fprintf(stderr, "\t-n <num>\tCompress the image num times and give the average time and PSNR. Default: 1\n");
|
||||
fprintf(stderr, "\t-simd\t\tUse SIMD compression path\n");
|
||||
fprintf(stderr, "\t-t <num>\tCompress the image using <num> threads. Default: 1\n");
|
||||
fprintf(stderr, "\t-j <num>\tUse <num> blocks for each work item in a worker queue threading model. Default: (Blocks / Threads)\n");
|
||||
}
|
||||
|
||||
void ExtractBasename(const char *filename, char *buf, uint32 bufSz) {
|
||||
@ -120,8 +127,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
fileArg++;
|
||||
|
||||
if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) {
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fileArg++;
|
||||
@ -133,8 +140,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
fileArg++;
|
||||
|
||||
if(fileArg == argc || (quality = atoi(argv[fileArg])) < 0) {
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fileArg++;
|
||||
@ -146,8 +153,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
fileArg++;
|
||||
|
||||
if(fileArg == argc || (numJobs = atoi(argv[fileArg])) < 0) {
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
PrintUsage();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fileArg++;
|
||||
|
Loading…
Reference in New Issue
Block a user