*
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks This function must be called before previewing (see camera_start_preview()).
+ * In Custom ROI display mode, camera_attr_set_display_roi_area() function must be called before calling this function.
* @param[in] camera The handle to the camera
* @param[in] type The display type
* @param[in] display The display handle from #GET_DISPLAY
* @brief Sets the ROI(Region Of Interest) area of display.
* @since_tizen 3.0
* @remarks Before set display ROI area, #CAMERA_DISPLAY_MODE_CUSTOM_ROI should be set with camera_set_display_mode().
+ * The minimum value of width and height are 1.
* @param[in] camera The handle to the camera
* @param[in] x X coordinate of area
* @param[in] y Y coordinate of area
ret |= mm_evas_renderer_set_geometry(cb_info->evas_info, mode);
ret |= mm_evas_renderer_set_rotation(cb_info->evas_info, rotation);
ret |= mm_evas_renderer_set_visible(cb_info->evas_info, visible);
- ret |= mm_evas_renderer_set_roi_area(cb_info->evas_info, x, y, width, height);
+
+ if (mode == CAMERA_DISPLAY_MODE_CUSTOM_ROI)
+ ret |= mm_evas_renderer_set_roi_area(cb_info->evas_info, x, y, width, height);
}
g_mutex_unlock(&cb_info->evas_mutex);
#ifdef HAVE_WAYLAND
wl_info = &pc->wl_info;
muse_camera_msg_send_array_and_value(api, sock_fd, cb_info, ret,
- wl_info, 5, sizeof(int), INT, type);
+ wl_info, sizeof(camera_wl_info_s), sizeof(int), INT, type);
LOGD("wayland parent id : %d, window %d,%d,%dx%d",
wl_info->parent_id, wl_info->window_x, wl_info->window_y,