summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-05-07 20:56:54 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-05-07 20:56:54 (GMT)
commit7c16aec7e1e7ba08b8845cf148fdc7935e84a211 (patch)
treed9583f35d601ce5dc9736f8b90424930a65dd57a /tools/lib/h5tools.c
parentae6f5891b5794325ee5702fec0da55bafdce1afe (diff)
downloadhdf5-7c16aec7e1e7ba08b8845cf148fdc7935e84a211.zip
hdf5-7c16aec7e1e7ba08b8845cf148fdc7935e84a211.tar.gz
hdf5-7c16aec7e1e7ba08b8845cf148fdc7935e84a211.tar.bz2
[svn-r18743] enhancement 1853:
Install packed-bits feature for h5dump. Allen has installed the feature in the NPOESS feature branch. I ported it back to the v1.8 branch for v1.8.5 release. tools/h5dump/testh5dump.sh.in: Added tests for the packed-bits feature. tools/h5dump/h5dump.c tools/h5dump/h5dump.h Added code to parse and handled the packed-bits request. tools/lib/h5tools.h tools/lib/h5tools_str.c tools/lib/h5tools.c Added code to print packed-bits. tools/testfiles/tpackedbits2.ddl tools/testfiles/tnofilename-with-packed-bits.ddl tools/testfiles/tpackedbits.ddl Expected output files for packed-bits feature. Tested: h5committested the NPOESS branch. Tested in the linux VM machine in my Dove.
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index e80c505..654cca9 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -42,6 +42,11 @@ FILE *rawdatastream; /* should initialize to stdout but gcc moans about it
int bin_output; /* binary output */
int bin_form; /* binary form */
int region_output; /* region output */
+#ifdef H5_HAVE_H5DUMP_PACKED_BITS
+int packed_output; /* number of packed bits to display */
+int packed_normalize; /* number of bits to shift right to display normalized */
+unsigned int packed_counter; /* counter for which packed bits to display */
+#endif
static h5tool_format_t h5tools_dataformat = {
0, /*raw */