forked from tTh/FloatImg
less verbosity is better
This commit is contained in:
parent
fc9b6571f3
commit
681899b06d
@ -108,7 +108,7 @@ fprintf(stderr, "glob '%s' -> %d, %d files found\n", pattern, foo,
|
||||
/* get the size of the inputs images */
|
||||
foo = fimg_fileinfos(globbuf.gl_pathv[0], datas);
|
||||
width = datas[0]; height = datas[1];
|
||||
fprintf(stderr, "first image size %dx%d\n", width, height);
|
||||
if (verbosity) fprintf(stderr, "first image size %dx%d\n", width, height);
|
||||
|
||||
fimg_create(&input, width, height, 3);
|
||||
|
||||
@ -120,10 +120,10 @@ if (foo) {
|
||||
exit(1);
|
||||
}
|
||||
maxvalue = fimg_get_maxvalue(&input);
|
||||
fprintf(stderr, "first image maxvalue %f\n", maxvalue);
|
||||
if (verbosity) fprintf(stderr, "first image maxvalue %f\n", maxvalue);
|
||||
|
||||
foo = create_fifo(szfifo, width, height, FIMG_TYPE_RGB);
|
||||
fprintf(stderr, "init fifo (%d slots) --> %d\n", szfifo, foo);
|
||||
if (verbosity) fprintf(stderr, "init fifo (%d slots) = %d\n", szfifo, foo);
|
||||
|
||||
/* XXX inject a few strange pics in the fifo */
|
||||
insert_blank(&input, blk, outdir);
|
||||
@ -206,7 +206,7 @@ char *OutFchain = "none";
|
||||
|
||||
fprintf(stderr, "*** %s\n\tcompiled %s, %s, pid %d\n",
|
||||
argv[0], __DATE__, __TIME__, getpid());
|
||||
fimg_print_version(2);
|
||||
if (verbosity) fimg_print_version(2);
|
||||
|
||||
while ((opt = getopt(argc, argv, "B:E:F:ghI:LO:T:vw:x:")) != -1) {
|
||||
switch(opt) {
|
||||
|
@ -58,7 +58,7 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, ptr_glob,
|
||||
ptr_idxval, method);
|
||||
#endif
|
||||
|
||||
if (0 == method) {
|
||||
if (0==method && verbosity) {
|
||||
fprintf(stderr, "\tWTF? in %s, method was ZERO?\n", __func__);
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ if (FIMG_TYPE_RGB != iarray[2]) {
|
||||
}
|
||||
|
||||
w = iarray[0], h = iarray[1];
|
||||
fprintf(stderr, "first image size : %dx%d\n", w, h);
|
||||
if (verbosity) fprintf(stderr, "first image size : %dx%d\n", w, h);
|
||||
|
||||
fimg_create(&A, w, h, 3); pFirst = &A; fimg_clear(&A);
|
||||
fimg_create(&B, w, h, 3); pSecond = &B; fimg_clear(&B);
|
||||
@ -259,7 +259,7 @@ char *OutFchain = "0";
|
||||
|
||||
fprintf(stderr, "*** %s\n\tcompiled on %s %s\n", argv[0],
|
||||
__DATE__, __TIME__);
|
||||
fimg_print_version(2);
|
||||
if (verbosity) fimg_print_version(2);
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
/* this is for the debug off calling shellscript */
|
||||
|
@ -89,7 +89,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (0 == idx) {
|
||||
if (0==idx && verbosity) {
|
||||
fprintf(stderr, "image size %dx%d\n",
|
||||
image.width, image.height);
|
||||
}
|
||||
@ -113,7 +113,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "\n\n");
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
globfree(&globbuf);
|
||||
|
||||
@ -157,7 +157,7 @@ int repeat = 1;
|
||||
|
||||
fprintf(stderr, "*** %s\n\tcompiled %s %s\n", argv[0],
|
||||
__DATE__, __TIME__);
|
||||
fimg_print_version(2);
|
||||
if (verbosity) fimg_print_version(2);
|
||||
|
||||
if (argc < 2) {
|
||||
fprintf(stderr, "\t/!\\ %s is option driven\n", argv[0]);
|
||||
@ -187,7 +187,6 @@ while ((opt = getopt(argc, argv, "hF:g:LO:r:svx")) != -1) {
|
||||
fprintf(stderr, "%s ABEND\n", argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (repeat < 1) {
|
||||
@ -216,7 +215,7 @@ if (verbosity) {
|
||||
*/
|
||||
foo = run_the_singlepass(globbing, outdir, repeat,
|
||||
FILTERS, FILE_TYPE_PNG);
|
||||
fprintf(stderr, "\n\tRun the single pass --> %d\n", foo);
|
||||
fprintf(stderr, "\tRun the single pass --> %d\n", foo);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user