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