aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-12-15 05:54:51 -0800
committerThomas White <taw@bitwiz.org.uk>2009-12-16 01:54:12 -0800
commita97808a51b9e15df23307115ca889e01c604c0dc (patch)
tree67c6987fe5f561616d17a548beeb0b05714c2204 /src/hdf5-file.h
parent4d4aa2f6e2a98461d022d6ce494c58b04b586711 (diff)
Introduce 'hdfsee'
Diffstat (limited to 'src/hdf5-file.h')
-rw-r--r--src/hdf5-file.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/hdf5-file.h b/src/hdf5-file.h
index a263368a..ec9e3a85 100644
--- a/src/hdf5-file.h
+++ b/src/hdf5-file.h
@@ -18,9 +18,22 @@
#include <stdint.h>
+#include "image.h"
+
+struct hdfile;
+
+
extern int hdf5_write(const char *filename, const uint16_t *data,
int width, int height);
-extern int hdf5_read(struct image *image, const char *filename);
+extern int hdf5_read(struct hdfile *f, struct image *image);
+
+extern struct hdfile *hdfile_open(const char *filename);
+extern int hdfile_set_image(struct hdfile *f, const char *path);
+extern int hdfile_get_width(struct hdfile *f);
+extern int hdfile_get_height(struct hdfile *f);
+extern uint16_t *hdfile_get_image_binned(struct hdfile *hdfile,
+ int binning, uint16_t *maxp);
+extern void hdfile_close(struct hdfile *f);
#endif /* HDF5_H */