This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Information about filter


filter_config_flags = H5Z.get_filter_info(filter)


filter_config_flags = H5Z.get_filter_info(filter) retrieves information about the filter specified by its identifier. At present, the information returned is the filter's configuration flags, indicating whether the filter is configured to decode data, to encode data, neither, or both. filter_config_flags should be used with the HDF5 constant values H5Z_FILTER_CONFIG_ENCODE_ENABLED and H5Z_FILTER_CONFIG_DECODE_ENABLED in a bitwise AND operation. If the resulting value is 0, then the encode or decode functionality is not available.


Determine if encoding is enabled for the deflate filter.

flags = H5Z.get_filter_info('H5Z_FILTER_DEFLATE');
functionality = H5ML.get_constant_value('H5Z_FILTER_CONFIG_ENCODE_ENABLED');
enabled = bitand(flags,functionality) > 0;
Was this topic helpful?