ReactOS  0.4.14-dev-614-gbfd8a84
vnc.h
Go to the documentation of this file.
1 #ifndef VNC_H
2 #define VNC_H
3 
4 #define BOOL rfb_BOOL
5 #include <rfb/rfb.h>
6 #undef BOOL
7 
8 typedef unsigned int vncPixel;
9 
10 typedef struct
11 {
14  rfbPixelFormat *format;
15  char *data;
17 }
18 vncBuffer;
19 
20 extern int vncPreparedClientSocket;
21 extern int vncPreparedServerSocket;
22 
23 /* - Buffer management */
24 extern vncBuffer *vncNewBuffer(int w, int h, int depth);
26 extern void vncDeleteBuffer(vncBuffer * b);
27 
28 /* - Colourmaps */
29 typedef struct
30 {
31  uint8_t r, g, b;
32 }
33 vncColour;
34 
35 extern void vncSetColourMap(rfbScreenInfoPtr s, rfbColourMap * m);
36 extern rfbColourMap *vncNewColourMap(rfbScreenInfoPtr s, int n);
37 extern void vncSetColourMapEntry(rfbColourMap * m, int i, vncPixel r, vncPixel g, vncPixel b);
38 extern void vncDeleteColourMap(rfbColourMap * m);
39 
40 /* - Simple pixel manipulation */
41 extern vncPixel vncGetPixel(vncBuffer * b, int x, int y);
42 extern void vncSetPixel(vncBuffer * b, int x, int y, vncPixel c);
43 
44 /* - Drawing primitives */
45 extern void vncSetRect(rfbScreenInfoPtr s, int x, int y, int w, int h, vncPixel c);
46 extern void vncCopyBlit(rfbScreenInfoPtr s, int x, int y, int w, int h, int srcx, int srcy);
47 extern void vncCopyBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
48  vncBuffer * b, int srcx, int srcy);
49 extern void vncTransBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
50  vncBuffer * b, int srcx, int srcy, int bg);
51 extern void vncXorBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
52  vncBuffer * b, int srcx, int srcy);
53 extern void vncAndBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h,
54  vncBuffer * b, int srcx, int srcy);
55 extern vncBuffer *vncGetRect(rfbScreenInfoPtr s, int x, int y, int w, int h);
56 
57 // - Low level VNC update primitives upon which the rest are based
58 extern void vncQueueCopyRect(rfbScreenInfoPtr s, int x, int y, int w, int h, int src_x, int src_y);
59 extern void vncQueueUpdate(rfbScreenInfoPtr s, int x, int y, int w, int h);
60 
61 /* cursor */
62 extern rfbCursorPtr vncNewCursor(vncBuffer * mask, vncBuffer * pointer, int hotx, int hoty);
63 extern void vncSetCursor(rfbScreenInfoPtr s, rfbCursorPtr c);
64 
65 int vncListenAtTcpAddr(unsigned short port);
66 void vncPrintStats();
67 
68 #endif
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
rfbColourMap * vncNewColourMap(rfbScreenInfoPtr s, int n)
Definition: vnc.c:1312
uint8_t r
Definition: vnc.h:31
GLsizei const GLvoid * pointer
Definition: glext.h:5848
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLdouble n
Definition: glext.h:7729
int vncPreparedClientSocket
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
vncBuffer * vncNewBuffer(int w, int h, int depth)
Definition: vnc.c:990
unsigned short int uint16_t
Definition: acefiex.h:54
void vncCopyBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h, vncBuffer *b, int srcx, int srcy)
Definition: vnc.c:1075
void vncAndBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h, vncBuffer *b, int srcx, int srcy)
Definition: vnc.c:1141
const GLfloat * m
Definition: glext.h:10848
void vncSetRect(rfbScreenInfoPtr s, int x, int y, int w, int h, vncPixel c)
Definition: vnc.c:1232
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
Definition: vnc.h:29
GLenum GLint GLuint mask
Definition: glext.h:6028
vncPixel vncGetPixel(vncBuffer *b, int x, int y)
Definition: vnc.c:1218
Definition: vnc.h:10
void vncSetColourMap(rfbScreenInfoPtr s, rfbColourMap *m)
Definition: vnc.c:1341
unsigned int BOOL
Definition: ntddk_ex.h:94
vncBuffer * vncDupBuffer(vncBuffer *b)
Definition: vnc.c:1003
void vncSetCursor(rfbScreenInfoPtr s, rfbCursorPtr c)
Definition: vnc.c:1211
#define b
Definition: ke_i.h:79
int vncPreparedServerSocket
void vncXorBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h, vncBuffer *b, int srcx, int srcy)
Definition: vnc.c:1112
rfbCursorPtr vncNewCursor(vncBuffer *mask, vncBuffer *pointer, int hotx, int hoty)
Definition: vnc.c:1179
GLboolean GLboolean g
Definition: glext.h:6204
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
uint16_t w
Definition: vnc.h:12
uint16_t linew
Definition: vnc.h:13
void vncDeleteBuffer(vncBuffer *b)
Definition: vnc.c:1170
const GLubyte * c
Definition: glext.h:8905
void vncQueueUpdate(rfbScreenInfoPtr s, int x, int y, int w, int h)
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
GLdouble s
Definition: gl.h:2039
void vncSetPixel(vncBuffer *b, int x, int y, vncPixel c)
Definition: vnc.c:1225
unsigned int vncPixel
Definition: vnc.h:8
BYTE uint8_t
Definition: msvideo1.c:66
void vncQueueCopyRect(rfbScreenInfoPtr s, int x, int y, int w, int h, int src_x, int src_y)
int vncListenAtTcpAddr(unsigned short port)
char * data
Definition: vnc.h:15
vncBuffer * vncGetRect(rfbScreenInfoPtr s, int x, int y, int w, int h)
Definition: vnc.c:1272
void vncDeleteColourMap(rfbColourMap *m)
Definition: vnc.c:1333
void vncPrintStats()
Definition: vnc.c:1011
void vncTransBlitFrom(rfbScreenInfoPtr s, int x, int y, int w, int h, vncBuffer *b, int srcx, int srcy, int bg)
Definition: vnc.c:1082
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
void vncCopyBlit(rfbScreenInfoPtr s, int x, int y, int w, int h, int srcx, int srcy)
Definition: vnc.c:1068
void vncSetColourMapEntry(rfbColourMap *m, int i, vncPixel r, vncPixel g, vncPixel b)
Definition: vnc.c:1322
USHORT port
Definition: uri.c:228
BOOL owner
Definition: vnc.h:16
rfbPixelFormat * format
Definition: vnc.h:14