aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/datatemplate_priv.h')
-rw-r--r--libcrystfel/src/datatemplate_priv.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate_priv.h b/libcrystfel/src/datatemplate_priv.h
index 9d4f8f26..593ebaa8 100644
--- a/libcrystfel/src/datatemplate_priv.h
+++ b/libcrystfel/src/datatemplate_priv.h
@@ -55,6 +55,15 @@ enum wavelength_unit
WAVELENGTH_PHOTON_EV
};
+#define MAX_FLAG_VALUES (16)
+
+enum flag_value_type
+{
+ FLAG_NOTHING,
+ FLAG_EQUAL,
+ FLAG_MORETHAN,
+ FLAG_LESSTHAN
+};
/* Special values for dimension IDs */
#define DIM_FS (-1)
@@ -107,6 +116,10 @@ struct panel_template
/** Treat pixel as unreliable if higher than this */
double max_adu;
+ /** Pixels with exactly this value will be marked as bad */
+ enum flag_value_type flag_types[MAX_FLAG_VALUES];
+ signed int flag_values[MAX_FLAG_VALUES];
+
/** Location of data in file (possibly with placeholders) */
char *data;