algo/rle.h File Reference

General-purpose run-length {en,de}coding algorithm (interface). 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 (interface).

Version:
Id
rle.h 1627 2008-08-13 09:45:31Z bernie
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 120 of file rle.c.