diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-06 17:49:00 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-01-06 17:49:00 (GMT) |
commit | 68607efcd10222ed1b1d19308d3586eb65fe3644 (patch) | |
tree | 3d676b7d4ddbf39751057c8572b0f01410e7a139 /tools/h5repack/testh5repack_filters.c | |
parent | 89f5220d6687aa1ff3c3d19c8b05859887ecadbd (diff) | |
download | hdf5-68607efcd10222ed1b1d19308d3586eb65fe3644.zip hdf5-68607efcd10222ed1b1d19308d3586eb65fe3644.tar.gz hdf5-68607efcd10222ed1b1d19308d3586eb65fe3644.tar.bz2 |
[svn-r8021] Purpose:
h5repack new features
Description:
added support/tests for multi filters
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/h5repack/testh5repack_filters.c')
-rw-r--r-- | tools/h5repack/testh5repack_filters.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/h5repack/testh5repack_filters.c b/tools/h5repack/testh5repack_filters.c index 3313d77..2c03702 100644 --- a/tools/h5repack/testh5repack_filters.c +++ b/tools/h5repack/testh5repack_filters.c @@ -38,7 +38,7 @@ int make_deflate(hid_t loc_id) hid_t sid; /* dataspace ID */ hsize_t dims[RANK]={DIM1,DIM2}; hsize_t chunk_dims[RANK]={CDIM1,CDIM2}; - int buf[40][20]; + int buf[DIM1][DIM2]; int i, j, n=0; for (i=0; i<DIM1; i++){ @@ -110,7 +110,7 @@ int make_szip(hid_t loc_id) unsigned szip_pixels_per_block; hsize_t dims[RANK]={DIM1,DIM2}; hsize_t chunk_dims[RANK]={CDIM1,CDIM2}; - int buf[40][20]; + int buf[DIM1][DIM2]; int i, j, n=0; for (i=0; i<DIM1; i++){ @@ -119,13 +119,11 @@ int make_szip(hid_t loc_id) } } - memset(buf,0,sizeof buf); - /* pixels_per_block must be an even number, and <= pixels_per_scanline and <= MAX_PIXELS_PER_BLOCK */ - szip_pixels_per_block=10; + szip_pixels_per_block=16; /* create a space */ if((sid = H5Screate_simple(RANK, dims, NULL))<0) @@ -180,7 +178,7 @@ int make_nofilters(hid_t loc_id) { char name[5]; hsize_t dims[RANK]={DIM1,DIM2}; - int buf[40][20]; + int buf[DIM1][DIM2]; int i, j, n=0; for (i=0; i<DIM1; i++){ |