Hasty Briefsbeta

Bilingual

Libwce: The entropy layer of a wavelet codec, on its own

4 days ago
  • #image-compression
  • #entropy-coding
  • #open-source
  • Image codecs like JPEG use layered structures with transforms and entropy coding.
  • libwce is a minimal library implementing Bit-Plane Count (BPC) entropy coding in 500 lines of code.
  • BPC coding compresses wavelet coefficients by grouping them and encoding bit-plane counts with predictors.
  • The library is stateless, using caller-owned buffers without I/O or hidden globals.
  • Demos include a full image codec, mode comparisons, and robustness tests against data corruption.
  • libwce focuses only on the entropy layer, omitting container formats and rate control for simplicity.