Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

bitmap.cpp File Reference

#include "rdesktop.h"

Include dependency graph for bitmap.cpp:

Go to the source code of this file.

Defines

#define CVAL(p)   (*(p++))
#define UNROLL8(exp)   { exp exp exp exp exp exp exp exp }
#define REPEAT(statement)
#define MASK_UPDATE()

Functions

static uint32 cvalx (unsigned char **input, int Bpp)
static void setli (unsigned char *input, int offset, uint32 value, int Bpp)
static uint32 getli (unsigned char *input, int offset, int Bpp)
BOOL bitmap_decompress (unsigned char *output, int width, int height, unsigned char *input, int size, int Bpp)


Define Documentation

#define CVAL p   )     (*(p++))
 

Definition at line 23 of file bitmap.cpp.

Referenced by bitmap_decompress().

 
#define MASK_UPDATE  ) 
 

Value:

{ \
        mixmask <<= 1; \
        if (mixmask == 0) \
        { \
                mask = fom_mask ? fom_mask : CVAL(input); \
                mixmask = 1; \
        } \
}

Definition at line 60 of file bitmap.cpp.

Referenced by bitmap_decompress().

#define REPEAT statement   ) 
 

Value:

{ \
        while((count & ~0x7) && ((x+8) < width)) \
                UNROLL8( statement; count--; x++; ); \
        \
        while((count > 0) && (x < width)) { statement; count--; x++; } \
}

Definition at line 52 of file bitmap.cpp.

Referenced by bitmap_decompress().

#define UNROLL8 exp   )     { exp exp exp exp exp exp exp exp }
 

Definition at line 50 of file bitmap.cpp.


Function Documentation

BOOL bitmap_decompress unsigned char *  output,
int  width,
int  height,
unsigned char *  input,
int  size,
int  Bpp
 

Definition at line 71 of file bitmap.cpp.

References code, CVAL, cvalx(), end, False, getli(), MASK_UPDATE, NULL, REPEAT, setli(), True, unimpl(), and Opie::MM::x.

Referenced by process_bitmap_updates(), and process_bmpcache().

static uint32 cvalx unsigned char **  input,
int  Bpp
[static]
 

Definition at line 26 of file bitmap.cpp.

Referenced by bitmap_decompress().

static uint32 getli unsigned char *  input,
int  offset,
int  Bpp
[static]
 

Definition at line 42 of file bitmap.cpp.

Referenced by bitmap_decompress().

static void setli unsigned char *  input,
int  offset,
uint32  value,
int  Bpp
[static]
 

Definition at line 35 of file bitmap.cpp.

Referenced by bitmap_decompress().


Generated on Sat Nov 5 17:04:03 2005 for OPIE by  doxygen 1.4.2