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