Skip to content

Commit

Permalink
Document global registered filters and codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Feb 7, 2024
1 parent 8c519b4 commit e0918a1
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GENERATE_RTF = NO
CASE_SENSE_NAMES = NO
GENERATE_HTML = NO
GENERATE_XML = YES
RECURSIVE = NO
RECURSIVE = YES
QUIET = YES
JAVADOC_AUTOBRIEF = YES
WARN_IF_UNDOCUMENTED = NO
Expand Down
20 changes: 20 additions & 0 deletions doc/reference/utility_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ Codes for filters

.. doxygenenumvalue:: BLOSC_TRUNC_PREC

.. doxygenenumvalue:: BLOSC_FILTER_NDCELL

.. doxygenenumvalue:: BLOSC_FILTER_NDMEAN

.. doxygenenumvalue:: BLOSC_FILTER_BYTEDELTA

.. doxygenenumvalue:: BLOSC_FILTER_INT_TRUNC


Compressor codecs
-----------------
Expand All @@ -46,6 +54,18 @@ Compressor codecs

.. doxygenenumvalue:: BLOSC_ZSTD

.. doxygenenumvalue:: BLOSC_CODEC_NDLZ

.. doxygenenumvalue:: BLOSC_CODEC_ZFP_FIXED_ACCURACY

.. doxygenenumvalue:: BLOSC_CODEC_ZFP_FIXED_PRECISION

.. doxygenenumvalue:: BLOSC_CODEC_ZFP_FIXED_RATE

.. doxygenenumvalue:: BLOSC_CODEC_OPENHTJ2K

.. doxygenenumvalue:: BLOSC_CODEC_GROK


Compressor names
----------------
Expand Down
2 changes: 1 addition & 1 deletion include/blosc2.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ enum {
BLOSC_BITSHUFFLE = 2, //!< Bit-wise shuffle.
#endif // BLOSC_H
BLOSC_DELTA = 3, //!< Delta filter.
BLOSC_TRUNC_PREC = 4, //!< Truncate mantissa precision; positive values in cparams.filters_meta will keep bits; negative values will reduce bits.
BLOSC_TRUNC_PREC = 4, //!< Truncate mantissa precision; positive values in `filters_meta` will keep bits; negative values will zero bits.
BLOSC_LAST_FILTER = 5, //!< sentinel
BLOSC_LAST_REGISTERED_FILTER = BLOSC2_GLOBAL_REGISTERED_FILTERS_START + BLOSC2_GLOBAL_REGISTERED_FILTERS - 1,
//!< Determine the last registered filter. It is used to check if a filter is registered or not.
Expand Down
11 changes: 11 additions & 0 deletions include/blosc2/codecs-registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ extern "C" {

enum {
BLOSC_CODEC_NDLZ = 32,
//!< Simple Lempel-Ziv compressor for NDim data. Experimental, mainly for teaching purposes.
BLOSC_CODEC_ZFP_FIXED_ACCURACY = 33,
//!< ZFP compressor for fixed accuracy mode. The desired accuracy is set in `compcode_meta`.
//!< See https://github.com/Blosc/c-blosc2/blob/main/plugins/codecs/zfp/README.md
BLOSC_CODEC_ZFP_FIXED_PRECISION = 34,
//!< ZFP compressor for fixed precision. The desired precision is set in `compcode_meta`.
//!< See https://github.com/Blosc/c-blosc2/blob/main/plugins/codecs/zfp/README.md
BLOSC_CODEC_ZFP_FIXED_RATE = 35,
//!< ZFP compressor for fixed precision. The desired rate is set in `compcode_meta`.
//!< See https://github.com/Blosc/c-blosc2/blob/main/plugins/codecs/zfp/README.md
BLOSC_CODEC_OPENHTJ2K = 36,
//!< OpenHTJ2K compressor for JPEG 2000 HT.
//!< See https://github.com/Blosc/blosc2_openhtj2k
BLOSC_CODEC_GROK = 37,
//!< Grok compressor for JPEG 2000.
//!< See https://github.com/Blosc/blosc2_grok
};

void register_codecs(void);
Expand Down
16 changes: 13 additions & 3 deletions include/blosc2/filters-registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ extern "C" {

enum {
BLOSC_FILTER_NDCELL = 32,
//!< Simple filter for grouping NDim cell data together.
//!< See https://github.com/Blosc/c-blosc2/blob/main/plugins/filters/ndcell/README.md
BLOSC_FILTER_NDMEAN = 33,
BLOSC_FILTER_BYTEDELTA_BUGGY = 34, // buggy version. See #524
BLOSC_FILTER_BYTEDELTA = 35, // fixed version
BLOSC_FILTER_INT_TRUNC = 36, // truncate int precision; positive values in cparams.filters_meta will keep bits; negative values will reduce bits.
//!< Simple filter for replacing content of a NDim cell with its mean value.
//!< See https://github.com/Blosc/c-blosc2/blob/main/plugins/filters/ndmean/README.md
BLOSC_FILTER_BYTEDELTA_BUGGY = 34,
// buggy version. See #524
BLOSC_FILTER_BYTEDELTA = 35,
//!< Byteshuffle + delta. Sometimes this can represent an advantage over
//!< @ref BLOSC_SHUFFLE or @ref BLOSC_BITSHUFFLE.
//!< See https://www.blosc.org/posts/bytedelta-enhance-compression-toolset/
BLOSC_FILTER_INT_TRUNC = 36,
//!< Truncate int precision; positive values in `filter_meta` will keep bits; negative values will zero bits.
//!< This is similar to @ref BLOSC_TRUNC_PREC, but for integers instead of floating point data.
};

void register_filters(void);
Expand Down

0 comments on commit e0918a1

Please sign in to comment.