summaryrefslogtreecommitdiff
path: root/include/sqfs/compressor.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-04 04:29:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-04 04:29:04 +0200
commitad73b9440422c06805764da6058ebeb6d41a4f04 (patch)
treee2f1c315c7b04d825347772e8a4180650e49ea3e /include/sqfs/compressor.h
parenta07a965967f3ba44a74528f607d514502b928b17 (diff)
lzma compressor: add support for the "extreme" flag
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/compressor.h')
-rw-r--r--include/sqfs/compressor.h11
1 files changed, 11 insertions, 0 deletions
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
@@ -262,6 +262,17 @@ typedef enum {
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.
*/
SQFS_COMP_FLAG_XZ_X86 = 0x0001,