BeRTOS
Functions
rle.c File Reference

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

#include "rle.h"

Go to the source code of this file.

Functions

int rle (unsigned char *output, const unsigned char *input, int len)
 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 (implementation)

Original source code from http://www.compuphase.com/compress.htm

Author:
Bernie Innocenti <bernie@codewiz.org>

Definition in file rle.c.


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.