summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-08-31 22:04:55 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-08-31 22:04:55 (GMT)
commit6265941e7630e5c8ecd047e455a6b11a329a9518 (patch)
tree39407f874ae6328e13cb8aaeb41c9af0f6862f66
parent6d3715e5378f0b7b92be6697aa6394721c675099 (diff)
downloadhdf5-6265941e7630e5c8ecd047e455a6b11a329a9518.zip
hdf5-6265941e7630e5c8ecd047e455a6b11a329a9518.tar.gz
hdf5-6265941e7630e5c8ecd047e455a6b11a329a9518.tar.bz2
[svn-r11324] Purpose:
update dsets.c for scale-offset filter. Description: H5Psetscaleoffset has changed parameters. Solution: Platforms tested: sol 2.7, Linux 2.4, AIX 6.4(32-bit and 64-bit) Misc. update:
-rw-r--r--test/dsets.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 7777e43..effdc41 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -3800,7 +3800,7 @@ test_scaleoffset_int(hid_t file)
/* Set up to use scaleoffset filter, let library calculate minbits */
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, H5_SO_INT_MINIMUMBITS_DEFAULT, H5_SO_INT)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_INT,H5_SO_INT_MINBITS_DEFAULT)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_INT_NAME, datatype,
@@ -3936,7 +3936,7 @@ test_scaleoffset_int_2(hid_t file)
/* Set up to use scaleoffset filter, let library calculate minbits */
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, H5_SO_INT_MINIMUMBITS_DEFAULT, H5_SO_INT)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_INT,H5_SO_INT_MINBITS_DEFAULT)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_INT_NAME_2, datatype,
@@ -4079,7 +4079,7 @@ test_scaleoffset_float(hid_t file)
* use variable-minimum-bits method
*/
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, 3, H5_SO_FLOAT_DSCALE)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_FLOAT_DSCALE,3)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_FLOAT_NAME, datatype,
@@ -4217,7 +4217,7 @@ test_scaleoffset_float_2(hid_t file)
* use variable-minimum-bits method
*/
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, 3, H5_SO_FLOAT_DSCALE)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_FLOAT_DSCALE,3)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_FLOAT_NAME_2, datatype,
@@ -4359,7 +4359,7 @@ test_scaleoffset_double(hid_t file)
* use variable-minimum-bits method
*/
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, 7, H5_SO_FLOAT_DSCALE)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_FLOAT_DSCALE,7)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_DOUBLE_NAME, datatype,
@@ -4497,7 +4497,7 @@ test_scaleoffset_double_2(hid_t file)
* use variable-minimum-bits method
*/
if (H5Pset_chunk(dc, 2, chunk_size)<0) goto error;
- if (H5Pset_scaleoffset(dc, 7, H5_SO_FLOAT_DSCALE)<0) goto error;
+ if (H5Pset_scaleoffset(dc, H5_SO_FLOAT_DSCALE,7)<0) goto error;
/* Create the dataset */
if ((dataset = H5Dcreate(file, DSET_SCALEOFFSET_DOUBLE_NAME_2, datatype,