diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 23:16:21 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-11-27 23:16:21 +0200 |
commit | 33b8a24b6646a9dbfd8358405aec466b13078559 (patch) | |
tree | 166b0977ca46fa664c0b7ceab6e64a59a7abe4d2 /src/liblzma/common/index_decoder.h | |
parent | liblzma: Avoid unneeded use of void pointer in LZMA decoder. (diff) | |
download | xz-33b8a24b6646a9dbfd8358405aec466b13078559.tar.xz |
liblzma: Add LZMA_FILTER_LZMA1EXT to support LZMA1 without end marker.
Some file formats need support for LZMA1 streams that don't use
the end of payload marker (EOPM) alias end of stream (EOS) marker.
So far liblzma API has supported decompressing such streams via
lzma_alone_decoder() when .lzma header specifies a known
uncompressed size. Encoding support hasn't been available in the API.
Instead of adding a new LZMA1-only API for this purpose, this commit
adds a new filter ID for use with raw encoder and decoder. The main
benefit of this approach is that then also filter chains are possible,
for example, if someone wants to implement support for .7z files that
use the x86 BCJ filter with LZMA1 (not BCJ2 as that isn't supported
in liblzma).
Diffstat (limited to 'src/liblzma/common/index_decoder.h')
0 files changed, 0 insertions, 0 deletions