📄 visca_cli.c
字号:
#endif#if !D30ONLY if (strcmp(command, "set_slow_shutter_auto") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_slow_shutter_auto (&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_backlight_comp") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_backlight_comp (&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_zero_lux_shot") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_zero_lux_shot (&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_ir_led") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_ir_led (&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_mirror") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_mirror (&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_freeze") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_freeze (&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_display") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_display (&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_date_display") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_date_display (&interface, &camera, boolarg)!=VISCA_SUCCESS){ return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_time_display") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_time_display (&interface, &camera, boolarg)!=VISCA_SUCCESS){ return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_title_display") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_title_display (&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_zoom_tele_speed") == 0) { if ((arg1 == NULL) || (intarg1 < 2) || (intarg1 > 7)) { return 41; } if (VISCA_set_zoom_tele_speed (&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_zoom_wide_speed") == 0) { if ((arg1 == NULL) || (intarg1 < 2) || (intarg1 > 7)) { return 41; } if (VISCA_set_zoom_wide_speed(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_zoom_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1023)) { return 41; } if (VISCA_set_zoom_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_focus_far_speed") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1023)) { return 41; } if (VISCA_set_focus_far_speed(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_focus_near_speed") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1023)) { return 41; } if (VISCA_set_focus_near_speed(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_focus_value") == 0) { if ((arg1 == NULL) || (intarg1 < 1000) || (intarg1 > 40959)) { return 41; } if (VISCA_set_focus_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_focus_near_limit") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_focus_near_limit(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_whitebal_mode") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 3)) { return 41; } if (VISCA_set_whitebal_mode(&interface, &camera, intarg1)!=VISCA_SUCCESS){ return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_rgain_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_rgain_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_bgain_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_bgain_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_shutter_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 27)) { return 41; } if (VISCA_set_shutter_value(&interface, &camera, intarg1)!=VISCA_SUCCESS){ return 46; } return 10; } if (strcmp(command, "set_iris_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 17)) { return 41; } if (VISCA_set_iris_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_gain_value") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 7)) { return 41; } if (VISCA_set_gain_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_bright_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_bright_value(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_aperture_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_aperture_value(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_exp_comp_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_exp_comp_value(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_auto_exp_mode") == 0) { if (arg1 == NULL) { return 41; } if (!((intarg1 == 0) || (intarg1 == 3) || (intarg1 == 10) || (intarg1 == 11) || (intarg1 == 13))) { return 41; } if (VISCA_set_auto_exp_mode(&interface, &camera, intarg1)!=VISCA_SUCCESS){ return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_wide_mode") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_wide_mode(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_picture_effect") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_picture_effect(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_digital_effect") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_digital_effect(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif#if !D30ONLY if (strcmp(command, "set_digital_effect_level") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1)) { return 41; } if (VISCA_set_digital_effect_level(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "memory_set") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 5)) { return 41; } if (VISCA_memory_set(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "memory_recall") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 5)) { return 41; } if (VISCA_memory_recall(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "memory_reset") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 5)) { return 41; } if (VISCA_memory_reset(&interface, &camera, intarg1)!=VISCA_SUCCESS) { return 46; } return 10; }#if !D30ONLY if (strcmp(command, "set_zoom_and_focus_value") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 1023)) { return 41; } if ((arg2 == NULL) || (intarg2 < 1000) || (intarg2 > 40959)) { return 42; } if (VISCA_set_zoom_and_focus_value(&interface, &camera, intarg1, intarg2) != VISCA_SUCCESS) { return 46; } return 10; }#endif if (strcmp(command, "set_pantilt_up") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 24)) { return 41; } if ((arg2 == NULL) || (intarg2 < 1) || (intarg2 > 20)) { return 42; } if (VISCA_set_pantilt_up(&interface, &camera, intarg1, intarg2) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_pantilt_down") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 24)) { return 41; } if ((arg2 == NULL) || (intarg2 < 1) || (intarg2 > 20)) { return 42; } if (VISCA_set_pantilt_down(&interface, &camera, intarg1, intarg2) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_pantilt_left") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 24)) { return 41; } if ((arg2 == NULL) || (intarg2 < 1) || (intarg2 > 20)) { return 42; } if (VISCA_set_pantilt_left(&interface, &camera, intarg1, intarg2) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_pantilt_right") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 24)) { return 41; } if ((arg2 == NULL) || (intarg2 < 1) || (intarg2 > 20)) { return 42; } if (VISCA_set_pantilt_right(&interface, &camera, intarg1, intarg2) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_pantilt_upleft") == 0) { if ((arg1 == NULL) || (intarg1 < 1) || (intarg1 > 24)) { return 41; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -