Formatting fixes

This commit is contained in:
Pavel Krajcevski 2013-03-06 20:52:15 -05:00
parent 2a41e873fa
commit da010a465f

View File

@ -52,7 +52,14 @@
#include "Image.h" #include "Image.h"
void PrintUsage() { 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) { void ExtractBasename(const char *filename, char *buf, uint32 bufSz) {
@ -120,8 +127,8 @@ int _tmain(int argc, _TCHAR* argv[])
fileArg++; fileArg++;
if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) { if(fileArg == argc || (numThreads = atoi(argv[fileArg])) < 1) {
PrintUsage(); PrintUsage();
exit(1); exit(1);
} }
fileArg++; fileArg++;
@ -133,8 +140,8 @@ int _tmain(int argc, _TCHAR* argv[])
fileArg++; fileArg++;
if(fileArg == argc || (quality = atoi(argv[fileArg])) < 0) { if(fileArg == argc || (quality = atoi(argv[fileArg])) < 0) {
PrintUsage(); PrintUsage();
exit(1); exit(1);
} }
fileArg++; fileArg++;
@ -146,8 +153,8 @@ int _tmain(int argc, _TCHAR* argv[])
fileArg++; fileArg++;
if(fileArg == argc || (numJobs = atoi(argv[fileArg])) < 0) { if(fileArg == argc || (numJobs = atoi(argv[fileArg])) < 0) {
PrintUsage(); PrintUsage();
exit(1); exit(1);
} }
fileArg++; fileArg++;