summaryrefslogtreecommitdiff
path: root/include/compression
diff options
context:
space:
mode:
authorDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 09:22:05 (GMT)
committerDaniel Spangberg <daniels@kemi.uu.se>2013-05-25 09:22:05 (GMT)
commit4f846bcb0d2027955d5bab4151dcfedf86347cd8 (patch)
treee48e5a225877a921a46bcb274765c54e096c10a3 /include/compression
parent6380d1a869ee1c29d9b1ab2aa2ff403f3fbed14b (diff)
Add more tests for compression of frames that contain only zero
data. Add input data sanity checks. tng_compress routines now return NULL if input data is too large compared to the precision.
Diffstat (limited to 'include/compression')
-rw-r--r--include/compression/tng_compress.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compression/tng_compress.h b/include/compression/tng_compress.h
index 0858952..51597be 100644
--- a/include/compression/tng_compress.h
+++ b/include/compression/tng_compress.h
@@ -48,6 +48,8 @@
The compressed data is returned in a malloced pointer (so free can
be called to free the memory), the number of chars in the compressed
data is put into *nitems.
+
+ If too large values are input (compared to the precision), NULL is returned.
*/
char DECLSPECDLLEXPORT *tng_compress_pos(double *pos, int natoms, int nframes,
contact: Jan Huwald // Impressum