compress
Compresses input using the Nintendo DS RLE format.
Encoding strategy:
Runs of >= RleCodec.MIN_RUN identical bytes are emitted as run blocks (up to RleCodec.MAX_RUN bytes).
All other bytes are collected and emitted as literal blocks (up to RleCodec.MAX_LITERAL bytes).
Return
The compressed data including the 4-byte header.
Parameters
input
The raw data to compress.