📄 visca_cli.c
字号:
return 11; }#endif#if !D30ONLY if (strcmp(command, "get_exp_comp_value") == 0) { if (VISCA_get_exp_comp_value(&interface, &camera, &value16) != VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; }#endif#if !D30ONLY if (strcmp(command, "get_aperture_value") == 0) { if (VISCA_get_aperture_value(&interface, &camera, &value16) != VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; }#endif#if !D30ONLY if (strcmp(command, "get_wide_mode") == 0) { if (VISCA_get_wide_mode(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; }#endif#if !D30ONLY if (strcmp(command, "get_picture_effect") == 0) { if (VISCA_get_picture_effect(&interface, &camera, &value8) != VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; }#endif#if !D30ONLY if (strcmp(command, "get_digital_effect") == 0) { if (VISCA_get_digital_effect(&interface, &camera, &value8) != VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; }#endif#if !D30ONLY if (strcmp(command, "get_digital_effect_level") == 0) { if (VISCA_get_digital_effect_level(&interface, &camera, &value16) != VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; }#endif if (strcmp(command, "get_memory") == 0) { if (VISCA_get_memory(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_id") == 0) { if (VISCA_get_id(&interface, &camera, &value16)!=VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; } if (strcmp(command, "get_videosystem") == 0) { if (VISCA_get_videosystem(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_pantilt_mode") == 0) { if (VISCA_get_pantilt_mode(&interface, &camera, &value16)!=VISCA_SUCCESS){ return 46; } *ret1 = value16; return 11; } if (strcmp(command, "get_pantilt_maxspeed") == 0) { if (VISCA_get_pantilt_maxspeed(&interface, &camera, &value8, &value8b) != VISCA_SUCCESS){ return 46; } *ret1 = value8; *ret2 = value8b; return 12; } if (strcmp(command, "get_pantilt_position") == 0) { if (VISCA_get_pantilt_position(&interface, &camera, ret1, ret2) != VISCA_SUCCESS){ return 46; } return 12; } if (strcmp(command, "set_at_mode_onoff") == 0) { if (VISCA_set_at_mode_onoff(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_ae_onoff") == 0) { if (VISCA_set_at_ae_onoff(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_autozoom_onoff") == 0) { if (VISCA_set_at_autozoom_onoff(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_atmd_framedisplay_onoff") == 0) { if (VISCA_set_atmd_framedisplay_onoff(&interface, &camera) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_frameoffset_onoff") == 0) { if (VISCA_set_at_frameoffset_onoff(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_atmd_startstop") == 0) { if (VISCA_set_atmd_startstop(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_chase_next") == 0) { if (VISCA_set_at_chase_next(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_mode_onoff") == 0) { if (VISCA_set_md_mode_onoff(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_frame") == 0) { if (VISCA_set_md_frame(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_detect") == 0) { if (VISCA_set_md_detect(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_lostinfo") == 0) { if (VISCA_set_at_lostinfo(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_lostinfo") == 0) { if (VISCA_set_md_lostinfo(&interface, &camera)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_measure_mode1_onoff") == 0) { if (VISCA_set_md_measure_mode1_onoff(&interface, &camera)!=VISCA_SUCCESS){ return 46; } return 10; } if (strcmp(command, "set_md_measure_mode2_onoff") == 0) { if (VISCA_set_md_measure_mode2_onoff(&interface, &camera)!=VISCA_SUCCESS){ return 46; } return 10; } if (strcmp(command, "set_focus_auto") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_focus_auto (&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_mode") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_at_mode(&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_ae") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_at_ae(&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_autozoom") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_at_autozoom(&interface, &camera, boolarg)!=VISCA_SUCCESS){ return 46; } return 10; } if (strcmp(command, "set_atmd_framedisplay") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_atmd_framedisplay(&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_frameoffset") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_at_frameoffset(&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_mode") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_md_mode(&interface, &camera, boolarg)!=VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_measure_mode1") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_md_measure_mode1(&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_measure_mode2") == 0) { if ((arg1 == NULL) || (boolarg == -1)) { return 41; } if (VISCA_set_md_measure_mode2(&interface, &camera, boolarg) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_wide_con_lens") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 7)) { return 41; } if (VISCA_set_wide_con_lens(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_chase") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 2)) { return 41; } if (VISCA_set_at_chase(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_at_entry") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 3)) { return 41; } if (VISCA_set_at_entry(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_ylevel") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 15)) { return 41; } if (VISCA_set_md_adjust_ylevel(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_huelevel") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 15)) { return 41; } if (VISCA_set_md_adjust_huelevel(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_size") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 15)) { return 41; } if (VISCA_set_md_adjust_size(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_disptime") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 15)) { return 41; } if (VISCA_set_md_adjust_disptime(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_refmode") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 2)) { return 41; } if (VISCA_set_md_adjust_refmode(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "set_md_adjust_reftime") == 0) { if ((arg1 == NULL) || (intarg1 < 0) || (intarg1 > 15)) { return 41; } if (VISCA_set_md_adjust_reftime(&interface, &camera, intarg1) != VISCA_SUCCESS) { return 46; } return 10; } if (strcmp(command, "get_keylock") == 0) { if (VISCA_get_keylock(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } if (value8 == 0) { *ret1 = 0; } else if (value8 == 2) { *ret1 = 1; } else { return 47; } return 11; } if (strcmp(command, "get_wide_con_lens") == 0) { if (VISCA_get_wide_con_lens(&interface, &camera, &value8)!=VISCA_SUCCESS){ return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_atmd_mode") == 0) { if (VISCA_get_atmd_mode(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_at_mode") == 0) { if (VISCA_get_at_mode(&interface, &camera, &value16)!=VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; } if (strcmp(command, "get_at_entry") == 0) { if (VISCA_get_at_entry(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_md_mode") == 0) { if (VISCA_get_md_mode(&interface, &camera, &value16)!=VISCA_SUCCESS) { return 46; } *ret1 = value16; return 11; } if (strcmp(command, "get_md_ylevel") == 0) { if (VISCA_get_md_ylevel(&interface, &camera, &value8)!=VISCA_SUCCESS) { return 46; } *ret1 = value8; return 11; } if (strcmp(command, "get_md_huelevel") == 0) { if (VISCA_get_md_huelevel(&interface, &camera, &value8)!=VISCA_SUCCESS) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -