Mercurial > hg > wm
comparison Meerwald-dir/pollen_stuff.c @ 24:9f20bce6184e v0.7
move directories, support netpbm 11
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Fri, 20 Dec 2024 13:08:59 +0100 |
parents | Meerwald/pollen_stuff.c@acb6967ee76d |
children |
comparison
equal
deleted
inserted
replaced
23:71dd4b96221b | 24:9f20bce6184e |
---|---|
1 #ifdef POLLEN_STUFF | |
2 { | |
3 double alpha, beta; | |
4 char *alpha_str = getenv("POLLEN_ALPHA"), *beta_str = getenv("POLLEN_BETA"); | |
5 | |
6 if (alpha_str && beta_str) { | |
7 alpha = atof(alpha_str); | |
8 beta = atof(beta_str); | |
9 | |
10 if (alpha < -M_PI || alpha >= M_PI) { | |
11 fprintf(stderr, "%s: pollen - alpha %f out of range\n", progname, alpha); | |
12 exit(1); | |
13 } | |
14 | |
15 if (beta < -M_PI || beta >= M_PI) { | |
16 fprintf(stderr, "%s: pollen - beta %f out of range\n", progname, beta); | |
17 exit(1); | |
18 } | |
19 | |
20 if (verbose > 7) | |
21 fprintf(stderr, "%s: pollen - alpha %f, beta %f\n", progname, alpha, beta); | |
22 | |
23 dwt_pollen_filter(alpha, beta); | |
24 } | |
25 } | |
26 #endif | |
27 |