summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_copy.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-09-06 15:15:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-09-06 15:15:50 (GMT)
commit145f1ce9e35414e40abf00c139114f69c5e1322d (patch)
treeb2528c469291939818ff0b296ce132138e12bb8e /tools/h5repack/h5repack_copy.c
parentddbc3c841cc71254243e87ede6dd99c403507914 (diff)
downloadhdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.zip
hdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.tar.gz
hdf5-145f1ce9e35414e40abf00c139114f69c5e1322d.tar.bz2
[svn-r24104] HDFFV-8345: add User Defined filters to h5repack.
Reviewed in H5T-61 Tested: local linux - cmake and autotools
Diffstat (limited to 'tools/h5repack/h5repack_copy.c')
-rw-r--r--tools/h5repack/h5repack_copy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/h5repack/h5repack_copy.c b/tools/h5repack/h5repack_copy.c
index 02337fd..2133b48 100644
--- a/tools/h5repack/h5repack_copy.c
+++ b/tools/h5repack/h5repack_copy.c
@@ -1273,7 +1273,6 @@ int do_copy_objects(hid_t fidin,
*/
if (copy_attr(dset_in, dset_out, &named_dt_head, travt, options) < 0)
goto error;
-
/*close */
if (H5Dclose(dset_out) < 0)
goto error;
@@ -1356,7 +1355,6 @@ int do_copy_objects(hid_t fidin,
} /* end do we have request for filter/chunking */
-
break;
/*-------------------------------------------------------------------------
@@ -1504,7 +1502,9 @@ static void print_dataset_info(hid_t dcpl_id,
cd_values, sizeof(f_objname), f_objname, NULL);
switch(filtn) {
- default:
+
+ case H5Z_FILTER_NONE:
+ HDstrcat(strfilter,"NONE ");
break;
case H5Z_FILTER_DEFLATE:
@@ -1554,6 +1554,10 @@ static void print_dataset_info(hid_t dcpl_id,
case H5Z_FILTER_SCALEOFFSET:
HDstrcat(strfilter,"SCALEOFFSET ");
break;
+
+ default:
+ HDstrcat(strfilter,"UD ");
+ break;
} /* switch */
}/*i*/