diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 18:20:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 18:20:33 +0200 |
commit | 218394958c7683f892275bb40eae880620feebcc (patch) | |
tree | d21f20359b49097fde9e13f34dcb3c0d2bee51e5 /src/liblzma/common/common.h | |
parent | liblzma: Remove two FIXME comments. (diff) | |
download | xz-218394958c7683f892275bb40eae880620feebcc.tar.xz |
liblzma: Pass the Filter ID to LZ encoder and decoder.
This allows using two Filter IDs with the same
initialization function and data structures.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h index b3a624c6..01841de0 100644 --- a/src/liblzma/common/common.h +++ b/src/liblzma/common/common.h @@ -162,8 +162,11 @@ typedef void (*lzma_end_function)( /// an array of lzma_filter_info structures. This array is used with /// lzma_next_filter_init to initialize the filter chain. struct lzma_filter_info_s { - /// Filter ID. This is used only by the encoder - /// with lzma_filters_update(). + /// Filter ID. This can be used to share the same initiazation + /// function *and* data structures with different Filter IDs + /// (LZMA_FILTER_LZMA1EXT does it), and also by the encoder + /// with lzma_filters_update() if filter chain is updated + /// in the middle of a raw stream or Block (LZMA_SYNC_FLUSH). lzma_vli id; /// Pointer to function used to initialize the filter. |