LibVNCServer/LibVNCClient
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
translate.c File Reference
#include <rfb/rfb.h>
#include <rfb/rfbregion.h>
#include "tableinitcmtemplate.c"
#include "tableinittctemplate.c"
#include "tabletranstemplate.c"
+ Include dependency graph for translate.c:

Go to the source code of this file.

Macros

#define PF_EQ(x, y)
 
#define CONCAT2(a, b)   a##b
 
#define CONCAT2E(a, b)   CONCAT2(a,b)
 
#define CONCAT3(a, b, c)   a##b##c
 
#define CONCAT3E(a, b, c)   CONCAT3(a,b,c)
 
#define CONCAT4(a, b, c, d)   a##b##c##d
 
#define CONCAT4E(a, b, c, d)   CONCAT4(a,b,c,d)
 
#define OUT   8
 
#define IN   8
 
#define IN   16
 
#define IN   32
 
#define OUT   16
 
#define IN   8
 
#define IN   16
 
#define IN   32
 
#define OUT   32
 
#define IN   8
 
#define IN   16
 
#define IN   32
 
#define COUNT_OFFSETS   3
 
#define BPP2OFFSET(bpp)   ((int)(bpp)/16)
 

Typedefs

typedef void(* rfbInitCMTableFnType )(char **table, rfbPixelFormat *in, rfbPixelFormat *out, rfbColourMap *cm)
 
typedef void(* rfbInitTableFnType )(char **table, rfbPixelFormat *in, rfbPixelFormat *out)
 

Functions

void rfbTranslateNone (char *table, rfbPixelFormat *in, rfbPixelFormat *out, char *iptr, char *optr, int bytesBetweenInputLines, int width, int height)
 
rfbBool rfbSetTranslateFunction (rfbClientPtr cl)
 
rfbBool rfbSetClientColourMap (rfbClientPtr cl, int firstColour, int nColours)
 
void rfbSetClientColourMaps (rfbScreenInfoPtr rfbScreen, int firstColour, int nColours)
 

Variables

rfbBool rfbEconomicTranslate = FALSE
 

Macro Definition Documentation

#define BPP2OFFSET (   bpp)    ((int)(bpp)/16)

Definition at line 129 of file translate.c.

#define CONCAT2 (   a,
 
)    a##b

Definition at line 59 of file translate.c.

#define CONCAT2E (   a,
 
)    CONCAT2(a,b)

Definition at line 60 of file translate.c.

#define CONCAT3 (   a,
  b,
 
)    a##b##c

Definition at line 61 of file translate.c.

#define CONCAT3E (   a,
  b,
 
)    CONCAT3(a,b,c)

Definition at line 62 of file translate.c.

#define CONCAT4 (   a,
  b,
  c,
 
)    a##b##c##d

Definition at line 63 of file translate.c.

#define CONCAT4E (   a,
  b,
  c,
 
)    CONCAT4(a,b,c,d)

Definition at line 64 of file translate.c.

#define COUNT_OFFSETS   3

Definition at line 128 of file translate.c.

#define IN   8

Definition at line 106 of file translate.c.

#define IN   16

Definition at line 106 of file translate.c.

#define IN   32

Definition at line 106 of file translate.c.

#define IN   8

Definition at line 106 of file translate.c.

#define IN   16

Definition at line 106 of file translate.c.

#define IN   32

Definition at line 106 of file translate.c.

#define IN   8

Definition at line 106 of file translate.c.

#define IN   16

Definition at line 106 of file translate.c.

#define IN   32

Definition at line 106 of file translate.c.

#define OUT   8

Definition at line 97 of file translate.c.

#define OUT   16

Definition at line 97 of file translate.c.

#define OUT   32

Definition at line 97 of file translate.c.

#define PF_EQ (   x,
 
)
Value:
((x.bitsPerPixel == y.bitsPerPixel) && \
(x.depth == y.depth) && \
((x.bigEndian == y.bigEndian) || (x.bitsPerPixel == 8)) && \
(x.trueColour == y.trueColour) && \
(!x.trueColour || ((x.redMax == y.redMax) && \
(x.greenMax == y.greenMax) && \
(x.blueMax == y.blueMax) && \
(x.redShift == y.redShift) && \
(x.greenShift == y.greenShift) && \
(x.blueShift == y.blueShift))))

Definition at line 47 of file translate.c.

Typedef Documentation

typedef void(* rfbInitCMTableFnType)(char **table, rfbPixelFormat *in, rfbPixelFormat *out, rfbColourMap *cm)

Definition at line 132 of file translate.c.

typedef void(* rfbInitTableFnType)(char **table, rfbPixelFormat *in, rfbPixelFormat *out)

Definition at line 134 of file translate.c.