forked from tTh/FloatImg
bla
This commit is contained in:
parent
b43a62db68
commit
f9a09871bf
|
@ -11,7 +11,10 @@
|
||||||
#include "crapulator.h"
|
#include "crapulator.h"
|
||||||
|
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
|
/*
|
||||||
|
* This is the main filter engine
|
||||||
|
* used both for input and output
|
||||||
|
*/
|
||||||
int crapulator(FloatImg *image, int idFx, float fval)
|
int crapulator(FloatImg *image, int idFx, float fval)
|
||||||
{
|
{
|
||||||
int retval, foo;
|
int retval, foo;
|
||||||
|
@ -25,10 +28,12 @@ fprintf(stderr, ">>> %s ( %p %d %f )\n", __func__,
|
||||||
image, idFx, fval);
|
image, idFx, fval);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
retval = 0;
|
||||||
|
|
||||||
if (666==count) {
|
if (666==count) {
|
||||||
flag_debug = 1;
|
flag_debug = 1;
|
||||||
fprintf(stderr, "DEBUG PT 1 in %s:%d\n", __func__, __LINE__);
|
fprintf(stderr, "DEBUG PT 1 in %s:%d\n", __func__, __LINE__);
|
||||||
fimg_save_as_png(image, "source.png", 0);
|
fimg_save_as_png(image, "crap_before.png", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (idFx) {
|
switch (idFx) {
|
||||||
|
@ -100,7 +105,7 @@ switch (idFx) {
|
||||||
|
|
||||||
if (flag_debug) {
|
if (flag_debug) {
|
||||||
fprintf(stderr, "DEBUG PT 2 in %s:%d\n", __func__, __LINE__);
|
fprintf(stderr, "DEBUG PT 2 in %s:%d\n", __func__, __LINE__);
|
||||||
fimg_save_as_png(image, "after.png", 0);
|
fimg_save_as_png(image, "crap_after.png", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
count++; flag_debug = 0;
|
count++; flag_debug = 0;
|
||||||
|
|
|
@ -2,5 +2,13 @@
|
||||||
* crapulator.h
|
* crapulator.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* some constants for effect numbers */
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* the main function */
|
||||||
|
|
||||||
int crapulator(FloatImg *image, int id_effect, float fparam);
|
int crapulator(FloatImg *image, int id_effect, float fparam);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ fprintf(stderr, ">>> %s ( '%s' -> '%s' %d )\n", __func__,
|
||||||
pattern, outdir, szfifo);
|
pattern, outdir, szfifo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf(stderr, "\tstep is %d\n", step);
|
// fprintf(stderr, "\tstep is %d\n", step);
|
||||||
|
|
||||||
(void)fimg_timer_set(0);
|
(void)fimg_timer_set(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue