summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2004-08-03 22:07:12 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2004-08-03 22:07:12 (GMT)
commite39f5dc55928fb295003df4bebab287fe4699b31 (patch)
treec1801edd2fafb72c4e9410f1f94da671f82bbe68
parent89405db2ea002619326e966843c1a74b8e56ee68 (diff)
downloadhdf5-e39f5dc55928fb295003df4bebab287fe4699b31.zip
hdf5-e39f5dc55928fb295003df4bebab287fe4699b31.tar.gz
hdf5-e39f5dc55928fb295003df4bebab287fe4699b31.tar.bz2
[svn-r9004] Purpose:
Fix to feature added yesterday Description: Needed additional check on the SZIP bits per pixel parameter Solution: if (precision > 24 && precision < 31) precision = 32 if (precision > 32 && precision < 64) precision = 64 Platforms tested: arabica,verbena,hirdls Misc. update:
-rw-r--r--src/H5Zszip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5Zszip.c b/src/H5Zszip.c
index c999ba8..f07303f 100644
--- a/src/H5Zszip.c
+++ b/src/H5Zszip.c
@@ -168,6 +168,13 @@ H5Z_set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id)
dtype_precision=dtype_size;
}
}
+ if (dtype_precision>24) {
+ if (dtype_precision <= 32) {
+ dtype_precision=32;
+ } else if ( dtype_precision <= 64) {
+ dtype_precision=64;
+ }
+ }
/* Set "local" parameter for this dataset's "bits-per-pixel" */
cd_values[H5Z_SZIP_PARM_BPP]=dtype_precision;