Add camera status for AE and AWB to stream data 88/296988/2 accepted/tizen/7.0/unified/20230811.173913
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 8 Aug 2023 10:06:12 +0000 (19:06 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 9 Aug 2023 02:17:35 +0000 (11:17 +0900)
[Version] 0.10.295
[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 f0deab5b159fd0b0dd7ceb3f2a27da05a3b84e61..c2e9124a02efe029b3b77b68b465b7365a14b00d 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.294
+Version:    0.10.295
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index aaf8cf422e4982a0b788d9c35e8a800dc1483854..e42b60b23d52a794c1960abc299313e9401cc76d 100644 (file)
@@ -1909,7 +1909,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)) {