syndilights/frameserver/defines.h

45 lines
968 B
C
Raw Normal View History

#ifndef __DEFINES_H_
#define __DEFINES_H_
2010-11-15 12:44:10 +01:00
// four minutes should be enough (seconds)
// timeout set to two seconds for testing purposes
#define BUFTIMEOUT 2
#define NUMBUFS 1000
2010-11-15 12:44:10 +01:00
#define REMOTE_IP "127.0.0.1"
#define REMOTE_PORT 4422
#define HASH "s2l\n<8<18 "
// one byte number + 10 character hash plus newline
#define HEADEROFFSET 12
2010-11-15 12:44:10 +01:00
// 12 windows per floor, 8 floors, Value:Alpha
#define WIDTH 12
#define HEIGHT 8
#define CHANNELS 4
2010-11-15 12:44:10 +01:00
#define WINDOWOFFSET (WIDTH*CHANNELS+1)*HEIGHT
// 12 windows wide, 8 segment per window, RGBA
#define SEGWIDTH 12
#define SEGNUM 8
2010-11-15 12:44:10 +01:00
#define SEGCHANNELS 4
#define BUFLEN HEADEROFFSET+WINDOWOFFSET+(SEGNUM*SEGCHANNELS+1)*SEGWIDTH
// not used for simplicity
//#define SEGHEIGHT 1
struct frame_t
{
unsigned char z;
unsigned char windows[HEIGHT][WIDTH][CHANNELS];
unsigned char segments[SEGWIDTH][SEGNUM][SEGCHANNELS];
// int windows[HEIGHT][WIDTH][CHANNELS];
// int segments[SEGWIDTH][SEGNUM][SEGCHANNELS];
};
2010-11-12 16:43:27 +01:00
#endif