integration of halfsizing

This commit is contained in:
2020-02-16 16:21:27 +01:00
parent 2b26645b49
commit 23ce4cd337
4 changed files with 39 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ typedef struct {
int nbarg;
} Fx;
enum fxid { Fx_cos01, Fx_cos010, Fx_pow2, Fx_sqrt, Fx_gray0 };
enum fxid { Fx_cos01, Fx_cos010, Fx_pow2, Fx_sqrt, Fx_gray0, Fx_halfsz0 };
Fx fx_list[] = {
{ "cos01", Fx_cos01, 0 },
@@ -27,6 +27,7 @@ Fx fx_list[] = {
{ "pow2", Fx_pow2, 0 },
{ "sqrt", Fx_sqrt, 0 },
{ "gray0", Fx_gray0, 0 },
{ "halfsz0", Fx_halfsz0, 0 },
{ NULL, 0, 0 }
};
@@ -112,6 +113,10 @@ switch (act) {
fimg_to_gray(&src); fimg_copy_data(&src, &dest);
break;
case Fx_halfsz0:
fprintf(stderr, "not implemented\n");
return -3;
default:
fprintf(stderr, "*** %s : %d is bad action\n", __func__, act);
break;