Change player_test for player ROI precondition 49/174449/1 accepted/tizen/unified/20180404.063327 submit/tizen/20180403.052449
authorHyunil <hyunil46.park@samsung.com>
Mon, 2 Apr 2018 07:27:07 +0000 (16:27 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 2 Apr 2018 07:27:07 +0000 (16:27 +0900)
Change-Id: I1af04f76ec0df0daff53cbb00967e8396b5aeaf3
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
test/player_test.c

index 73f9a15..3fd9b3a 100644 (file)
@@ -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;