From: Hyunil Date: Mon, 2 Apr 2018 07:27:07 +0000 (+0900) Subject: Change player_test for player ROI precondition X-Git-Tag: accepted/tizen/unified/20180404.063327^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eac550f957573ee5bbf12e620a55cf8fd1c4681;p=platform%2Fcore%2Fapi%2Fplayer.git Change player_test for player ROI precondition Change-Id: I1af04f76ec0df0daff53cbb00967e8396b5aeaf3 Signed-off-by: Hyunil --- diff --git a/test/player_test.c b/test/player_test.c index 73f9a15..3fd9b3a 100644 --- a/test/player_test.c +++ b/test/player_test.c @@ -148,7 +148,7 @@ enum { CURRENT_STATUS_LOOPING, CURRENT_STATUS_DISPLAY_SURFACE_CHANGE, CURRENT_STATUS_DISPLAY_MODE, - CURRENT_STATUS_DISPLAY_DST_ROI, + CURRENT_STATUS_DISPLAY_DST_ROI_AREA, CURRENT_STATUS_DISPLAY_ROTATION, CURRENT_STATUS_DISPLAY_VISIBLE, CURRENT_STATUS_SUBTITLE_FILENAME, @@ -2223,8 +2223,7 @@ void _interpret_main_menu(char *cmd) } else if (strncmp(cmd, "ds", 2) == 0) { g_menu_state = CURRENT_STATUS_DISPLAY_SURFACE_CHANGE; } else if (strncmp(cmd, "dr", 2) == 0) { - g_print("now, PLAYER_DISPLAY_MODE_DST_ROI(display mode) is set\n"); - g_menu_state = CURRENT_STATUS_DISPLAY_DST_ROI; + g_menu_state = CURRENT_STATUS_DISPLAY_DST_ROI_AREA; } else if (strncmp(cmd, "nb", 2) == 0) { g_menu_state = CURRENT_STATUS_HANDLE_NUM; } else if (strncmp(cmd, "tr", 2) == 0) { @@ -2388,8 +2387,8 @@ static void displaymenu() } else if (g_menu_state == CURRENT_STATUS_DISPLAY_SURFACE_CHANGE) { g_print("*** input display surface type.(0: Wayland surface, 1: EVAS surface, 2: No use surface (e.g: audio playback)) \n"); } else if (g_menu_state == CURRENT_STATUS_DISPLAY_MODE) { - g_print("*** input display mode value.(0: LETTER BOX, 1: ORIGIN SIZE, 2: FULL_SCREEN, 3: CROPPED_FULL, 4: ORIGIN_OR_LETTER) \n"); - } else if (g_menu_state == CURRENT_STATUS_DISPLAY_DST_ROI) { + g_print("*** input display mode value.(0: LETTER BOX, 1: ORIGIN SIZE, 2: FULL_SCREEN, 3: CROPPED_FULL, 4: ORIGIN_OR_LETTER, 5:ROI) \n"); + } else if (g_menu_state == CURRENT_STATUS_DISPLAY_DST_ROI_AREA) { g_print("*** input display roi value sequentially.(x, y, w, h)\n"); } else if (g_menu_state == CURRENT_STATUS_DISPLAY_ROTATION) { g_print("*** input display rotation value.(0: NONE, 1: 90, 2: 180, 3: 270, 4:F LIP_HORZ, 5: FLIP_VERT ) \n"); @@ -2569,7 +2568,7 @@ static void interpret(char *cmd) reset_menu_state(); } break; - case CURRENT_STATUS_DISPLAY_DST_ROI: + case CURRENT_STATUS_DISPLAY_DST_ROI_AREA: { int value = atoi(cmd); static int x = 0; @@ -2578,7 +2577,6 @@ static void interpret(char *cmd) static int h = 0; static int cnt = 0; - set_display_mode(PLAYER_DISPLAY_MODE_DST_ROI); switch (cnt) { case 0: x = value;