BeRTOS
Functions
algo/rle.h File Reference

General-purpose run-length {en,de}coding algorithm. More...

Go to the source code of this file.

Functions

int rle (unsigned char *output, const unsigned char *input, int length)
 Run-length encode len bytes from the input buffer to the output buffer.
int unrle (unsigned char *output, const unsigned char *input)
 Run-length decode from the input buffer to the output buffer.

Detailed Description

General-purpose run-length {en,de}coding algorithm.

Author:
Bernie Innocenti <bernie@codewiz.org>

Definition in file algo/rle.h.


Function Documentation

int unrle ( unsigned char *  output,
const unsigned char *  input 
)

Run-length decode from the input buffer to the output buffer.

Note:
The output buffer must be large enough to accomodate all decoded output.

Definition at line 119 of file rle.c.