xz/src/liblzma/lzma
Lasse Collin 625f4c7c99 liblzma: Add rough support for output-size-limited encoding in LZMA1.
With this it is possible to encode LZMA1 data without EOPM so that
the encoder will encode as much input as it can without exceeding
the specified output size limit. The resulting LZMA1 stream will
be a normal LZMA1 stream without EOPM. The actual uncompressed size
will be available to the caller via the uncomp_size pointer.

One missing thing is that the LZMA layer doesn't inform the LZ layer
when the encoding is finished and thus the LZ may read more input
when it won't be used. However, this doesn't matter if encoding is
done with a single call (which is the planned use case for now).
For proper multi-call encoding this should be improved.

This commit only adds the functionality for internal use.
Nothing uses it yet.
2021-01-14 18:58:13 +02:00
..
Makefile.inc liblzma: Rename lzma_presets.c back to lzma_encoder_presets.c. 2015-11-03 20:55:45 +02:00
fastpos.h liblzma: Fix warnings from -Wsign-conversion. 2019-06-23 21:38:56 +03:00
fastpos_table.c Revised the fastpos code. It now uses the slightly faster 2008-01-15 14:02:22 +02:00
fastpos_tablegen.c liblzma: Remove unneeded <sys/types.h> from fastpos_tablegen.c. 2020-02-24 23:23:18 +02:00
lzma2_decoder.c liblzma: Fix warnings from -Wsign-conversion. 2019-06-23 21:38:56 +03:00
lzma2_decoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
lzma2_encoder.c liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
lzma2_encoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
lzma_common.h liblzma: Fix warnings from -Wsign-conversion. 2019-06-23 21:38:56 +03:00
lzma_decoder.c Rename unaligned_read32ne to read32ne, and similarly for the others. 2019-12-31 00:47:49 +02:00
lzma_decoder.h liblzma: Make the use of lzma_allocator const-correct. 2012-07-17 18:19:59 +03:00
lzma_encoder.c liblzma: Add rough support for output-size-limited encoding in LZMA1. 2021-01-14 18:58:13 +02:00
lzma_encoder.h liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
lzma_encoder_optimum_fast.c liblzma: Avoid multiple definitions of lzma_coder structures. 2016-11-21 20:24:50 +02:00
lzma_encoder_optimum_normal.c liblzma: Add more uses of lzma_memcmplen() to the normal mode of LZMA. 2020-02-21 17:40:02 +02:00
lzma_encoder_presets.c liblzma: Rename lzma_presets.c back to lzma_encoder_presets.c. 2015-11-03 20:55:45 +02:00
lzma_encoder_private.h liblzma: Add rough support for output-size-limited encoding in LZMA1. 2021-01-14 18:58:13 +02:00