aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/datatemplate_priv.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-04 15:25:59 +0200
committerThomas White <taw@physics.org>2020-08-04 15:25:59 +0200
commitdce8a7b87023159480d06c963751da7e4fd2cb7c (patch)
treeaf4bf3c1a9c177d9e358c57dcee607a7767800ca /libcrystfel/src/datatemplate_priv.h
parent43b71428b68e94d22c2c5f9e8a25b1b46bc04a4c (diff)
Add image_write()
This is a one-to-one transfer of the old hdf5_write_image()
Diffstat (limited to 'libcrystfel/src/datatemplate_priv.h')
-rw-r--r--libcrystfel/src/datatemplate_priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate_priv.h b/libcrystfel/src/datatemplate_priv.h
index 15495cef..3afbcd0b 100644
--- a/libcrystfel/src/datatemplate_priv.h
+++ b/libcrystfel/src/datatemplate_priv.h
@@ -159,6 +159,10 @@ struct panel_template
};
+#define PANEL_WIDTH(p) ((p)->orig_max_fs - (p)->orig_min_fs + 1)
+#define PANEL_HEIGHT(p) ((p)->orig_max_ss - (p)->orig_min_ss + 1)
+
+
struct dt_badregion
{
char name[1024];