summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_verify.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-01-07 19:16:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-01-07 19:16:29 (GMT)
commit20c5484440dd9427c23afec554249ff165abf6a9 (patch)
tree3183db94f680c23608d68dbeb86c46ca5ebc4048 /tools/h5repack/h5repack_verify.c
parentdfbeb73b48df220165b528d3df2abcea2e2a4802 (diff)
downloadhdf5-20c5484440dd9427c23afec554249ff165abf6a9.zip
hdf5-20c5484440dd9427c23afec554249ff165abf6a9.tar.gz
hdf5-20c5484440dd9427c23afec554249ff165abf6a9.tar.bz2
[svn-r14379] add check of some values for the nbit and scale offest filters on the h5repack verify function
note: some sybols were made public tested: windows, linux
Diffstat (limited to 'tools/h5repack/h5repack_verify.c')
-rw-r--r--tools/h5repack/h5repack_verify.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/tools/h5repack/h5repack_verify.c b/tools/h5repack/h5repack_verify.c
index a878621..465fdbf 100644
--- a/tools/h5repack/h5repack_verify.c
+++ b/tools/h5repack/h5repack_verify.c
@@ -517,22 +517,27 @@ static int has_filters(hid_t pid, hid_t tid, unsigned nfilters, filter_info_t *f
break;
case H5Z_FILTER_NBIT:
-
- /* TO DO */
-
- ;
-
+
+ /* only client data values number of values checked */
+ if ( H5Z_NBIT_USER_NPARMS != filter[i].cd_nelmts)
+ return 0;
+
break;
case H5Z_FILTER_SCALEOFFSET:
-
- /* TO DO */
- ;
-
-
+ /* only client data values checked */
+ for( j = 0; j < H5Z_SCALEOFFSET_USER_NPARMS; j++)
+ {
+ if (cd_values[j] != filter[i].cd_values[j])
+ {
+ return 0;
+ }
+
+ }
+
break;