From 09208e5326eaf4f65580cf6e8d088f6c2f2b1431 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 8 Aug 2023 19:06:12 +0900 Subject: [PATCH] Add camera status for AE and AWB to stream data [Version] 0.10.297 [Issue Type] New feature Change-Id: I9222f4383551a32c760c683a069403e05aa00096 Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/include/mm_camcorder.h | 4 +++- src/mm_camcorder_gstcommon.c | 8 ++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 889495d..b0a033c 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.296 +Version: 0.10.297 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/include/mm_camcorder.h b/src/include/mm_camcorder.h index a439c65..9f6ec75 100644 --- a/src/include/mm_camcorder.h +++ b/src/include/mm_camcorder.h @@ -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; 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)) { -- 2.34.1