#define PACKAGE "player_test"
#define WIDTH 16
#define HEIGHT 9
+#define x 5
+#define y 5
#define TIMEOUT 20000
#define SLEEP_TIME 12
#define API_NAMESPACE "PLAYER_ITC"
return 0;
}
+//& purpose: Sets the ROI(Region Of Interest) area of display
+//& type: auto
+/**
+* @testcase ITc_player_set_display_roi_area_p
+* @author SRID(manu.tiwari)
+* @reviewer SRID(amritanshu.p1)
+* @type auto
+* @since_tizen 3.0
+* @description Sets the ROI(Region Of Interest) area of display
+* @scenario set player display mode\n
+* set display roi area\n
+* @apicovered player_set_display_mode, player_set_display_roi_area
+* @passcase When player_set_display_roi_area api passed
+* @failcase When player_set_display_roi_area api failed
+* @precondition The player display mode must be set
+* @postcondition N/A
+*/
+int ITc_player_set_display_roi_area_p(void)
+{
+ START_TEST;
+
+ int nRet = player_set_display_mode(g_player, PLAYER_DISPLAY_MODE_DST_ROI);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display_mode", PlayerGetError(nRet));
+ usleep(2000);
+
+ nRet = player_set_display_roi_area(g_player, x, y, WIDTH, HEIGHT);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display_roi_area", PlayerGetError(nRet));
+
+ return 0;
+}
/** @} */
/** @} */
extern int ITc_player_set_display_visible_p(void);
extern int ITc_player_set_get_display_mode_p(void);
extern int ITc_player_is_display_visible_p(void);
+extern int ITc_player_set_display_roi_area_p(void);
extern int ITc_player_create_destroy_p(void);
extern int ITc_player_initialize_p(void);
extern int ITc_player_capture_video_p(void);
{"ITc_player_set_display_visible_p", ITc_player_set_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_set_get_display_mode_p", ITc_player_set_get_display_mode_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_is_display_visible_p", ITc_player_is_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
+ {"ITc_player_set_display_roi_area_p", ITc_player_set_display_roi_area_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_create_destroy_p", ITc_player_create_destroy_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_initialize_p", ITc_player_initialize_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_capture_video_p", ITc_player_capture_video_p, ITs_player_startup, ITs_player_cleanup},
extern int ITc_player_set_display_visible_p(void);
extern int ITc_player_set_get_display_mode_p(void);
extern int ITc_player_is_display_visible_p(void);
+extern int ITc_player_set_display_roi_area_p(void);
extern int ITc_player_create_destroy_p(void);
extern int ITc_player_initialize_p(void);
extern int ITc_player_capture_video_p(void);
{"ITc_player_set_display_visible_p", ITc_player_set_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_set_get_display_mode_p", ITc_player_set_get_display_mode_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_is_display_visible_p", ITc_player_is_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
+ {"ITc_player_set_display_roi_area_p", ITc_player_set_display_roi_area_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_create_destroy_p", ITc_player_create_destroy_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_initialize_p", ITc_player_initialize_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_capture_video_p", ITc_player_capture_video_p, ITs_player_startup, ITs_player_cleanup},
extern int ITc_player_set_display_visible_p(void);
extern int ITc_player_set_get_display_mode_p(void);
extern int ITc_player_is_display_visible_p(void);
+extern int ITc_player_set_display_roi_area_p(void);
extern int ITc_player_create_destroy_p(void);
extern int ITc_player_initialize_p(void);
extern int ITc_player_capture_video_p(void);
{"ITc_player_set_display_visible_p", ITc_player_set_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_set_get_display_mode_p", ITc_player_set_get_display_mode_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_is_display_visible_p", ITc_player_is_display_visible_p, ITs_player_display_startup, ITs_player_display_cleanup},
+ {"ITc_player_set_display_roi_area_p", ITc_player_set_display_roi_area_p, ITs_player_display_startup, ITs_player_display_cleanup},
{"ITc_player_create_destroy_p", ITc_player_create_destroy_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_initialize_p", ITc_player_initialize_p, ITs_player_startup, ITs_player_cleanup},
{"ITc_player_capture_video_p", ITc_player_capture_video_p, ITs_player_startup, ITs_player_cleanup},