UNPKG

@br8kppooint/visca

Version:

Advanced nodejs library for working with VISCA-based PTZ cameras over IP and over serial connections.

186 lines (185 loc) 4.1 kB
export declare enum ControlMsg { command = 1, if_clear = 1, inquiry = 9, cancel = 32, add_set = 48 } export declare enum CameraMsg { netchange = 56, ack = 64, complete = 80, error = 96 } export declare enum DataType { interface = 0, camera = 4, operation = 6 } export declare enum CameraCmd { power = 0, sleep_time = 64, icr = 1, icr_auto = 81, icr_threshold = 33, gain = 12, gain_limit = 44, gain_direct = 76, rgain = 3, rgain_direct = 67, bgain = 4, bgain_direct = 68, zoom = 7, dzoom = 6, zoom_direct = 71, focus = 8, focus_ir_correction = 17, focus_trigger = 24, focus_near_limit = 40, focus_mode = 56, focus_direct = 72, focus_af_mode = 87, focus_af_interval = 39, focus_high_sensitivity = 88, wb_mode = 53, wb_trigger = 16, exposure_mode = 57, shutter_mode = 90, shutter = 10, shutter_direct = 74, iris = 11, iris_direct = 75, brightness = 13, brightness_direct = 77, exposure_comp = 14, exposure_comp_active = 62, exposure_comp_direct = 78, backlight = 51, wide_dynamic = 61, wide_dynamic_refresh = 16, wide_dynamic_direct = 45, aperture = 2, aperture_direct = 66, hires_enable = 82, noise_reduction = 83, gamma = 91, high_sensitivity = 94, effect = 99, effect_digital = 100, effect_level = 101, chroma_suppress = 95, color_gain = 73, color_hue = 79, memory = 63, id_set = 34 } export declare enum CameraOpCmd { pt_home = 4, pt_reset = 5, pt_move = 1, pt_direct = 2, pt_relative = 3, pt_limit = 7, pt_max_speed_inq = 17, pt_pos_inq = 18, pt_status_inq = 16, menu_screen = 6, video_format = 53, video_format_now_inq = 35, video_format_next_inq = 51, ir_receiver_on = 8 } export declare enum DataVal { stop = 0, reset = 0, clear = 1, more = 2, less = 3, value_reset = 0, value_clear = 1, value_up = 2, value_down = 3, zoom_stop = 0, zoom_tele = 2, zoom_wide = 3, zoom_tele_variable = 32, zoom_wide_variable = 48, focus_stop = 0, focus_far = 2, focus_near = 3, focus_far_variable = 32, focus_near_variable = 48, focus_trigger_now = 1, focus_trigger_inf = 2, wb_trigger_now = 5, on = 2, off = 3, toggle = 16, irc_enabled = 1, focus_mode_auto = 2, focus_mod_manual = 3, focus_mode_toggle = 16, autofocus_on_movement = 0, autofocus_on_interval = 1, autofocus_on_zoom = 2, wb_auto = 0, wb_indoor = 1, wb_outdoor = 2, wb_trigger = 3, wb_manual = 4, exposure_auto = 0, exposure_manual = 3, exposure_shutter = 10, exposure_iris = 11, exposure_bright = 13, wide_dynamic_auto = 0, wide_dynamic_ratio = 1, wide_dynamic_on = 2, wide_dynamic_off = 3, wide_dynamic_histogram = 4 } export declare enum CameraEffect { off = 0, pastel = 1, negative = 2, sepia = 3, bw = 4, solar = 5, mosaic = 6, slim = 7, stretch = 8, d_still = 1, d_flash = 2, d_lumi = 3, d_trail = 4 } export declare enum PTDirection { stop = 0, left = 1, right = 2, up = 1, down = 2, corner_ur = 1, corner_dl = 0 } export declare enum ViscaError { syntax = 2, buffer_full = 3, cancelled = 4, invalid_buffer = 5, command_failed = 65 } export declare const SpecialOpCommands: { ir_return_on: number[]; ir_return_off: number[]; info_display_on: number[]; info_display_off: number[]; ir_condition_inq: number[]; info_display_on_inq: number[]; fan_condition_inq: number[]; }; export declare const SpecialBlockInquiries: { system_version: number[]; camera_lens_inq: number[]; camera_image_inq: number[]; };