Tagged articles
2 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Mar 25, 2026 · Fundamentals

How to Build a gzip Decompressor in Rust – Inside DEFLATE, Huffman & LZ77

The article walks through creating a compact 250‑line Rust gzip decompressor from scratch, explaining gzip’s header, DEFLATE block types, bit‑reading logic, Huffman coding, and LZ77 back‑references, and shows how to test it with real compressed data, highlighting key implementation challenges and trade‑offs.

DEFLATEGzipHuffman
0 likes · 14 min read
How to Build a gzip Decompressor in Rust – Inside DEFLATE, Huffman & LZ77
Sohu Tech Products
Sohu Tech Products
Sep 28, 2022 · Mobile Development

Understanding Android Image Compression: Fundamentals, Algorithms, and Luban Implementation

This article explains Android image compression fundamentals—including ARGB, bitmap memory, bit‑depth vs. colour‑depth, quality and sampling compression methods—then details the Luban algorithm, its shortcomings, proposed improvements, and the underlying Skia/Huffman/JPEG native implementation with code examples.

AndroidBitmapHuffman
0 likes · 27 min read
Understanding Android Image Compression: Fundamentals, Algorithms, and Luban Implementation