annotate Meerwald/bruyn_common.h @ 15:ad1d224896c5

fix scanf() warning
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Mon, 30 Jun 2008 20:59:01 +0200
parents acb6967ee76d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 #ifndef BRUYN_COMMON_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define BRUYN_COMMON_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 #include "pgm.h"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 // for block type classification
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 #define BLOCKTYPE_UNKNOWN 0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 #define BLOCKTYPE_HARD 1
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 #define BLOCKTYPE_PROGRESSIVE 2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 #define BLOCKTYPE_NOISE 3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 // thresholds
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 #define THRESHOLD_NOISE 10.0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 #define THRESHOLD_SLOPE 5.0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 #define THRESHOLD_NOISE_USAGE "10.0"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 #define THRESHOLD_SLOPE_USAGE "5.0"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 // zone classification
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19 #define ZONE_VOID 0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 #define ZONE_1 1
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 #define ZONE_2 2
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23 // category classification
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 #define CATEGORY_VOID 0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 #define CATEGORY_A 4
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26 #define CATEGORY_B 8
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28 // classifiction = zone | category
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 #define CLASSIFICATION_1A (ZONE_1 | CATEGORY_A)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30 #define CLASSIFICATION_1B (ZONE_1 | CATEGORY_B)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31 #define CLASSIFICATION_2A (ZONE_2 | CATEGORY_A)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
32 #define CLASSIFICATION_2B (ZONE_2 | CATEGORY_B)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
33 #define CLASSIFICATION_A CATEGORY_A
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
34 #define CLASSIFICATION_B CATEGORY_B
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
35
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
36 #define NPATTERN 3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
37 #define NPATTERN_USAGE "3"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
38
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39 gray lookup_pattern(int pattern, int c, int r);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
40
3
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
41 #endif /* BRUYN_COMMON_H */

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.