Remove FPS check when set preview resolution 14/315714/1 accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.235409 accepted/tizen/unified/20240819.150143 accepted/tizen/unified/dev/20240821.053442 accepted/tizen/unified/toolchain/20241004.102013 accepted/tizen/unified/x/20240820.013150 accepted/tizen/unified/x/asan/20241014.000410 tizen_9.0_m2_release
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 6 Aug 2024 23:36:34 +0000 (08:36 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 6 Aug 2024 23:38:21 +0000 (08:38 +0900)
- The FPS will be updated if it's not supported with setting resolution.
- This commit should be applied with new patch of libmm-camcorder
 : Support device capability provided by camera HAL
   https://review.tizen.org/gerrit/#/c/platform/core/multimedia/libmm-camcorder/+/315454/

[Version] 1.1.1
[Issue Type] Update

Change-Id: I76eb9f524dbad07a6be8fd2d1c5ff79c5489bfc1
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
legacy/src/legacy_camera.c
packaging/mmsvc-camera.spec

index 4e60608858347be82bb14266a443df94e143b2b0..6ce78046e2de64e5c0b78771e23531835ea7fafc 100644 (file)
@@ -1399,31 +1399,10 @@ int legacy_camera_set_preview_resolution(camera_h camera, int width, int height)
 {
        int ret = MM_ERROR_NONE;
        camera_s *handle = (camera_s *)camera;
-       MMCamAttrsInfo info;
-       int mm_fps = 0;
-       int i = 0;
 
        camera_return_val_if_fail(handle, CAMERA_ERROR_INVALID_PARAMETER);
        camera_return_val_if_fail(width > 0 && height > 0, CAMERA_ERROR_INVALID_PARAMETER);
 
-       mm_camcorder_get_attributes(handle->mm_handle, NULL,
-               MMCAM_CAMERA_FPS, &mm_fps,
-               NULL);
-
-       ret = mm_camcorder_get_fps_list_by_resolution(handle->mm_handle, width, height, &info);
-       if (ret != MM_ERROR_NONE)
-               return __convert_camera_error_code(__func__, ret);
-
-       for (i = 0 ; i < info.int_array.count ; i++) {
-               if (info.int_array.array[i] == mm_fps)
-                       break;
-
-               if (i == info.int_array.count - 1) {
-                       CAM_LOG_ERROR("Not supported resolution: Current set Resolution's FPS is not supported in wanted resolution.");
-                       return CAMERA_ERROR_NOT_SUPPORTED;
-               }
-       }
-
        ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
                MMCAM_CAMERA_WIDTH, width,
                MMCAM_CAMERA_HEIGHT, height,
index d03c2d8e910dc04a747e1ff5a35f072c22efd11b..3052ba4b992fdc3c82bbd9a653a1cc3974ae74e0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    1.1.0
+Version:    1.1.1
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0