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 841 2007-10-08 17:35:23Z marco
Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file 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 136 of file rle.c.