2 * AtmoDefs.h: a lot of globals defines for the color computation - most of this file
3 * is an one to one copy of "defs.h" from Atmo VDR Plugin
5 * See the README.txt file for copyright information and how to reach the author(s).
13 #if defined(__LIBVLC__)
17 /* some things need to be changed if this code is used inside VideoLan Filter Module */
18 # define _ATMO_VLC_PLUGIN_
19 # define ATMO_BOOL bool
20 # define ATMO_TRUE true
21 # define ATMO_FALSE false
25 typedef int ATMO_BOOL;
28 # define MakeWord(ch1,ch2) ((((int)(ch1)&255)<<8) | \
31 # define MakeDword(ch1,ch2,ch3,ch4) ((((DWORD)(ch1)&255) << 24) | \
32 (((DWORD)(ch2)&255) << 16) | \
33 (((DWORD)(ch3)&255) << 8) | \
42 #define INVALID_HANDLE_VALUE -1
44 typedef unsigned long DWORD;
48 #if !defined(_BITMAPFILEHEADER_)
49 #define _BITMAPFILEHEADER_
51 #ifdef HAVE_ATTRIBUTE_PACKED
52 __attribute__((__packed__))
60 } BITMAPFILEHEADER, *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER;
71 // maximal Anzahl Kanäle...
72 #define ATMO_NUM_CHANNELS 5
74 // capture width/height
79 #define IMAGE_SIZE (CAP_WIDTH * CAP_HEIGHT)
82 enum AtmoConnectionType
88 static const char *AtmoDeviceTypes[] = {
93 #define ATMO_DEVICE_COUNT 3
95 #if defined(_ATMO_VLC_PLUGIN_)
116 enum AtmoFilterMode {
125 int mappings[ATMO_NUM_CHANNELS];
126 } tChannelAssignment;
129 // --- tRGBColor --------------------------------------------------------------
132 unsigned char r, g, b;
135 // --- tColorPacket -----------------------------------------------------------
138 tRGBColor channel[ATMO_NUM_CHANNELS];
141 // --- tRGBColorLongInt -------------------------------------------------------
147 // --- tColorPacketLongInt ----------------------------------------------------
150 tRGBColorLongInt channel[ATMO_NUM_CHANNELS];
151 } tColorPacketLongInt;
153 // --- tWeightPacket ----------------------------------------------------------
156 int channel[ATMO_NUM_CHANNELS];
159 // --- tHSVColor --------------------------------------------------------------
162 unsigned char h, s, v;