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 889495d..b0a033c 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 a439c65..9f6ec75 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 1100984..75c8873 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)) {