CURRENT_STATUS_SET_AUDIO_ONLY,
CURRENT_STATUS_SET_PRE_BUFFERING_SIZE,
CURRENT_STATUS_SET_RE_BUFFERING_SIZE,
+ CURRENT_STATUS_VIDEO360_SET_ENABLE,
+ CURRENT_STATUS_VIDEO360_SET_DOV,
+ CURRENT_STATUS_VIDEO360_SET_DOV1,
+ CURRENT_STATUS_VIDEO360_SET_FOV,
+ CURRENT_STATUS_VIDEO360_SET_FOV1,
+ CURRENT_STATUS_VIDEO360_SET_ZOOM,
+ CURRENT_STATUS_VIDEO_CODEC_TYPE,
};
typedef struct {
g_print("*** set pre buffering size (ms) \n");
} else if (g_menu_state == CURRENT_STATUS_SET_RE_BUFFERING_SIZE) {
g_print("*** set re buffering size (ms) \n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_ENABLE) {
+ g_print("*** input video 360 status (0: disabled (full panorama), 1: enabled)\n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_DOV) {
+ g_print("*** input direction of view yaw angle (+/- 180 deg.)\n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_DOV1) {
+ g_print("*** input direction of view pitch angle (+/- 90 deg.)\n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_FOV) {
+ g_print("*** input horizontal field of view angle (1~360 deg.)\n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_FOV1) {
+ g_print("*** input vertical field of view angle (1~180 deg.)\n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO360_SET_ZOOM) {
+ g_print("*** input zoom factor.(1.0~10.0, where 1.0 - no zoom, actual image) \n");
+ } else if (g_menu_state == CURRENT_STATUS_VIDEO_CODEC_TYPE) {
+ g_print("*** set video codec type (1: HW, 2: SW) \n");
} else {
g_print("*** unknown status.\n");
quit_program();
reset_menu_state();
}
break;
+ case CURRENT_STATUS_VIDEO360_SET_ENABLE:
+ {
+ int enable = atoi(cmd);
+ video360_set_enable(enable);
+ reset_menu_state();
+ }
+ break;
+ case CURRENT_STATUS_VIDEO360_SET_DOV:
+ {
+ value1 = atoi(cmd);
+ g_menu_state = CURRENT_STATUS_VIDEO360_SET_DOV1;
+ }
+ break;
+ case CURRENT_STATUS_VIDEO360_SET_DOV1:
+ {
+ value2 = atoi(cmd);
+ video360_set_dov(value1, value2);
+ reset_menu_state();
+ }
+ break;
+ case CURRENT_STATUS_VIDEO360_SET_FOV:
+ {
+ value1 = atoi(cmd);
+ g_menu_state = CURRENT_STATUS_VIDEO360_SET_FOV1;
+ }
+ break;
+ case CURRENT_STATUS_VIDEO360_SET_FOV1:
+ {
+ value2 = atoi(cmd);
+ video360_set_fov(value1, value2);
+ reset_menu_state();
+ }
+ break;
+ case CURRENT_STATUS_VIDEO360_SET_ZOOM:
+ {
+ float zoom = atof(cmd);
+ video360_set_zoom(zoom);
+ reset_menu_state();
+ }
+ break;
+ case CURRENT_STATUS_VIDEO_CODEC_TYPE:
+ {
+ int value = atoi(cmd);
+ set_video_codec_type(value);
+ reset_menu_state();
+ }
+ break;
}