ebiggers / wimlib

Mirror of https://wimlib.net/git/wimlib: Library supporting the Windows Imaging Format (WIM). Please file issues on the official forums (https://wimlib.net/forums/viewforum.php?f=1) rather than here.
Other
104 stars 21 forks source link

Cabinet-compatible LZX compression mode? #10

Open elasota opened 4 months ago

elasota commented 4 months ago

I'm thinking of doing a PR for this but I am wondering if it is out-of-scope for this project.

Some context: Right now as best I can tell, there are basically two options for making CAB files on non-Windows platforms: gcab and WINE's implementation of cabinet.dll. Both only support deflate compression. It would be nice to add support for those by using the compression functions exposed by wimlib, but it appears the E8 filter behavior is incompatible (it can't be disabled, and when enabled, it is active past the 32768th chunk, which differs from the cabinet behavior).

WIM doesn't need this at all though, so I'm wondering if adding a cabinet-compatible mode to the LZX compressor would be appropriate for this project.