[Release version 0.2.59] 1. Fix camera_set_display error in EVAS display type, 2... 91/72291/3 accepted/tizen/common/20160603.150915 accepted/tizen/ivi/20160606.121113 accepted/tizen/mobile/20160606.120739 accepted/tizen/tv/20160606.120924 accepted/tizen/wearable/20160606.121040 submit/tizen/20160603.021103 submit/tizen/20160603.061849
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 31 May 2016 09:55:25 +0000 (18:55 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 31 May 2016 11:09:33 +0000 (04:09 -0700)
Change-Id: I07fb662591ca2520a4ab253ce3a1d3bdbecab144
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
include/camera.h
packaging/capi-media-camera.spec
src/camera.c

index 4ff28b5..ab40935 100644 (file)
@@ -987,6 +987,7 @@ int camera_cancel_focusing(camera_h camera);
  *
  * @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
@@ -3695,6 +3696,7 @@ int camera_attr_foreach_supported_ptz_type(camera_h camera, camera_attr_supporte
  * @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
index 1a3e701..43ad5dc 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.2.58
+Version:    0.2.59
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index ba89508..58f5f02 100644 (file)
@@ -2785,7 +2785,9 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
                                        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);
@@ -2814,7 +2816,7 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
 #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,