Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swf: Use lzma-rs for LZMA SWFs (fix #405) #2004

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Conversation

Herschel
Copy link
Member

Pure Rust decoder that functions on desktop and wasm (thanks to @gendx!)
Enable lzma feature by default.

TODO: Switch to lzma-rs streaming API when stable on crates.io.
Currently decodes entire stream at once.

Pure Rust decoder that functions on desktop and wasm.
Enable lzma feature by default.

TODO: Switch to lzma-rs streaming API when stable on crates.io.
Currently decodes entire stream at once.
@Herschel Herschel merged commit 7cf217a into ruffle-rs:master Dec 18, 2020
@Herschel Herschel deleted the lzma branch December 18, 2020 02:28
@gendx
Copy link

gendx commented Dec 24, 2020

Glad to see that lzma-rs is useful to you!

I see that you also switched to lzma-rs for encoding in this pull request. Note that the current encoder - although hopefully correct - is very simple and therefore you should expect a worse compression ratio than with the original LZMA implementation. See gendx/lzma-rs#9 - help is of course welcome if that's something that matters to you!

@Herschel
Copy link
Member Author

Encoding performance/compression is not really a big deal to us (probably no one needs to write SWFs anymore... :-) For our use cases, it is mainly for simple tests).

Lord-McSweeney added a commit to Lord-McSweeney/ruffle that referenced this pull request Aug 4, 2023
danielhjacobs pushed a commit to danielhjacobs/ruffle that referenced this pull request Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants