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__)
16
# define __STDC_CONSTANT_MACROS 1
17
# include <inttypes.h>
19
# include <vlc_common.h>
21
/* some things need to be changed if this code is used inside VideoLan Filter Module */
22
# define _ATMO_VLC_PLUGIN_
23
# define ATMO_BOOL bool
24
# define ATMO_TRUE true
25
# define ATMO_FALSE false
29
typedef int ATMO_BOOL;
32
# define MakeWord(ch1,ch2) ((((int)(ch1)&255)<<8) | \
35
# define MakeDword(ch1,ch2,ch3,ch4) ((((DWORD)(ch1)&255) << 24) | \
36
(((DWORD)(ch2)&255) << 16) | \
37
(((DWORD)(ch3)&255) << 8) | \
46
#define INVALID_HANDLE_VALUE -1
48
typedef unsigned long DWORD;
52
#if !defined(_BITMAPFILEHEADER_)
53
#define _BITMAPFILEHEADER_
55
#ifdef HAVE_ATTRIBUTE_PACKED
56
__attribute__((__packed__))
64
} BITMAPFILEHEADER, *LPBITMAPFILEHEADER, *PBITMAPFILEHEADER;
75
// maximal Anzahl Kanäle...
76
#define ATMO_NUM_CHANNELS 5
78
// capture width/height
83
#define IMAGE_SIZE (CAP_WIDTH * CAP_HEIGHT)
86
enum AtmoConnectionType
92
static const char *AtmoDeviceTypes[] = {
97
#define ATMO_DEVICE_COUNT 3
99
#if defined(_ATMO_VLC_PLUGIN_)
120
enum AtmoFilterMode {
129
int mappings[ATMO_NUM_CHANNELS];
130
} tChannelAssignment;
133
// --- tRGBColor --------------------------------------------------------------
136
unsigned char r, g, b;
139
// --- tColorPacket -----------------------------------------------------------
142
tRGBColor channel[ATMO_NUM_CHANNELS];
145
// --- tRGBColorLongInt -------------------------------------------------------
151
// --- tColorPacketLongInt ----------------------------------------------------
154
tRGBColorLongInt channel[ATMO_NUM_CHANNELS];
155
} tColorPacketLongInt;
157
// --- tWeightPacket ----------------------------------------------------------
160
int channel[ATMO_NUM_CHANNELS];
163
// --- tHSVColor --------------------------------------------------------------
166
unsigned char h, s, v;