diff options
Diffstat (limited to 'src/hdf5-file.h')
-rw-r--r-- | src/hdf5-file.h | 15 |
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 */ |