Rollback valid range for some attributes 32/187332/3
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 22 Aug 2018 05:35:06 +0000 (14:35 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 28 Aug 2018 02:12:37 +0000 (11:12 +0900)
- API team recommeneded not to add restriction for APIs
- API description will be added for the guide to set recommended input

[Version] 0.10.165
[Profile] Common
[Issue Type] Rollback
[Dependency module] N/A

Change-Id: I44e450be1e892d341ce31168c5b65314e2162119
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_attribute.c

index 779a38e..ea7ca12 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.164
+Version:    0.10.165
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 68e083f..67bf734 100644 (file)
@@ -38,8 +38,6 @@
 #define MMCAMCORDER_DEFAULT_ENCODED_PREVIEW_BITRATE (1024*1024*10)
 #define MMCAMCORDER_DEFAULT_ENCODED_PREVIEW_GOP_INTERVAL 1000
 #define MMCAMCORDER_DEFAULT_REPLAY_GAIN_REFERENCE_LEVEL  89.0
-#define MMCAMCORDER_MAX_GOP_INTERVAL            (60*60*1000)    /* milisecond, 1 hour */
-#define MMCAMCORDER_MAX_ENCODED_BITRATE         (100*1000*1000) /* bps, 100 Mbps */
 
 /*---------------------------------------------------------------------------------------
 |    GLOBAL VARIABLE DEFINITIONS for internal                                          |
@@ -1475,8 +1473,8 @@ _mmcamcorder_alloc_attribute(MMHandleType handle, MMCamPreset *info)
                        MM_ATTRS_FLAG_RW,
                        {(void*)MMCAMCORDER_DEFAULT_ENCODED_PREVIEW_BITRATE},
                        MM_ATTRS_VALID_TYPE_INT_RANGE,
-                       {.int_min = 1},
-                       {.int_max = MMCAMCORDER_MAX_ENCODED_BITRATE},
+                       {.int_min = 0},
+                       {.int_max = _MMCAMCORDER_MAX_INT},
                        _mmcamcorder_commit_encoded_preview_bitrate,
                },
                {
@@ -1486,8 +1484,8 @@ _mmcamcorder_alloc_attribute(MMHandleType handle, MMCamPreset *info)
                        MM_ATTRS_FLAG_RW,
                        {(void*)MMCAMCORDER_DEFAULT_ENCODED_PREVIEW_GOP_INTERVAL},
                        MM_ATTRS_VALID_TYPE_INT_RANGE,
-                       {.int_min = 1},
-                       {.int_max = MMCAMCORDER_MAX_GOP_INTERVAL},
+                       {.int_min = 0},
+                       {.int_max = _MMCAMCORDER_MAX_INT},
                        _mmcamcorder_commit_encoded_preview_gop_interval,
                },
                {