Add support for bzip2, xz, zstd, lzma and zlib and their .tar conterparts - #126
Open
tintou wants to merge 4 commits into
Open
Add support for bzip2, xz, zstd, lzma and zlib and their .tar conterparts#126tintou wants to merge 4 commits into
tintou wants to merge 4 commits into
Conversation
Extract the per-call-site GzipDecoder wrapping for remote images into a wrap_async_decoder() helper. Pure refactor, no behavior change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Support .bz2, .xz, .zst, .lz4, .lzma and .zz images alongside .gz, for both local files and remote URLs. liblzma is used instead of xz2 to avoid a native lzma link conflict with async-compression's xz feature. Fixes collabora#32 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Have each match arm in setup_local_input()/wrap_async_decoder() produce a boxed decoder wrapped once at the end, instead of repeating the Decoder/Discarder boilerplate per arm. Behavior-preserving. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Support images wrapped in tar archives (plain .tar and the compressed .tar.gz/.tgz, .tar.bz2, .tar.xz/.txz, .tar.zst, .tar.lz4, .tar.lzma and .tar.zz variants), for local files and remote URLs. Add TarFileReader/AsyncTarFileReader, which stream the first regular file entry without buffering the whole archive, plus unit tests. Part of collabora#32 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tintou
force-pushed
the
tintou/compression-formats
branch
from
August 5, 2026 13:48
35ba6ae to
2ddd86f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the right decompression format depending on the file extension.
Closes: #32