Updater: Gzip resources dejavu, refactor for CompressStreamDecoder API (#152)

* Add back uzlib

* FBT: Support different resources compress methods

* Tar: Detect gzip compress type

* Tar: Generic compressed stream refactor

* Compress: Shared config params

* Fix comment

* Compress: Scaffolding for gzip implementation

* Compress: Handle errors from allocation

* Compress: Gzip support implementation

* Tar/Compress: Don't rewind if already at stream cursor

* Update changelog
This commit is contained in:
WillyJL
2024-07-03 02:26:59 +02:00
committed by GitHub
parent 1cd18f61a2
commit b18ac01485
14 changed files with 282 additions and 74 deletions

View File

@@ -182,9 +182,9 @@ static void compress_test_heatshrink_stream() {
File* dest_file = storage_file_alloc(api);
CompressConfigHeatshrink config = {
.base.input_buffer_sz = 128,
.window_sz2 = 9,
.lookahead_sz2 = 4,
.input_buffer_sz = 128,
};
Compress* compress = compress_alloc(CompressTypeHeatshrink, &config);