forked from tTh/FloatImg
mollyguard + debug code
This commit is contained in:
parent
f67cd9be3e
commit
c30e073abd
@ -51,6 +51,11 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__,
|
|||||||
pfifo, destination, step);
|
pfifo, destination, step);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (step<1){
|
||||||
|
fprintf(stderr, "***** %s invalid step %d\n", __func__, step);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (NULL==destination) {
|
if (NULL==destination) {
|
||||||
pdest = &(pfifo->total); }
|
pdest = &(pfifo->total); }
|
||||||
else {
|
else {
|
||||||
@ -68,11 +73,11 @@ for (idx=0; idx<pfifo->nbslots; idx += step) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX
|
#if 0
|
||||||
fprintf(stderr, "*** %s:%s writing debugB file ***\n",
|
fprintf(stderr, "*** %s:%s writing debugB file ***\n",
|
||||||
__FILE__, __func__);
|
__FILE__, __func__);
|
||||||
fimg_dump_to_file(&g_fifo.total, "debugB.fimg", 0);
|
fimg_dump_to_file(&g_fifo.total, "debugB.fimg", 0);
|
||||||
XXX */
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -96,6 +101,10 @@ if (foo) {
|
|||||||
return foo;
|
return foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
fimg_dump_to_file(&g_fifo.total, "outputXXX.fimg", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
foo = fimg_export_picture(&g_fifo.total, fname, 0);
|
foo = fimg_export_picture(&g_fifo.total, fname, 0);
|
||||||
if (foo) {
|
if (foo) {
|
||||||
fprintf(stderr, "ERR EXPORT '%s' is %d\n", fname, foo);
|
fprintf(stderr, "ERR EXPORT '%s' is %d\n", fname, foo);
|
||||||
|
Loading…
Reference in New Issue
Block a user