summaryrefslogtreecommitdiffstats
path: root/src/H5Zshuffle.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-04-03 13:52:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-04-03 13:52:30 (GMT)
commit3c77efae1c2b56b80afa30d20536fe344ace7431 (patch)
treeb13812f2ab6b205ba1bc4bde511418df07abfe79 /src/H5Zshuffle.c
parentdb8ff96dc0e357162f3b2c0b14efc9159e19d162 (diff)
downloadhdf5-3c77efae1c2b56b80afa30d20536fe344ace7431.zip
hdf5-3c77efae1c2b56b80afa30d20536fe344ace7431.tar.gz
hdf5-3c77efae1c2b56b80afa30d20536fe344ace7431.tar.bz2
[svn-r6578] Purpose:
Code cleanup Description: Added lots of comments to existing filters, so they are easier to understand and use as examples for future filters. Cleaned up various bits of code, etc. Solution: Platforms tested: FreeBSD 4.8 (sleipnir) IRIX64 6.5 (modi4) w/parallel Misc. update:
Diffstat (limited to 'src/H5Zshuffle.c')
-rw-r--r--src/H5Zshuffle.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/H5Zshuffle.c b/src/H5Zshuffle.c
index 864875c..bcadbc4 100644
--- a/src/H5Zshuffle.c
+++ b/src/H5Zshuffle.c
@@ -12,14 +12,10 @@
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/*
- * Programmer: Robb Matzke <matzke@llnl.gov>
- * Friday, August 27, 1999
- */
-#include "H5private.h"
-#include "H5Eprivate.h"
-#include "H5MMprivate.h"
-#include "H5Zprivate.h"
+#include "H5private.h" /* Generic Functions */
+#include "H5Eprivate.h" /* Error handling */
+#include "H5MMprivate.h" /* Memory management */
+#include "H5Zprivate.h" /* Data filters */
#ifdef H5_HAVE_FILTER_SHUFFLE
@@ -39,9 +35,8 @@ static int interface_initialize_g = 0;
* Usually, the bytes in each byte position are more related to
* each other and putting them together will increase compression.
*
- * Return: Success:
- *
- * Failure:
+ * Return: Success: Size of buffer filtered
+ * Failure: 0
*
* Programmer: Kent Yang
* Wednesday, November 13, 2002
@@ -127,8 +122,10 @@ H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
}
} /* end else */
- /* Set the buffer information to return */
+ /* Free the input buffer */
H5MM_xfree(*buf);
+
+ /* Set the buffer information to return */
*buf = dest;
*buf_size=nbytes;
} /* end else */
@@ -140,3 +137,4 @@ done:
FUNC_LEAVE_NOAPI(ret_value);
}
#endif /*H5_HAVE_FILTER_SHUFFLE */
+