summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-09-19 21:12:35 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-09-19 21:12:35 (GMT)
commitdca5ad5754071a785c1977c0252e49b7ff3f4721 (patch)
treeade2fafa0d05d2ce2249c4fd9864432ae092d8f9 /tools/h5repack/h5repack_main.c
parent465f9be6e3f818d20c650976a14d7698063cad00 (diff)
downloadhdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.zip
hdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.tar.gz
hdf5-dca5ad5754071a785c1977c0252e49b7ff3f4721.tar.bz2
[svn-r11443] Purpose:
new features Description: added support for the scale/offset filter there is a new filter symbol 'SOFF' -f SOFF=<scale_factor,scale_type> scale_factor = integer scale_type = 'IN' or 'DS' Solution: Platforms tested: Linux SunOS Misc. update:
Diffstat (limited to 'tools/h5repack/h5repack_main.c')
-rw-r--r--tools/h5repack/h5repack_main.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/tools/h5repack/h5repack_main.c b/tools/h5repack/h5repack_main.c
index 665f8e1..96eb787 100644
--- a/tools/h5repack/h5repack_main.c
+++ b/tools/h5repack/h5repack_main.c
@@ -136,9 +136,12 @@ void usage(void)
printf("-i input Input HDF5 File\n");
printf("-o output Output HDF5 File\n");
printf("[-h] Print usage message\n");
- printf("[-v] Verbose mode. Print output (list of objects, filters, warnings)\n");
+ printf("[-v] Verbose mode. Print more output (list of objects,\n");
+ printf(" filters, warnings)\n");
printf("[-f 'filter'] Filter type: 'filter' is a string with the format\n");
+ printf("\n");
printf(" <list of objects> : <name of filter> = <filter parameters>\n");
+ printf("\n");
printf(" <list of objects> is a comma separated list of object names\n");
printf(" meaning apply compression only to those objects.\n");
printf(" if no object names are specified, the filter is applied to all objects\n");
@@ -148,15 +151,24 @@ void usage(void)
printf(" SHUF, to apply the HDF5 shuffle filter\n");
printf(" FLET, to apply the HDF5 checksum filter\n");
printf(" NBIT, to apply the HDF5 NBIT filter (NBIT compression)\n");
+ printf(" SOFF, to apply the HDF5 Scale/Offset filter\n");
printf(" NONE, to remove the filter\n");
printf(" <filter parameters> is optional compression info\n");
printf(" SHUF (no parameter)\n");
printf(" FLET (no parameter)\n");
printf(" NBIT (no parameter)\n");
printf(" GZIP=<deflation level> from 1-9\n");
- printf(" SZIP=<pixels per block,coding> (pixels per block is a even number in 2-32 and coding method is 'EC' or 'NN')\n");
+ printf(" SZIP=<pixels per block,coding>\n");
+ printf(" (pixels per block is a even number in 2-32 and coding method\n");
+ printf(" is 'EC' or 'NN')\n");
+ printf(" SOFF=<scale_factor,scale_type>\n");
+ printf(" (scale_factor is an integer and scale_type is either 'IN'\n");
+ printf(" for integer type, or 'DS', for floating point type\n");
+ printf(" using the D-scaling method)\n");
printf("[-l 'layout'] Layout type. 'layout' is a string with the format\n");
+ printf("\n");
printf(" <list of objects> : <layout type>\n");
+ printf("\n");
printf(" <list of objects> is a comma separated list of object names,\n");
printf(" meaning that layout information is supplied for those objects.\n");
printf(" if no object names are specified, the layout is applied to all objects\n");
@@ -169,8 +181,9 @@ void usage(void)
printf(" <dim_1 x dim_2 x ... dim_n>\n");
printf("\n");
printf("-e file File with the -f and -l options (only filter and layout flags)\n");
- printf("-m number Do not apply the filter to objects which size in bytes is smaller than number.\n");
- printf(" If no size is specified a minimum of 1024 bytes is assumed.\n");
+ printf("-m size Do not apply the filter to objects which size in bytes\n");
+ printf(" is smaller than number. If no size is specified a minimum of\n");
+ printf(" 1024 bytes is assumed.\n");
printf("\n");
printf("Examples of use:\n");
printf("\n");
@@ -188,4 +201,3 @@ void usage(void)
printf("\n");
}
-