1from warnings import warnpy3k
2warnpy3k("the SV module has been removed in Python 3.0", stacklevel=2)
3del warnpy3k
4
5NTSC_XMAX = 640
6NTSC_YMAX = 480
7PAL_XMAX = 768
8PAL_YMAX = 576
9BLANKING_BUFFER_SIZE = 2
10
11MAX_SOURCES = 2
12
13# mode parameter for Bind calls
14IN_OFF = 0                              # No Video
15IN_OVER = 1                             # Video over graphics
16IN_UNDER = 2                            # Video under graphics
17IN_REPLACE = 3                          # Video replaces entire win
18
19# mode parameters for LoadMap calls.  Specifies buffer, always 256 entries
20INPUT_COLORMAP = 0                      # tuples of 8-bit RGB
21CHROMA_KEY_MAP = 1                      # tuples of 8-bit RGB
22COLOR_SPACE_MAP = 2                     # tuples of 8-bit RGB
23GAMMA_MAP = 3                           # tuples of 24-bit red values
24
25# mode parameters for UseExclusive calls
26INPUT = 0
27OUTPUT = 1
28IN_OUT = 2
29
30# Format constants for the capture routines
31RGB8_FRAMES = 0                         # noninterleaved 8 bit 3:2:3 RBG fields
32RGB32_FRAMES = 1                        # 32-bit 8:8:8 RGB frames
33YUV411_FRAMES = 2                       # interleaved, 8:2:2 YUV format
34YUV411_FRAMES_AND_BLANKING_BUFFER = 3
35
36#
37# sv.SetParam is passed variable length argument lists,
38# consisting of <name, value> pairs.   The following
39# constants identify argument names.
40#
41_NAME_BASE = 1000
42SOURCE = (_NAME_BASE + 0)
43SOURCE1 = 0
44SOURCE2 = 1
45SOURCE3 = 2
46COLOR = (_NAME_BASE + 1)
47DEFAULT_COLOR = 0
48USER_COLOR = 1
49MONO = 2
50OUTPUTMODE = (_NAME_BASE + 2)
51LIVE_OUTPUT = 0
52STILL24_OUT = 1
53FREEZE = (_NAME_BASE + 3)
54DITHER = (_NAME_BASE + 4)
55OUTPUT_FILTER = (_NAME_BASE + 5)
56HUE = (_NAME_BASE + 6)
57GENLOCK = (_NAME_BASE + 7)
58GENLOCK_OFF = 0
59GENLOCK_ON = 1
60GENLOCK_HOUSE = 2
61BROADCAST = (_NAME_BASE + 8)
62NTSC = 0
63PAL = 1
64VIDEO_MODE = (_NAME_BASE + 9)
65COMP = 0
66SVIDEO = 1
67INPUT_BYPASS = (_NAME_BASE + 10)
68FIELDDROP = (_NAME_BASE + 11)
69SLAVE = (_NAME_BASE + 12)
70APERTURE_FACTOR = (_NAME_BASE + 13)
71AFACTOR_0 = 0
72AFACTOR_QTR = 1
73AFACTOR_HLF = 2
74AFACTOR_ONE = 3
75CORING = (_NAME_BASE + 14)
76COR_OFF = 0
77COR_1LSB = 1
78COR_2LSB = 2
79COR_3LSB = 3
80APERTURE_BANDPASS = (_NAME_BASE + 15)
81ABAND_F0 = 0
82ABAND_F1 = 1
83ABAND_F2 = 2
84ABAND_F3 = 3
85PREFILTER = (_NAME_BASE + 16)
86CHROMA_TRAP = (_NAME_BASE + 17)
87CK_THRESHOLD = (_NAME_BASE + 18)
88PAL_SENSITIVITY = (_NAME_BASE + 19)
89GAIN_CONTROL = (_NAME_BASE + 20)
90GAIN_SLOW = 0
91GAIN_MEDIUM = 1
92GAIN_FAST = 2
93GAIN_FROZEN = 3
94AUTO_CKILL = (_NAME_BASE + 21)
95VTR_MODE = (_NAME_BASE + 22)
96VTR_INPUT = 0
97CAMERA_INPUT = 1
98LUMA_DELAY = (_NAME_BASE + 23)
99VNOISE = (_NAME_BASE + 24)
100VNOISE_NORMAL = 0
101VNOISE_SEARCH = 1
102VNOISE_AUTO = 2
103VNOISE_BYPASS = 3
104CHCV_PAL = (_NAME_BASE + 25)
105CHCV_NTSC = (_NAME_BASE + 26)
106CCIR_LEVELS = (_NAME_BASE + 27)
107STD_CHROMA = (_NAME_BASE + 28)
108DENC_VTBYPASS = (_NAME_BASE + 29)
109FAST_TIMECONSTANT = (_NAME_BASE + 30)
110GENLOCK_DELAY = (_NAME_BASE + 31)
111PHASE_SYNC = (_NAME_BASE + 32)
112VIDEO_OUTPUT = (_NAME_BASE + 33)
113CHROMA_PHASEOUT = (_NAME_BASE + 34)
114CHROMA_CENTER = (_NAME_BASE + 35)
115YUV_TO_RGB_INVERT = (_NAME_BASE + 36)
116SOURCE1_BROADCAST = (_NAME_BASE + 37)
117SOURCE1_MODE = (_NAME_BASE + 38)
118SOURCE2_BROADCAST = (_NAME_BASE + 39)
119SOURCE2_MODE = (_NAME_BASE + 40)
120SOURCE3_BROADCAST = (_NAME_BASE + 41)
121SOURCE3_MODE = (_NAME_BASE + 42)
122SIGNAL_STD = (_NAME_BASE + 43)
123NOSIGNAL = 2
124SIGNAL_COLOR = (_NAME_BASE + 44)
125