#include <string.h>#include <unistd.h>#include <pthread.h>#include "displayreplicator.h"#include <GLUT/glut.h>#include <OpenGL/gl.h>#include <time.h>#include <sys/timeb.h>#include <stdlib.h>#include <stdio.h>#include "timer.h"#include <iostream>#include "glui.h"

Go to the source code of this file.
Namespaces | |
| namespace | std |
Defines | |
| #define | BLOCKSIZE_X 16 |
| #define | BLOCKSIZE_Y 16 |
| #define | MAXBLOCKS_X 2048/BLOCKSIZE_X |
| #define | MAXBLOCKS_Y 2048/BLOCKSIZE_Y |
| #define | PERCENT_CHANGE_MAX (-100) |
| #define | RGB_CHANGE_MAX (25) |
| #define | MAX_WIDTH 640 |
| #define | MAX_HEIGHT 480 |
| #define | MAX_LENGTH_JPEG 100000 |
| #define | PUT_2B(array, offset, value) |
| #define | PUT_4B(array, offset, value) |
Variables | |
| char | old_data [2][MAXBLOCKS_X][MAXBLOCKS_Y][BLOCKSIZE_X][BLOCKSIZE_Y][3] |
| bool | oldDataInitialized = false |
| bool | headerInitialized = false |
| int | do_switchboard = 1 |
| const char * | handshake = "displayserver v3.0" |
| LPBYTE | OutputBuffer = new unsigned char[MAX_LENGTH_JPEG] |
| DWORD | OutputLength |
| BITMAPINFO | OutputBitmapInfo |
| LPBYTE | OutputBuffer2 |
| DWORD | OutputLength2 |
| BITMAPINFO | OutputBitmapInfo2 |
| GLUI_StaticText * | ac = NULL |
| char | new_machine_name [300] |
| int | new_proto = 0 |
| int | new_rr = 1 |
| int | new_ct = 0 |
| int | new_compare = 0 |
| #define BLOCKSIZE_X 16 |
Definition at line 54 of file displayreplicator.cpp.
| #define BLOCKSIZE_Y 16 |
Definition at line 55 of file displayreplicator.cpp.
| #define MAX_HEIGHT 480 |
Definition at line 62 of file displayreplicator.cpp.
| #define MAX_LENGTH_JPEG 100000 |
Definition at line 63 of file displayreplicator.cpp.
| #define MAX_WIDTH 640 |
Definition at line 61 of file displayreplicator.cpp.
| #define MAXBLOCKS_X 2048/BLOCKSIZE_X |
Definition at line 56 of file displayreplicator.cpp.
| #define MAXBLOCKS_Y 2048/BLOCKSIZE_Y |
Definition at line 57 of file displayreplicator.cpp.
| #define PERCENT_CHANGE_MAX (-100) |
Definition at line 58 of file displayreplicator.cpp.
| #define PUT_2B | ( | array, | |||
| offset, | |||||
| value | ) |
Value:
(array[offset] = (char) ((value) & 0xFF), \
array[offset+1] = (char) (((value) >> 8) & 0xFF))
| #define PUT_4B | ( | array, | |||
| offset, | |||||
| value | ) |
Value:
(array[offset] = (char) ((value) & 0xFF), \
array[offset+1] = (char) (((value) >> 8) & 0xFF), \
array[offset+2] = (char) (((value) >> 16) & 0xFF), \
array[offset+3] = (char) (((value) >> 24) & 0xFF))
| #define RGB_CHANGE_MAX (25) |
Definition at line 59 of file displayreplicator.cpp.
| GLUI_StaticText* ac = NULL |
Definition at line 1135 of file displayreplicator.cpp.
| int do_switchboard = 1 |
Definition at line 68 of file displayreplicator.cpp.
| const char* handshake = "displayserver v3.0" |
Definition at line 71 of file displayreplicator.cpp.
| bool headerInitialized = false |
Definition at line 67 of file displayreplicator.cpp.
| int new_compare = 0 |
Definition at line 1153 of file displayreplicator.cpp.
| int new_ct = 0 |
Definition at line 1152 of file displayreplicator.cpp.
| char new_machine_name[300] |
Definition at line 1136 of file displayreplicator.cpp.
| int new_proto = 0 |
Definition at line 1137 of file displayreplicator.cpp.
| int new_rr = 1 |
Definition at line 1151 of file displayreplicator.cpp.
| char old_data[2][MAXBLOCKS_X][MAXBLOCKS_Y][BLOCKSIZE_X][BLOCKSIZE_Y][3] |
Definition at line 65 of file displayreplicator.cpp.
| bool oldDataInitialized = false |
Definition at line 66 of file displayreplicator.cpp.
| BITMAPINFO OutputBitmapInfo |
Definition at line 78 of file displayreplicator.cpp.
| BITMAPINFO OutputBitmapInfo2 |
Definition at line 81 of file displayreplicator.cpp.
| LPBYTE OutputBuffer = new unsigned char[MAX_LENGTH_JPEG] |
Definition at line 76 of file displayreplicator.cpp.
| LPBYTE OutputBuffer2 |
Definition at line 79 of file displayreplicator.cpp.
| DWORD OutputLength |
Definition at line 77 of file displayreplicator.cpp.
| DWORD OutputLength2 |
Definition at line 80 of file displayreplicator.cpp.
1.5.3