diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-12-16 10:36:53 -0800 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-12-16 10:36:53 -0800 |
commit | d84fd5ff386a1393bbec3b67c8f165c95613a53e (patch) | |
tree | fcba5c62793a58522f17a3a860f997abc2e72ecc /src/hdf5-file.h | |
parent | 5ee02bbd3e86bb6b83a457009ed0a4b5d864dec9 (diff) |
Add number-viewing window, use signed values as well
Diffstat (limited to 'src/hdf5-file.h')
-rw-r--r-- | src/hdf5-file.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hdf5-file.h b/src/hdf5-file.h index ec9e3a85..528292ca 100644 --- a/src/hdf5-file.h +++ b/src/hdf5-file.h @@ -23,7 +23,7 @@ struct hdfile; -extern int hdf5_write(const char *filename, const uint16_t *data, +extern int hdf5_write(const char *filename, const int16_t *data, int width, int height); extern int hdf5_read(struct hdfile *f, struct image *image); @@ -32,8 +32,10 @@ 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 int16_t *hdfile_get_image_binned(struct hdfile *hdfile, + int binning, int16_t *maxp); +extern int hdfile_get_unbinned_value(struct hdfile *f, int x, int y, + int16_t *val); extern void hdfile_close(struct hdfile *f); #endif /* HDF5_H */ |