Update code for RGB data handling in preview callback 01/188801/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015057 accepted/tizen/unified/20180914.073159 submit/tizen/20180913.075210 submit/tizen_5.0/20181101.000003
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 10 Sep 2018 10:33:51 +0000 (19:33 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 10 Sep 2018 10:34:02 +0000 (19:34 +0900)
[Version] 0.3.19
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20180910.1]

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

index decf02b..42753db 100644 (file)
@@ -261,6 +261,11 @@ typedef struct {
                        unsigned char *data;    /**< The depth data pointer */
                        unsigned int size;              /**< The size of depth data */
                } depth_plane;                          /**< depth plane frame data (Since 5.0) */
+
+               struct {
+                       unsigned char *data;    /**< The rgb data pointer */
+                       unsigned int size;              /**< The size of rgb data */
+               } rgb_plane;                            /**< rgb plane frame data (Since 5.0) */
        } data;
 } camera_preview_data_s;
 
index 3bc790b..32c17cd 100644 (file)
@@ -955,6 +955,9 @@ void _camera_dispatcher_preview_cb(MMCamcorderVideoStreamDataType *stream, void
                case MM_CAM_STREAM_DATA_DEPTH:
                        data_size = stream->data.depth.length_data;
                        break;
+               case MM_CAM_STREAM_DATA_RGB:
+                       data_size = stream->data.rgb.length_data;
+                       break;
                default:
                        LOGW("unknown data type %d", stream->data_type);
                        break;
@@ -1001,6 +1004,9 @@ void _camera_dispatcher_preview_cb(MMCamcorderVideoStreamDataType *stream, void
                case MM_CAM_STREAM_DATA_DEPTH:
                        memcpy(buf_pos, stream->data.depth.data, stream->data.depth.length_data);
                        break;
+               case MM_CAM_STREAM_DATA_RGB:
+                       memcpy(buf_pos, stream->data.rgb.data, stream->data.rgb.length_data);
+                       break;
                default:
                        break;
                }
index 8136683..a525e32 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.3.18
+Version:    0.3.19
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0