blob: 9c3625afcd8ec405f1fd88e06bbc4a50f83e1ff1 [file] [log] [blame]
Sjoerd Mullender099d9231992-08-04 13:47:11 +00001NTSC_XMAX = 640
2NTSC_YMAX = 480
3PAL_XMAX = 768
4PAL_YMAX = 576
5
6MAX_SOURCES = 2
7
8# mode parameter for Bind calls
9IN_OFF = 0 # No Video
10IN_OVER = 1 # Video over graphics
11IN_UNDER = 2 # Video under graphics
12IN_REPLACE = 3 # Video replaces entire win
13
14# mode parameters for LoadMap calls. Specifies buffer, always 256 entries
15INPUT_COLORMAP = 0 # tuples of 8-bit RGB
16CHROMA_KEY_MAP = 1 # tuples of 8-bit RGB
17COLOR_SPACE_MAP = 2 # tuples of 8-bit RGB
18GAMMA_MAP = 3 # tuples of 24-bit red values
19
20# mode parameters for UseExclusive calls
21INPUT = 0
22OUTPUT = 1
23IN_OUT = 2
24
25# Format constants for sv.SetCaptureFormat()
26
27RGB_FRAMES = 0 # default. noninterleaved 8 bit 3:2:3 RBG fields
28YUV_FRAMES = 1 # interleaved, 8:2:2 YUV format
29RGB_EVEN_FIELDS = 2 # 8 bit 3:2:3 RBG fields
30RGB_ODD_FIELDS = 3 # 8 bit 3:2:3 RBG fields
31RGB_ALL_FIELDS = 4 # 8 bit 3:2:3 RBG fields
32YUV_FRAMES_AND_BLANKING_BUFFER = 5
33
34# Mode constants for sv.SetCaptureMode
35
36BLOCKING_CAPTURE = 1 # block when queue full
37REVOLVING_CAPTURE = 2 # don't block when queue full
38
39# Source constants for SOURCE option to sv.SetParam
40
41SOURCE1 = 0
42SOURCE2 = 1
43SOURCE3 = 2
44
45
46# Error codes
47STATUS_OK = 0
48STATUS_ERR = -1
49
50BAD_HANDLE = 1 # bad pointer
51BADOPEN = 2 # unable to open video device
52BADSTAT = 3 # bad stat of video device
53NODEV = 4 # video device doesn't exist
54BAD_INFO = 5 # bad info call on video driver
55BAD_ATTACH = 6 # unable to attach to video device
56NO_MEM = 7 # no memory available
57NO_GL = 8 # no GL support
58BAD_VALUE = 9 # Bad value of argument to routine
59NO_WINDOW = 10 # sv.BindWindow not done yet
60NO_INIT_CAP = 11 # sv.InitCapture not done yet
61INIT_CAP = 12 # cannot call after sv.InitCapture
62EXCLUSIVE = 13 # board already in exclusive mode
63NO_X = 14 # no X server with video available
64LAST_ERROR = 14
65
66#
67# sv.SetParam is passed variable length argument lists,
68# consisting of <name, value> pairs. The following
69# constants identify argument names.
70#
71_NAME_BASE = 1000
72SOURCE = (_NAME_BASE + 0)
73COLOR = (_NAME_BASE + 1)
74DEFAULT_COLOR = 0
75USER_COLOR = 1
76MONO = 2
77OUTPUTMODE = (_NAME_BASE + 2)
78LIVE_OUTPUT = 0
79STILL24_OUT = 1
80FREEZE = (_NAME_BASE + 3)
81DITHER = (_NAME_BASE + 4)
82OUTPUT_FILTER = (_NAME_BASE + 5)
83HUE = (_NAME_BASE + 6)
84GENLOCK = (_NAME_BASE + 7)
85GENLOCK_OFF = 0
86GENLOCK_ON = 1
87GENLOCK_HOUSE = 2
88BROADCAST = (_NAME_BASE + 8)
89NTSC = 0
90PAL = 1
91VIDEO_MODE = (_NAME_BASE + 9)
92COMP = 0
93SVIDEO = 1
94INPUT_BYPASS = (_NAME_BASE + 10)
95FIELDDROP = (_NAME_BASE + 11)
96SLAVE = (_NAME_BASE + 12)
97APERTURE_FACTOR = (_NAME_BASE + 13)
98AFACTOR_0 = 0
99AFACTOR_QTR = 1
100AFACTOR_HLF = 2
101AFACTOR_ONE = 3
102CORING = (_NAME_BASE + 14)
103COR_OFF = 0
104COR_1LSB = 1
105COR_2LSB = 2
106COR_3LSB = 3
107APERTURE_BANDPASS = (_NAME_BASE + 15)
108ABAND_F0 = 0
109ABAND_F1 = 1
110ABAND_F2 = 2
111ABAND_F3 = 3
112PREFILTER = (_NAME_BASE + 16)
113CHROMA_TRAP = (_NAME_BASE + 17)
114CK_THRESHOLD = (_NAME_BASE + 18)
115PAL_SENSITIVITY = (_NAME_BASE + 19)
116GAIN_CONTROL = (_NAME_BASE + 20)
117GAIN_SLOW = 0
118GAIN_MEDIUM = 1
119GAIN_FAST = 2
120GAIN_FROZEN = 3
121AUTO_CKILL = (_NAME_BASE + 21)
122VTR_MODE = (_NAME_BASE + 22)
123VTR_INPUT = 0
124CAMERA_INPUT = 1
125LUMA_DELAY = (_NAME_BASE + 23)
126VNOISE = (_NAME_BASE + 24)
127VNOISE_NORMAL = 0
128VNOISE_SEARCH = 1
129VNOISE_AUTO = 2
130VNOISE_BYPASS = 3
131CHCV_PAL = (_NAME_BASE + 25)
132CHCV_NTSC = (_NAME_BASE + 26)
133CCIR_LEVELS = (_NAME_BASE + 27)
134STD_CHROMA = (_NAME_BASE + 28)
135DENC_VTBYPASS = (_NAME_BASE + 29)
136FAST_TIMECONSTANT = (_NAME_BASE + 30)
137GENLOCK_DELAY = (_NAME_BASE + 31)
138PHASE_SYNC = (_NAME_BASE + 32)
139VIDEO_OUTPUT = (_NAME_BASE + 33)
140CHROMA_PHASEOUT = (_NAME_BASE + 34)
141CHROMA_CENTER = (_NAME_BASE + 35)
142YUV_TO_RGB_INVERT = (_NAME_BASE + 36)
143SOURCE0_BROADCAST = (_NAME_BASE + 37)
144SOURCE0_MODE = (_NAME_BASE + 38)
145SOURCE1_BROADCAST = (_NAME_BASE + 39)
146SOURCE1_MODE = (_NAME_BASE + 40)
147SOURCE2_BROADCAST = (_NAME_BASE + 41)
148SOURCE2_MODE = (_NAME_BASE + 42)
149SIGNAL_STD = (_NAME_BASE + 43)
150NOSIGNAL = 2
151SIGNAL_COLOR = (_NAME_BASE + 44)