code refactoring + integrate rdesktop code for bitmap decompression
This commit is contained in:
1372
lib/src/rle/rle.c
1372
lib/src/rle/rle.c
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,6 @@
|
||||
#ifndef _RLE_H_
|
||||
#define _RLE_H_
|
||||
|
||||
|
||||
int rle_decode_uint8(char* output, int width, int height, char* input, int size);
|
||||
int rle_decode_uint16(char* output, int width, int height, char* input, int size);
|
||||
int rle_decode_uint24(char* output, int width, int height, char* input, int size);
|
||||
int bitmap_decompress(char * output, int width, int height, char * input, int size, int Bpp);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#ifndef _RLE_M_H_
|
||||
#define _RLE_M_H_
|
||||
|
||||
#include "rle.h"
|
||||
|
||||
#define CVAL(p) ((unsigned char)(*(p++)))
|
||||
|
||||
#if defined(B_ENDIAN)
|
||||
#define EIK0 1
|
||||
#define EIK1 0
|
||||
#else
|
||||
#define EIK0 0
|
||||
#define EIK1 1
|
||||
#endif
|
||||
|
||||
#define REPEAT(statement) \
|
||||
{ \
|
||||
while ((count > 0) && (x < width)) \
|
||||
{ \
|
||||
statement; \
|
||||
count--; \
|
||||
x++; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define MASK_UPDATE \
|
||||
{ \
|
||||
mixmask <<= 1; \
|
||||
if ((mixmask & 0xff) == 0) \
|
||||
{ \
|
||||
mask = fom_mask ? fom_mask : CVAL(input); \
|
||||
mixmask = 1; \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user