openTRI
0.1
rle.h
1
#ifndef __RLE_H__
2
#define __RLE_H__
3
4
//#define assembler_decode__
5
6
void
decodeRLE(
void
* src,
int
srcLen,
void
* dst,
int
dstLen,
int
bits );
7
8
// returns RLE encoded size of data, linesz gives number of pixels after which to stop any runs
9
// dstLen should be srcLen + srcLen/4 to make sure all of src can be encoded.
10
long
encodeRLE(
void
* src,
int
srcLen,
int
linesz,
void
* dst,
int
dstLen,
int
bits );
11
12
#endif
Generated by
1.12.0