From ad73b9440422c06805764da6058ebeb6d41a4f04 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 4 Jun 2020 04:29:04 +0200 Subject: lzma compressor: add support for the "extreme" flag Signed-off-by: David Oberhollenzer --- include/sqfs/compressor.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/sqfs/compressor.h b/include/sqfs/compressor.h index bdb942e..a257c3a 100644 --- a/include/sqfs/compressor.h +++ b/include/sqfs/compressor.h @@ -261,6 +261,17 @@ typedef enum { SQFS_COMP_FLAG_LZ4_HC = 0x0001, SQFS_COMP_FLAG_LZ4_ALL = 0x0001, + /** + * @brief Tell the LZMAv1 compressor to try the "extreme" option. + * + * The "extreme" option means that the compressor should try some + * strategies that it normally wouldn't, that may drastically increase + * compression time, but will not increase the decompressors memory + * consumption. + */ + SQFS_COMP_FLAG_LZMA_EXTREME = 0x0001, + SQFS_COMP_FLAG_LZMA_ALL = 0x0001, + /** * @brief For XZ, set this to select the x86 BCJ filter. */ -- cgit v1.2.3