📄 sv.py
字号:
NTSC_XMAX = 640NTSC_YMAX = 480PAL_XMAX = 768PAL_YMAX = 576BLANKING_BUFFER_SIZE = 2MAX_SOURCES = 2# mode parameter for Bind callsIN_OFF = 0 # No VideoIN_OVER = 1 # Video over graphicsIN_UNDER = 2 # Video under graphicsIN_REPLACE = 3 # Video replaces entire win# mode parameters for LoadMap calls. Specifies buffer, always 256 entriesINPUT_COLORMAP = 0 # tuples of 8-bit RGBCHROMA_KEY_MAP = 1 # tuples of 8-bit RGBCOLOR_SPACE_MAP = 2 # tuples of 8-bit RGBGAMMA_MAP = 3 # tuples of 24-bit red values# mode parameters for UseExclusive callsINPUT = 0OUTPUT = 1IN_OUT = 2# Format constants for the capture routinesRGB8_FRAMES = 0 # noninterleaved 8 bit 3:2:3 RBG fieldsRGB32_FRAMES = 1 # 32-bit 8:8:8 RGB framesYUV411_FRAMES = 2 # interleaved, 8:2:2 YUV formatYUV411_FRAMES_AND_BLANKING_BUFFER = 3## sv.SetParam is passed variable length argument lists,# consisting of <name, value> pairs. The following# constants identify argument names.#_NAME_BASE = 1000SOURCE = (_NAME_BASE + 0)SOURCE1 = 0SOURCE2 = 1SOURCE3 = 2COLOR = (_NAME_BASE + 1)DEFAULT_COLOR = 0USER_COLOR = 1MONO = 2OUTPUTMODE = (_NAME_BASE + 2)LIVE_OUTPUT = 0STILL24_OUT = 1FREEZE = (_NAME_BASE + 3)DITHER = (_NAME_BASE + 4)OUTPUT_FILTER = (_NAME_BASE + 5)HUE = (_NAME_BASE + 6)GENLOCK = (_NAME_BASE + 7)GENLOCK_OFF = 0GENLOCK_ON = 1GENLOCK_HOUSE = 2BROADCAST = (_NAME_BASE + 8)NTSC = 0PAL = 1VIDEO_MODE = (_NAME_BASE + 9)COMP = 0SVIDEO = 1INPUT_BYPASS = (_NAME_BASE + 10)FIELDDROP = (_NAME_BASE + 11)SLAVE = (_NAME_BASE + 12)APERTURE_FACTOR = (_NAME_BASE + 13)AFACTOR_0 = 0AFACTOR_QTR = 1AFACTOR_HLF = 2AFACTOR_ONE = 3CORING = (_NAME_BASE + 14)COR_OFF = 0COR_1LSB = 1COR_2LSB = 2COR_3LSB = 3APERTURE_BANDPASS = (_NAME_BASE + 15)ABAND_F0 = 0ABAND_F1 = 1ABAND_F2 = 2ABAND_F3 = 3PREFILTER = (_NAME_BASE + 16)CHROMA_TRAP = (_NAME_BASE + 17)CK_THRESHOLD = (_NAME_BASE + 18)PAL_SENSITIVITY = (_NAME_BASE + 19)GAIN_CONTROL = (_NAME_BASE + 20)GAIN_SLOW = 0GAIN_MEDIUM = 1GAIN_FAST = 2GAIN_FROZEN = 3AUTO_CKILL = (_NAME_BASE + 21)VTR_MODE = (_NAME_BASE + 22)VTR_INPUT = 0CAMERA_INPUT = 1LUMA_DELAY = (_NAME_BASE + 23)VNOISE = (_NAME_BASE + 24)VNOISE_NORMAL = 0VNOISE_SEARCH = 1VNOISE_AUTO = 2VNOISE_BYPASS = 3CHCV_PAL = (_NAME_BASE + 25)CHCV_NTSC = (_NAME_BASE + 26)CCIR_LEVELS = (_NAME_BASE + 27)STD_CHROMA = (_NAME_BASE + 28)DENC_VTBYPASS = (_NAME_BASE + 29)FAST_TIMECONSTANT = (_NAME_BASE + 30)GENLOCK_DELAY = (_NAME_BASE + 31)PHASE_SYNC = (_NAME_BASE + 32)VIDEO_OUTPUT = (_NAME_BASE + 33)CHROMA_PHASEOUT = (_NAME_BASE + 34)CHROMA_CENTER = (_NAME_BASE + 35)YUV_TO_RGB_INVERT = (_NAME_BASE + 36)SOURCE1_BROADCAST = (_NAME_BASE + 37)SOURCE1_MODE = (_NAME_BASE + 38)SOURCE2_BROADCAST = (_NAME_BASE + 39)SOURCE2_MODE = (_NAME_BASE + 40)SOURCE3_BROADCAST = (_NAME_BASE + 41)SOURCE3_MODE = (_NAME_BASE + 42)SIGNAL_STD = (_NAME_BASE + 43)NOSIGNAL = 2SIGNAL_COLOR = (_NAME_BASE + 44)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -