diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-30 19:47:40 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-30 19:47:40 (GMT) |
commit | 70db25c5614b515edac40bff118fb6462e6e0415 (patch) | |
tree | c549824cd0f9471b11514818d0280dfb2a08fc63 /src/H5Pdcpl.c | |
parent | 82a89d2c18953ca826f3fa805f01f81255839531 (diff) | |
download | hdf5-70db25c5614b515edac40bff118fb6462e6e0415.zip hdf5-70db25c5614b515edac40bff118fb6462e6e0415.tar.gz hdf5-70db25c5614b515edac40bff118fb6462e6e0415.tar.bz2 |
[svn-r7126] Purpose:
Code cleanup
Description:
Add in rest of szip "options mask" macros that were missing. Also made
"raw" options mask set by the library, instead of requiring users to always set
it.
Platforms tested:
FreeBSD 4.8 (sleipnir)
Minor tweaks too small fo h5committest
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r-- | src/H5Pdcpl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c index 7da0afc..e43e916 100644 --- a/src/H5Pdcpl.c +++ b/src/H5Pdcpl.c @@ -1020,6 +1020,13 @@ H5Pset_szip(hid_t plist_id, unsigned options_mask, unsigned pixels_per_block) if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE))) HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID"); + /* Always set "raw" (no szip header) flag for data */ + options_mask |= H5_SZIP_RAW_OPTION_MASK; + + /* Mask off the LSB and MSB options, if they were given */ + /* (The HDF5 library sets them internally, as needed) */ + options_mask &= ~(H5_SZIP_LSB_OPTION_MASK|H5_SZIP_MSB_OPTION_MASK); + /* Set the parameters for the filter */ cd_values[0]=options_mask; cd_values[1]=pixels_per_block; |