Add new field to frame meta for lux index 99/316999/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.233343 accepted/tizen/unified/20240903.110746 accepted/tizen/unified/dev/20240910.111414 accepted/tizen/unified/toolchain/20241004.101434 accepted/tizen/unified/x/20240904.025232 accepted/tizen/unified/x/asan/20241013.235752 tizen_9.0_m2_release
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 29 Aug 2024 07:53:03 +0000 (16:53 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 2 Sep 2024 08:58:25 +0000 (17:58 +0900)
[Version] 1.2.0
[Issue Type] New feature

Change-Id: I5b54a0ae720b8d057dffad9944cab2f80c1a5895
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/camera_internal.h
packaging/capi-media-camera.spec
src/camera.c
src/camera_internal.c
test/camera_test.c

index 79d20f9..c0056c4 100644 (file)
@@ -76,6 +76,7 @@ typedef struct _camera_frame_meta_s {
        unsigned long long td_aux;
        unsigned long long seqnum;
        unsigned long long flags;
+       unsigned long long lux_index;
 } camera_frame_meta_s;
 
 
index c481803..ee0fb19 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    1.1.3
+Version:    1.2.0
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 11780ed..387b50a 100644 (file)
@@ -406,13 +406,14 @@ static void __camera_event_handler_preview(camera_cb_info_s *cb_info, char *recv
        /* get stream info */
        stream = (MMCamcorderVideoStreamDataType *)buf_pos;
 
-       CAM_LOG_VERBOSE("meta [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu]",
+       CAM_LOG_VERBOSE("meta [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] [%llu] lux[%llu]",
                stream->frame_meta.ts_soe, stream->frame_meta.ts_eoe,
                stream->frame_meta.ts_sof, stream->frame_meta.ts_eof,
                stream->frame_meta.ts_hal, stream->frame_meta.ts_qmf,
                stream->frame_meta.ts_gst, stream->frame_meta.td_exp,
                stream->frame_meta.ts_aux, stream->frame_meta.td_aux,
-               stream->frame_meta.seqnum, stream->frame_meta.flags);
+               stream->frame_meta.seqnum, stream->frame_meta.flags,
+               stream->frame_meta.lux_index);
 
        /* set stream data for camera_attr_get_preview_frame_rotation() and camera_attr_get_preview_frame_meta() */
        cb_info->stream_data = stream;
index 8347f93..eaa691b 100644 (file)
@@ -342,6 +342,7 @@ int camera_attr_get_preview_frame_meta(camera_h camera, camera_frame_meta_s *fra
        frame_meta->td_aux = stream->frame_meta.td_aux;
        frame_meta->seqnum = stream->frame_meta.seqnum;
        frame_meta->flags = stream->frame_meta.flags;
+       frame_meta->lux_index = stream->frame_meta.lux_index;
 
        return CAMERA_ERROR_NONE;
 }
index cc0cd9f..5c26e16 100644 (file)
@@ -496,10 +496,11 @@ static void _camera_preview_cb(camera_preview_data_s *frame, void *user_data)
 
        ret = camera_attr_get_preview_frame_meta(cam_handle, &frame_meta);
        if (ret == CAMERA_ERROR_NONE) {
-               LOGD("meta %llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu%llu,%llu",
+               LOGD("meta %llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu%llu,%llu,lux:%llu",
                        frame_meta.ts_soe, frame_meta.ts_eoe, frame_meta.ts_sof, frame_meta.ts_eof,
                        frame_meta.ts_hal, frame_meta.ts_qmf, frame_meta.ts_gst, frame_meta.td_exp,
-                       frame_meta.ts_aux, frame_meta.td_aux, frame_meta.seqnum, frame_meta.flags);
+                       frame_meta.ts_aux, frame_meta.td_aux, frame_meta.seqnum, frame_meta.flags,
+                       frame_meta.lux_index);
        } else {
                LOGW("get preview frame meta failed[0x%x]", ret);
        }