diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2001-06-09 05:05:30 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2001-06-09 05:05:30 (GMT) |
commit | 0aa301010a62af416de9dc7b7f8504d98d5dae4e (patch) | |
tree | 6f55a41aec45679c864ec7e29d3ac1ea00617866 /src/H5P.c | |
parent | 1bac62e0de74cdf9f251e8e833cddd483ad5159b (diff) | |
download | hdf5-0aa301010a62af416de9dc7b7f8504d98d5dae4e.zip hdf5-0aa301010a62af416de9dc7b7f8504d98d5dae4e.tar.gz hdf5-0aa301010a62af416de9dc7b7f8504d98d5dae4e.tar.bz2 |
[svn-r3980] property list modification for image and palette
Diffstat (limited to 'src/H5P.c')
-rw-r--r-- | src/H5P.c | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -27,6 +27,11 @@ /* Default file driver - see H5Pget_driver() */ #include "H5FDsec2.h" /* Posix unbuffered I/O file driver */ +#include "H5IMimage.h" +#include "H5IMpalette.h" + + + #ifdef WANT_H5_V1_2_COMPAT /* Other predefined file drivers */ #include "H5FDcore.h" /* Files stored entirely in memory */ @@ -341,6 +346,13 @@ H5Pcreate(H5P_class_t type) case H5P_MOUNT: src = &H5F_mount_dflt; break; + /*pvn*/ + case H5P_IMAGE: + src = &H5IM_create_dflt8bit; + break; + case H5P_PALETTE: + src = &H5IM_create_dfltpalette; + break; default: HRETURN_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "unknown property list class"); @@ -502,6 +514,13 @@ H5P_close(void *_plist) case H5P_MOUNT: break; + case H5P_IMAGE: + break; + + case H5P_PALETTE: + break; + + default: HRETURN_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "unknown property list class"); @@ -689,6 +708,15 @@ H5P_copy (H5P_class_t type, const void *src) size = sizeof(H5F_mprop_t); break; + /*pvn*/ + case H5P_IMAGE: + size = sizeof(H5IM_imageinfo_t); + break; + + case H5P_PALETTE: + size = sizeof(H5IM_paletteinfo_t); + break; + default: HRETURN_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "unknown property list class"); @@ -759,6 +787,14 @@ H5P_copy (H5P_class_t type, const void *src) /* Nothing to do */ break; + case H5P_IMAGE: + /* Nothing to do */ + break; + + case H5P_PALETTE: + /* Nothing to do */ + break; + default: HRETURN_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "unknown property list class"); |