summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-11 19:03:41 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-11 19:03:41 (GMT)
commit5bedb5edfe575739bca53f801d0b751e0aeb9019 (patch)
tree4e2e8f7bb9754195767c07efe996d4537e4c4e6e /tools/h5dump/h5dumpgentest.c
parent3f0a35a4eab869793f5b3882da35a2fe0b683dbd (diff)
downloadhdf5-5bedb5edfe575739bca53f801d0b751e0aeb9019.zip
hdf5-5bedb5edfe575739bca53f801d0b751e0aeb9019.tar.gz
hdf5-5bedb5edfe575739bca53f801d0b751e0aeb9019.tar.bz2
[svn-r9989] Purpose:
Feature Description: Adding support for NBIT compression to dumper Solution: Platforms tested: arabica, verbena, copper64 Misc. update:
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index e438572..23da7e8 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -4632,6 +4632,24 @@ static void gent_filters(void)
#endif
/*-------------------------------------------------------------------------
+ * nbit
+ *-------------------------------------------------------------------------
+ */
+#if defined (H5_HAVE_FILTER_NBIT)
+ /* remove the filters from the dcpl */
+ ret=H5Premove_filter(dcpl,H5Z_FILTER_ALL);
+ assert(ret>=0);
+
+ /* set the checksum filter */
+ ret=H5Pset_nbit(dcpl);
+ assert(ret>=0);
+
+ tid=H5Tcopy(H5T_NATIVE_INT);
+ H5Tset_precision(tid,H5Tget_size(tid)-1);
+ ret=make_dset(fid,"nbit",sid,tid,dcpl,buf1);
+ assert(ret>=0);
+#endif
+/*-------------------------------------------------------------------------
* all filters
*-------------------------------------------------------------------------
*/