Add compress level for BGI Dsc file

This commit is contained in:
2026-05-12 21:31:32 +08:00
parent b198a2fb3f
commit 70ef574b94
6 changed files with 277 additions and 114 deletions

View File

@@ -349,9 +349,9 @@ pub struct ExtraConfig {
/// Whether to compress files in BGI archive when packing BGI archive.
pub bgi_compress_file: bool,
#[cfg(feature = "bgi-arc")]
#[default(3)]
/// Minimum length of match size for DSC compression. Possible values are 2-256.
pub bgi_compress_min_len: usize,
#[default(9)]
/// Compress level for BGI Dsc file. 0 means store, 9 mean best compression.
pub bgi_compress_level: u8,
#[cfg(feature = "emote-img")]
/// Whether to overlay PIMG images. (By default, true if all layers are not group layers.)
pub emote_pimg_overlay: Option<bool>,