From: Jeongmo Yang Date: Tue, 8 Aug 2023 10:06:12 +0000 (+0900) Subject: Add camera status for AE and AWB to stream data X-Git-Tag: accepted/tizen/7.0/unified/20230811.173913^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2644ccab4d6f59496c4bc81b8e3fc84cce10aaa;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Add camera status for AE and AWB to stream data [Version] 0.10.295 [Issue Type] New feature Change-Id: I9222f4383551a32c760c683a069403e05aa00096 Signed-off-by: Jeongmo Yang --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index f0deab5..c2e9124 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -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 diff --git a/src/include/mm_camcorder.h b/src/include/mm_camcorder.h index aaf8cf4..e42b60b 100644 --- a/src/include/mm_camcorder.h +++ b/src/include/mm_camcorder.h @@ -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; diff --git a/src/mm_camcorder_gstcommon.c b/src/mm_camcorder_gstcommon.c index 1100984..75c8873 100644 --- a/src/mm_camcorder_gstcommon.c +++ b/src/mm_camcorder_gstcommon.c @@ -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)) {