Skip to content

Commit

Permalink
Add a comment describing the format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-zhao committed Nov 16, 2024
1 parent 9233c8b commit 8865c6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compressors/gfxcomp_wbmw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
#include "utils.h"
#include "rle.h"

// Compression format:
// - Data is processed one bitplane at a time
// - For each bitplane:
// - %0nnnnnnn = RLE run of n bytes, 1<=n<=127
// - %1nnnnnnn = raw run of n bytes (byte is negated count), 1<=n<=128
// - %00000000 = end of bitplane

void compressPlane(
std::vector<uint8_t>& destination,
const std::vector<uint8_t>::const_iterator& source,
Expand Down

0 comments on commit 8865c6a

Please sign in to comment.