From 447a5a8129295ec8bce1c9a6292595e3e96f3840 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 2 Jun 2023 15:26:18 +0200 Subject: Seedee: Handle u4< data type --- libcrystfel/src/image-seedee.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libcrystfel/src/image-seedee.c') diff --git a/libcrystfel/src/image-seedee.c b/libcrystfel/src/image-seedee.c index 60153591..ae52c3f9 100644 --- a/libcrystfel/src/image-seedee.c +++ b/libcrystfel/src/image-seedee.c @@ -84,6 +84,20 @@ static int load_seedee_data(struct panel_template *p, } } + } else if ( (array->datatype == 'u') + && (array->itemsize == 4) + && (array->byteorder == '<') ) + { + int fs, ss; + uint32_t *in_data = (uint32_t *)array->data; + + for ( ss=0; ssorig_min_fs + (ss+p->orig_min_ss)*data_size_fs; + data[fs+ss*PANEL_WIDTH(p)] = in_data[idx]; + } + } + } else { ERROR("Unrecognised data type %c%i%c\n", array->datatype, array->itemsize, array->byteorder); -- cgit v1.2.3 From c4271d8171f2f1f0a58ae47ba77dc96136450687 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 3 Jun 2023 20:27:07 +0200 Subject: Support Seedee format f8< --- libcrystfel/src/image-seedee.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libcrystfel/src/image-seedee.c') diff --git a/libcrystfel/src/image-seedee.c b/libcrystfel/src/image-seedee.c index ae52c3f9..b4ae5179 100644 --- a/libcrystfel/src/image-seedee.c +++ b/libcrystfel/src/image-seedee.c @@ -98,6 +98,20 @@ static int load_seedee_data(struct panel_template *p, } } + } else if ( (array->datatype == 'f') + && (array->itemsize == 8) + && (array->byteorder == '<') ) + { + int fs, ss; + double *in_data = (double *)array->data; + + for ( ss=0; ssorig_min_fs + (ss+p->orig_min_ss)*data_size_fs; + data[fs+ss*PANEL_WIDTH(p)] = in_data[idx]; + } + } + } else { ERROR("Unrecognised data type %c%i%c\n", array->datatype, array->itemsize, array->byteorder); -- cgit v1.2.3