Add camera status for AE and AWB to stream data 75/297075/1 accepted/tizen/unified/20230814.165030
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 8 Aug 2023 10:06:12 +0000 (19:06 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 10 Aug 2023 03:05:36 +0000 (12:05 +0900)
[Version] 0.10.297
[Issue Type] New feature

Change-Id: I9222f4383551a32c760c683a069403e05aa00096
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/include/mm_camcorder.h
src/mm_camcorder_gstcommon.c

index 889495d96e5d4729c4505184ad7673135f3520ec..b0a033c501078fe845e302c1f4d43b3292e73890 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.296
+Version:    0.10.297
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index a439c654f3ef71fbe53e96c29da99c7d940726e8..9f6ec754e1656b09a65e224146262bfac4d83a79 100644 (file)
@@ -1931,7 +1931,9 @@ typedef struct {
        int flip;                           /**< Flip */
        int rotation;                       /**< Rotation */
        unsigned long long timestamp_nsec;  /**< timestamp of stream buffer(nsec) */
-       MMCamcorderFrameMeta frame_meta;   /**< Metadata of stream buffer */
+       MMCamcorderFrameMeta frame_meta;    /**< Metadata of stream buffer */
+       int status_ae;                      /**< Status of auto exposure */
+       int status_awb;                     /**< Status of auto white balance */
 } MMCamcorderVideoStreamDataType;
 
 
index 11009847678e5f311ca49e7fb7176ebd5bbd51f7..75c887366527404a2902eeb9fac5b188bc7fecaf 100644 (file)
@@ -522,10 +522,14 @@ gboolean _mmcamcorder_invoke_video_stream_cb(MMHandleType handle, GstSample *sam
                        "facing-direction", G_TYPE_INT, &stream.facing_direction,
                        "flip", G_TYPE_INT, &stream.flip,
                        "rotation", G_TYPE_INT, &stream.rotation,
+                       "status-ae", G_TYPE_INT, &stream.status_ae,
+                       "status-awb", G_TYPE_INT, &stream.status_awb,
                        NULL);
 
-               MMCAM_LOG_VERBOSE("structure[%p], [fs:%d,fd:%d,f:%d,r:%d]", structure,
-                       stream.focus_state, stream.facing_direction, stream.flip, stream.rotation);
+               MMCAM_LOG_VERBOSE("structure[%p], [fs:%d,fd:%d,f:%d,r:%d,ae:%d,awb:%d]", structure,
+                       stream.focus_state, stream.facing_direction,
+                       stream.flip, stream.rotation,
+                       stream.status_ae, stream.status_awb);
        }
 
        if (gst_is_tizen_memory(memory)) {