summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-16 16:12:35 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-16 16:12:35 (GMT)
commit18c257c46f377066e6c863c88b95d4b85825ee44 (patch)
tree15d807ad1980c195dfe6722c7b6d8fba4e132117
parentb625ca2b74f5dacd99e78765efab4683e1fc2aec (diff)
downloadhdf5-18c257c46f377066e6c863c88b95d4b85825ee44.zip
hdf5-18c257c46f377066e6c863c88b95d4b85825ee44.tar.gz
hdf5-18c257c46f377066e6c863c88b95d4b85825ee44.tar.bz2
[svn-r10015] Purpose:
feature Description: file was omitted from checkin yesterday Solution: Platforms tested: Misc. update:
-rw-r--r--tools/lib/h5tools_filters.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/lib/h5tools_filters.c b/tools/lib/h5tools_filters.c
index 9c816cd..863f39c 100644
--- a/tools/lib/h5tools_filters.c
+++ b/tools/lib/h5tools_filters.c
@@ -52,6 +52,7 @@ int h5tools_canreadf(const char* name, /* object name, serves also as boolean pr
int have_szip=0;
int have_shuffle=0;
int have_fletcher=0;
+ int have_nbit=0;
#ifdef H5_HAVE_FILTER_DEFLATE
have_deflate=1;
@@ -65,6 +66,10 @@ int h5tools_canreadf(const char* name, /* object name, serves also as boolean pr
#ifdef H5_HAVE_FILTER_FLETCHER32
have_fletcher=1;
#endif
+#ifdef H5_HAVE_FILTER_NBIT
+ have_nbit=1;
+#endif
+
/* get information about filters */
if ((nfilters = H5Pget_nfilters(dcpl_id))<0)
@@ -143,6 +148,18 @@ int h5tools_canreadf(const char* name, /* object name, serves also as boolean pr
return 0;
}
break;
+/*-------------------------------------------------------------------------
+ * H5Z_FILTER_NBIT
+ *-------------------------------------------------------------------------
+ */
+ case H5Z_FILTER_NBIT:
+ if (!have_nbit)
+ {
+ if (name)
+ print_warning(name,"nbit");
+ return 0;
+ }
+ break;
}/*switch*/
}/*for*/
@@ -172,6 +189,7 @@ int h5tools_can_encode( H5Z_filter_t filtn)
int have_szip=0;
int have_shuffle=0;
int have_fletcher=0;
+ int have_nbit=0;
unsigned int filter_config_flags;
#ifdef H5_HAVE_FILTER_DEFLATE
@@ -186,6 +204,9 @@ int h5tools_can_encode( H5Z_filter_t filtn)
#ifdef H5_HAVE_FILTER_FLETCHER32
have_fletcher=1;
#endif
+#ifdef H5_HAVE_FILTER_NBIT
+ have_nbit=1;
+#endif
switch (filtn)
{
@@ -238,6 +259,12 @@ int h5tools_can_encode( H5Z_filter_t filtn)
return 0;
}
break;
+ case H5Z_FILTER_NBIT:
+ if (!have_nbit)
+ {
+ return 0;
+ }
+ break;
}/*switch*/
return 1;