Skip to content

De/CompressData usage #1795

Answered by raysan5
wereii asked this question in Q&A
May 29, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @wereii,

raylib compression/decompression functions use internally the libraries sdefl.h and sinfl.h that implement the standard Deflate (RFC 1951) algorithm, so, they should work with any stream using that same algorithm.

I just tested it with PNGs zlib-streams (Deflate with pre-filtering on scanlines) and it worked ok with any PNG. Are you sure that those methods you used generate a pure Deflate (RFC 1951) stream? Maybe some header data is added automatically...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wereii
Comment options

Answer selected by wereii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants