|(These flags are defined for C in the HDF5 Library source code file |
A bitwise AND of the returned
filter_config and a valid filter configuration flag will reveal whether the related configuration option is available. For example, if the value of
H5Z_FILTER_CONFIG_ENCODE_ENABLED & filter_config
is true, i.e., greater than
0 (zero), the queried filter is configured to encode data; if the value is
FALSE, i.e., equal to
0 (zero), the filter is not so configured.
If a filter is not encode-enabled, the corresponding
H5Pset_* function will return an error if the filter is added to a dataset creation property list (which is required if the filter is to be used to encode that dataset). For example, if the
H5Z_FILTER_CONFIG_ENCODE_ENABLED flag is not returned for the SZIP filter,
H5Z_FILTER_SZIP, a call to
H5Pset_szip will fail.
If a filter is not decode-enabled, the application will not be able to read an existing file encoded with that filter.
This function should be called, and the returned
filter_config analyzed, before calling any other function, such as