player_set_completed_cb
player_set_display
player_set_display_mode
+player_set_display_roi_area
player_set_display_rotation
player_set_display_visible
player_set_error_cb
extern int utc_media_player_set_display_mode_n(void);
extern int utc_media_player_get_display_mode_p(void);
extern int utc_media_player_get_display_mode_n(void);
+extern int utc_media_player_set_display_roi_area_p(void);
+extern int utc_media_player_set_display_roi_area_n(void);
extern int utc_media_player_set_display_rotation_p(void);
extern int utc_media_player_set_display_rotation_n(void);
extern int utc_media_player_get_display_rotation_p(void);
{"utc_media_player_set_display_mode_n", utc_media_player_set_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_p", utc_media_player_get_display_mode_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_n", utc_media_player_get_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_p", utc_media_player_set_display_roi_area_p, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_n", utc_media_player_set_display_roi_area_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_p", utc_media_player_set_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_n", utc_media_player_set_display_rotation_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_rotation_p", utc_media_player_get_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
extern int utc_media_player_set_display_mode_n(void);
extern int utc_media_player_get_display_mode_p(void);
extern int utc_media_player_get_display_mode_n(void);
+extern int utc_media_player_set_display_roi_area_p(void);
+extern int utc_media_player_set_display_roi_area_n(void);
extern int utc_media_player_set_display_rotation_p(void);
extern int utc_media_player_set_display_rotation_n(void);
extern int utc_media_player_get_display_rotation_p(void);
{"utc_media_player_set_display_mode_n", utc_media_player_set_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_p", utc_media_player_get_display_mode_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_n", utc_media_player_get_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_p", utc_media_player_set_display_roi_area_p, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_n", utc_media_player_set_display_roi_area_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_p", utc_media_player_set_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_n", utc_media_player_set_display_rotation_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_rotation_p", utc_media_player_get_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
extern int utc_media_player_set_display_mode_n(void);
extern int utc_media_player_get_display_mode_p(void);
extern int utc_media_player_get_display_mode_n(void);
+extern int utc_media_player_set_display_roi_area_p(void);
+extern int utc_media_player_set_display_roi_area_n(void);
extern int utc_media_player_set_display_rotation_p(void);
extern int utc_media_player_set_display_rotation_n(void);
extern int utc_media_player_get_display_rotation_p(void);
{"utc_media_player_set_display_mode_n", utc_media_player_set_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_p", utc_media_player_get_display_mode_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_n", utc_media_player_get_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_p", utc_media_player_set_display_roi_area_p, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_n", utc_media_player_set_display_roi_area_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_p", utc_media_player_set_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_n", utc_media_player_set_display_rotation_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_rotation_p", utc_media_player_get_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
extern int utc_media_player_set_display_mode_n(void);
extern int utc_media_player_get_display_mode_p(void);
extern int utc_media_player_get_display_mode_n(void);
+extern int utc_media_player_set_display_roi_area_p(void);
+extern int utc_media_player_set_display_roi_area_n(void);
extern int utc_media_player_set_display_rotation_p(void);
extern int utc_media_player_set_display_rotation_n(void);
extern int utc_media_player_get_display_rotation_p(void);
{"utc_media_player_set_display_mode_n", utc_media_player_set_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_p", utc_media_player_get_display_mode_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_mode_n", utc_media_player_get_display_mode_n, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_p", utc_media_player_set_display_roi_area_p, utc_media_player_startup, utc_media_player_cleanup},
+ {"utc_media_player_set_display_roi_area_n", utc_media_player_set_display_roi_area_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_p", utc_media_player_set_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_set_display_rotation_n", utc_media_player_set_display_rotation_n, utc_media_player_startup, utc_media_player_cleanup},
{"utc_media_player_get_display_rotation_p", utc_media_player_get_display_rotation_p, utc_media_player_startup, utc_media_player_cleanup},
}
/**
+ * @testcase utc_media_player_set_display_roi_area_p
+ * @since_tizen 3.0
+ * @description Positive test case to set display roi
+ */
+int utc_media_player_set_display_roi_area_p(void)
+{
+ assert(!_is_broken);
+ player_display_mode_e mode;
+
+ int ret = player_set_display_mode(player, PLAYER_DISPLAY_MODE_DST_ROI);
+ assert_eq(ret, PLAYER_ERROR_NONE);
+ int ret2 = player_get_display_mode(player, &mode);
+ assert_eq(ret2, PLAYER_ERROR_NONE);
+ assert_eq(mode, PLAYER_DISPLAY_MODE_DST_ROI);
+
+ int ret3 = player_set_display_roi_area(player, 0, 0, 100, 100);
+ assert_eq(ret3, PLAYER_ERROR_NONE);
+
+ return 0;
+}
+
+/**
+ * @testcase utc_media_player_set_display_roi_area_n
+ * @since_tizen 3.0
+ * @description Negative test case to set display roi
+ */
+int utc_media_player_set_display_roi_area_n(void)
+{
+ int ret = player_set_display_roi_area(player, 0, 0, 0, 0);
+ assert_eq(ret, PLAYER_ERROR_INVALID_PARAMETER);
+
+ return 0;
+}
+
+
+/**
* @testcase utc_media_player_set_display_rotation_p
* @since_tizen 2.3.1
* @description Positive test case to set display rotation