msm8998: Qcamera2: Add vendor tags for DevCamera debug
Add vendor tags for DevCamera debug
g_HAF not ready yet
work with change id:
I6f53199244a54bcf8b4084e67d4782541b58a57b
Change-Id: I82b8778bd41b308070ac99c5ff778f358c01fe22
diff --git a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
index 1bb833c..58599a6 100644
--- a/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/msm8998/QCamera2/HAL3/QCamera3HWI.cpp
@@ -394,6 +394,9 @@
mCallbacks(callbacks),
mCaptureIntent(0),
mCacMode(0),
+ /* DevCamDebug metadata internal m control*/
+ mDevCamDebugMetaEnable(0),
+ /* DevCamDebug metadata end */
mBatchSize(0),
mToBeQueuedVidBufs(0),
mHFRVideoFps(DEFAULT_VIDEO_FPS),
@@ -3201,7 +3204,11 @@
result.result = translateFromHalMetadata(metadata,
i->timestamp, i->request_id, i->jpegMetadata, i->pipeline_depth,
- i->capture_intent, internalPproc, i->fwkCacMode,
+ i->capture_intent,
+ /* DevCamDebug metadata translateFromHalMetadata function call*/
+ i->DevCamDebug_meta_enable,
+ /* DevCamDebug metadata end */
+ internalPproc, i->fwkCacMode,
firstMetadataInBatch);
saveExifParams(metadata);
@@ -4660,6 +4667,13 @@
meta.find(ANDROID_CONTROL_CAPTURE_INTENT).data.u8[0];
}
pendingRequest.capture_intent = mCaptureIntent;
+ /* DevCamDebug metadata processCaptureRequest */
+ if (meta.exists(DEVCAMDEBUG_META_ENABLE)) {
+ mDevCamDebugMetaEnable =
+ meta.find(DEVCAMDEBUG_META_ENABLE).data.u8[0];
+ }
+ pendingRequest.DevCamDebug_meta_enable = mDevCamDebugMetaEnable;
+ /* DevCamDebug metadata end */
//extract CAC info
if (meta.exists(ANDROID_COLOR_CORRECTION_ABERRATION_MODE)) {
@@ -5551,6 +5565,8 @@
* @timestamp: metadata buffer timestamp
* @request_id: request id
* @jpegMetadata: additional jpeg metadata
+ * @DevCamDebug_meta_enable: enable DevCamDebug meta
+ * // DevCamDebug metadata end
* @pprocDone: whether internal offline postprocsesing is done
*
* RETURN : camera_metadata_t*
@@ -5564,6 +5580,9 @@
const CameraMetadata& jpegMetadata,
uint8_t pipeline_depth,
uint8_t capture_intent,
+ /* DevCamDebug metadata translateFromHalMetadata argument */
+ uint8_t DevCamDebug_meta_enable,
+ /* DevCamDebug metadata end */
bool pprocDone,
uint8_t fwk_cacMode,
bool firstMetadataInBatch)
@@ -5585,6 +5604,10 @@
camMetadata.update(ANDROID_REQUEST_ID, &request_id, 1);
camMetadata.update(ANDROID_REQUEST_PIPELINE_DEPTH, &pipeline_depth, 1);
camMetadata.update(ANDROID_CONTROL_CAPTURE_INTENT, &capture_intent, 1);
+ if (mBatchSize == 0) {
+ // DevCamDebug metadata translateFromHalMetadata. Only update this one for non-HFR mode
+ camMetadata.update(DEVCAMDEBUG_META_ENABLE, &DevCamDebug_meta_enable, 1);
+ }
if (mBatchSize && !firstMetadataInBatch) {
/* In batch mode, use cached metadata instead of parsing metadata buffer again */
@@ -5592,6 +5615,243 @@
return resultMetadata;
}
+ // atrace_begin(ATRACE_TAG_ALWAYS, "DevCamDebugInfo");
+ // Only update DevCameraDebug metadta conditionally: non-HFR mode and it is enabled.
+ if (mBatchSize == 0 && DevCamDebug_meta_enable != 0) {
+ // DevCamDebug metadata translateFromHalMetadata AF
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_lens_position,
+ CAM_INTF_META_DEV_CAM_AF_LENS_POSITION, metadata) {
+ int32_t fwk_DevCamDebug_af_lens_position = *DevCamDebug_af_lens_position;
+ camMetadata.update(DEVCAMDEBUG_AF_LENS_POSITION, &fwk_DevCamDebug_af_lens_position, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_tof_confidence,
+ CAM_INTF_META_DEV_CAM_AF_TOF_CONFIDENCE, metadata) {
+ int32_t fwk_DevCamDebug_af_tof_confidence = *DevCamDebug_af_tof_confidence;
+ camMetadata.update(DEVCAMDEBUG_AF_TOF_CONFIDENCE, &fwk_DevCamDebug_af_tof_confidence, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_tof_distance,
+ CAM_INTF_META_DEV_CAM_AF_TOF_DISTANCE, metadata) {
+ int32_t fwk_DevCamDebug_af_tof_distance = *DevCamDebug_af_tof_distance;
+ camMetadata.update(DEVCAMDEBUG_AF_TOF_DISTANCE, &fwk_DevCamDebug_af_tof_distance, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_luma,
+ CAM_INTF_META_DEV_CAM_AF_LUMA, metadata) {
+ int32_t fwk_DevCamDebug_af_luma = *DevCamDebug_af_luma;
+ camMetadata.update(DEVCAMDEBUG_AF_LUMA, &fwk_DevCamDebug_af_luma, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_haf_state,
+ CAM_INTF_META_DEV_CAM_AF_HAF_STATE, metadata) {
+ int32_t fwk_DevCamDebug_af_haf_state = *DevCamDebug_af_haf_state;
+ camMetadata.update(DEVCAMDEBUG_AF_HAF_STATE, &fwk_DevCamDebug_af_haf_state, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_pdaf_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_PDAF_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_pdaf_target_pos =
+ *DevCamDebug_af_monitor_pdaf_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_PDAF_TARGET_POS,
+ &fwk_DevCamDebug_af_monitor_pdaf_target_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_pdaf_confidence,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_PDAF_CONFIDENCE, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_pdaf_confidence =
+ *DevCamDebug_af_monitor_pdaf_confidence;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_PDAF_CONFIDENCE,
+ &fwk_DevCamDebug_af_monitor_pdaf_confidence, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_pdaf_refocus,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_PDAF_REFOCUS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_pdaf_refocus = *DevCamDebug_af_monitor_pdaf_refocus;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_PDAF_REFOCUS,
+ &fwk_DevCamDebug_af_monitor_pdaf_refocus, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_tof_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_TOF_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_tof_target_pos =
+ *DevCamDebug_af_monitor_tof_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_TOF_TARGET_POS,
+ &fwk_DevCamDebug_af_monitor_tof_target_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_tof_confidence,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_TOF_CONFIDENCE, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_tof_confidence =
+ *DevCamDebug_af_monitor_tof_confidence;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_TOF_CONFIDENCE,
+ &fwk_DevCamDebug_af_monitor_tof_confidence, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_tof_refocus,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_TOF_REFOCUS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_tof_refocus = *DevCamDebug_af_monitor_tof_refocus;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_TOF_REFOCUS,
+ &fwk_DevCamDebug_af_monitor_tof_refocus, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_type_select,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_TYPE_SELECT, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_type_select = *DevCamDebug_af_monitor_type_select;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_TYPE_SELECT,
+ &fwk_DevCamDebug_af_monitor_type_select, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_refocus,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_REFOCUS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_refocus = *DevCamDebug_af_monitor_refocus;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_REFOCUS,
+ &fwk_DevCamDebug_af_monitor_refocus, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_monitor_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_MONITOR_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_monitor_target_pos = *DevCamDebug_af_monitor_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_MONITOR_TARGET_POS,
+ &fwk_DevCamDebug_af_monitor_target_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_pdaf_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_PDAF_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_pdaf_target_pos =
+ *DevCamDebug_af_search_pdaf_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_PDAF_TARGET_POS,
+ &fwk_DevCamDebug_af_search_pdaf_target_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_pdaf_next_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_PDAF_NEXT_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_pdaf_next_pos = *DevCamDebug_af_search_pdaf_next_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_PDAF_NEXT_POS,
+ &fwk_DevCamDebug_af_search_pdaf_next_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_pdaf_near_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_PDAF_NEAR_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_pdaf_near_pos = *DevCamDebug_af_search_pdaf_near_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_PDAF_NEAR_POS,
+ &fwk_DevCamDebug_af_search_pdaf_near_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_pdaf_far_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_PDAF_FAR_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_pdaf_far_pos = *DevCamDebug_af_search_pdaf_far_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_PDAF_FAR_POS,
+ &fwk_DevCamDebug_af_search_pdaf_far_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_pdaf_confidence,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_PDAF_CONFIDENCE, metadata) {
+ int32_t fwk_DevCamDebug_af_search_pdaf_confidence = *DevCamDebug_af_search_pdaf_confidence;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_PDAF_CONFIDENCE,
+ &fwk_DevCamDebug_af_search_pdaf_confidence, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_tof_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TOF_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_tof_target_pos =
+ *DevCamDebug_af_search_tof_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TOF_TARGET_POS,
+ &fwk_DevCamDebug_af_search_tof_target_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_tof_next_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TOF_NEXT_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_tof_next_pos = *DevCamDebug_af_search_tof_next_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TOF_NEXT_POS,
+ &fwk_DevCamDebug_af_search_tof_next_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_tof_near_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TOF_NEAR_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_tof_near_pos = *DevCamDebug_af_search_tof_near_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TOF_NEAR_POS,
+ &fwk_DevCamDebug_af_search_tof_near_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_tof_far_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TOF_FAR_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_tof_far_pos = *DevCamDebug_af_search_tof_far_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TOF_FAR_POS,
+ &fwk_DevCamDebug_af_search_tof_far_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_tof_confidence,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TOF_CONFIDENCE, metadata) {
+ int32_t fwk_DevCamDebug_af_search_tof_confidence = *DevCamDebug_af_search_tof_confidence;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TOF_CONFIDENCE,
+ &fwk_DevCamDebug_af_search_tof_confidence, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_type_select,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TYPE_SELECT, metadata) {
+ int32_t fwk_DevCamDebug_af_search_type_select = *DevCamDebug_af_search_type_select;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TYPE_SELECT,
+ &fwk_DevCamDebug_af_search_type_select, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_next_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_NEXT_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_next_pos = *DevCamDebug_af_search_next_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_NEXT_POS,
+ &fwk_DevCamDebug_af_search_next_pos, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_af_search_target_pos,
+ CAM_INTF_META_DEV_CAM_AF_SEARCH_TARGET_POS, metadata) {
+ int32_t fwk_DevCamDebug_af_search_target_pos = *DevCamDebug_af_search_target_pos;
+ camMetadata.update(DEVCAMDEBUG_AF_SEARCH_TARGET_POS,
+ &fwk_DevCamDebug_af_search_target_pos, 1);
+ }
+ // DevCamDebug metadata translateFromHalMetadata AEC
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_target_luma,
+ CAM_INTF_META_DEV_CAM_AEC_TARGET_LUMA, metadata) {
+ int32_t fwk_DevCamDebug_aec_target_luma = *DevCamDebug_aec_target_luma;
+ camMetadata.update(DEVCAMDEBUG_AEC_TARGET_LUMA, &fwk_DevCamDebug_aec_target_luma, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_comp_luma,
+ CAM_INTF_META_DEV_CAM_AEC_COMP_LUMA, metadata) {
+ int32_t fwk_DevCamDebug_aec_comp_luma = *DevCamDebug_aec_comp_luma;
+ camMetadata.update(DEVCAMDEBUG_AEC_COMP_LUMA, &fwk_DevCamDebug_aec_comp_luma, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_avg_luma,
+ CAM_INTF_META_DEV_CAM_AEC_AVG_LUMA, metadata) {
+ int32_t fwk_DevCamDebug_aec_avg_luma = *DevCamDebug_aec_avg_luma;
+ camMetadata.update(DEVCAMDEBUG_AEC_AVG_LUMA, &fwk_DevCamDebug_aec_avg_luma, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_cur_luma,
+ CAM_INTF_META_DEV_CAM_AEC_CUR_LUMA, metadata) {
+ int32_t fwk_DevCamDebug_aec_cur_luma = *DevCamDebug_aec_cur_luma;
+ camMetadata.update(DEVCAMDEBUG_AEC_CUR_LUMA, &fwk_DevCamDebug_aec_cur_luma, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_linecount,
+ CAM_INTF_META_DEV_CAM_AEC_LINECOUNT, metadata) {
+ int32_t fwk_DevCamDebug_aec_linecount = *DevCamDebug_aec_linecount;
+ camMetadata.update(DEVCAMDEBUG_AEC_LINECOUNT, &fwk_DevCamDebug_aec_linecount, 1);
+ }
+ IF_META_AVAILABLE(float, DevCamDebug_aec_real_gain,
+ CAM_INTF_META_DEV_CAM_AEC_REAL_GAIN, metadata) {
+ float fwk_DevCamDebug_aec_real_gain = *DevCamDebug_aec_real_gain;
+ camMetadata.update(DEVCAMDEBUG_AEC_REAL_GAIN, &fwk_DevCamDebug_aec_real_gain, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_aec_exp_index,
+ CAM_INTF_META_DEV_CAM_AEC_EXP_INDEX, metadata) {
+ int32_t fwk_DevCamDebug_aec_exp_index = *DevCamDebug_aec_exp_index;
+ camMetadata.update(DEVCAMDEBUG_AEC_EXP_INDEX, &fwk_DevCamDebug_aec_exp_index, 1);
+ }
+ IF_META_AVAILABLE(float, DevCamDebug_aec_lux_idx,
+ CAM_INTF_META_DEV_CAM_AEC_LUX_IDX, metadata) {
+ float fwk_DevCamDebug_aec_lux_idx = *DevCamDebug_aec_lux_idx;
+ camMetadata.update(DEVCAMDEBUG_AEC_LUX_IDX, &fwk_DevCamDebug_aec_lux_idx, 1);
+ }
+ // DevCamDebug metadata translateFromHalMetadata AWB
+ IF_META_AVAILABLE(float, DevCamDebug_awb_r_gain,
+ CAM_INTF_META_DEV_CAM_AWB_R_GAIN, metadata) {
+ float fwk_DevCamDebug_awb_r_gain = *DevCamDebug_awb_r_gain;
+ camMetadata.update(DEVCAMDEBUG_AWB_R_GAIN, &fwk_DevCamDebug_awb_r_gain, 1);
+ }
+ IF_META_AVAILABLE(float, DevCamDebug_awb_g_gain,
+ CAM_INTF_META_DEV_CAM_AWB_G_GAIN, metadata) {
+ float fwk_DevCamDebug_awb_g_gain = *DevCamDebug_awb_g_gain;
+ camMetadata.update(DEVCAMDEBUG_AWB_G_GAIN, &fwk_DevCamDebug_awb_g_gain, 1);
+ }
+ IF_META_AVAILABLE(float, DevCamDebug_awb_b_gain,
+ CAM_INTF_META_DEV_CAM_AWB_B_GAIN, metadata) {
+ float fwk_DevCamDebug_awb_b_gain = *DevCamDebug_awb_b_gain;
+ camMetadata.update(DEVCAMDEBUG_AWB_B_GAIN, &fwk_DevCamDebug_awb_b_gain, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_awb_cct,
+ CAM_INTF_META_DEV_CAM_AWB_CCT, metadata) {
+ int32_t fwk_DevCamDebug_awb_cct = *DevCamDebug_awb_cct;
+ camMetadata.update(DEVCAMDEBUG_AWB_CCT, &fwk_DevCamDebug_awb_cct, 1);
+ }
+ IF_META_AVAILABLE(int32_t, DevCamDebug_awb_decision,
+ CAM_INTF_META_DEV_CAM_AWB_DECISION, metadata) {
+ int32_t fwk_DevCamDebug_awb_decision = *DevCamDebug_awb_decision;
+ camMetadata.update(DEVCAMDEBUG_AWB_DECISION, &fwk_DevCamDebug_awb_decision, 1);
+ }
+ }
+ // atrace_end(ATRACE_TAG_ALWAYS);
+
IF_META_AVAILABLE(uint32_t, frame_number, CAM_INTF_META_FRAME_NUMBER, metadata) {
int64_t fwk_frame_number = *frame_number;
camMetadata.update(ANDROID_SYNC_FRAME_NUMBER, &fwk_frame_number, 1);
@@ -8417,7 +8677,11 @@
ANDROID_STATISTICS_HISTOGRAM_MODE, ANDROID_STATISTICS_SHARPNESS_MAP_MODE,
ANDROID_STATISTICS_LENS_SHADING_MAP_MODE, ANDROID_TONEMAP_CURVE_BLUE,
ANDROID_TONEMAP_CURVE_GREEN, ANDROID_TONEMAP_CURVE_RED, ANDROID_TONEMAP_MODE,
- ANDROID_BLACK_LEVEL_LOCK };
+ ANDROID_BLACK_LEVEL_LOCK,
+ /* DevCamDebug metadata request_keys_basic */
+ DEVCAMDEBUG_META_ENABLE,
+ /* DevCamDebug metadata end */
+ };
size_t request_keys_cnt =
sizeof(request_keys_basic)/sizeof(request_keys_basic[0]);
@@ -8455,6 +8719,52 @@
#ifndef USE_HAL_3_3
ANDROID_CONTROL_POST_RAW_SENSITIVITY_BOOST,
#endif
+ // DevCamDebug metadata result_keys_basic
+ DEVCAMDEBUG_META_ENABLE,
+ // DevCamDebug metadata result_keys AF
+ DEVCAMDEBUG_AF_LENS_POSITION,
+ DEVCAMDEBUG_AF_TOF_CONFIDENCE,
+ DEVCAMDEBUG_AF_TOF_DISTANCE,
+ DEVCAMDEBUG_AF_LUMA,
+ DEVCAMDEBUG_AF_HAF_STATE,
+ DEVCAMDEBUG_AF_MONITOR_PDAF_TARGET_POS,
+ DEVCAMDEBUG_AF_MONITOR_PDAF_CONFIDENCE,
+ DEVCAMDEBUG_AF_MONITOR_PDAF_REFOCUS,
+ DEVCAMDEBUG_AF_MONITOR_TOF_TARGET_POS,
+ DEVCAMDEBUG_AF_MONITOR_TOF_CONFIDENCE,
+ DEVCAMDEBUG_AF_MONITOR_TOF_REFOCUS,
+ DEVCAMDEBUG_AF_MONITOR_TYPE_SELECT,
+ DEVCAMDEBUG_AF_MONITOR_REFOCUS,
+ DEVCAMDEBUG_AF_MONITOR_TARGET_POS,
+ DEVCAMDEBUG_AF_SEARCH_PDAF_TARGET_POS,
+ DEVCAMDEBUG_AF_SEARCH_PDAF_NEXT_POS,
+ DEVCAMDEBUG_AF_SEARCH_PDAF_NEAR_POS,
+ DEVCAMDEBUG_AF_SEARCH_PDAF_FAR_POS,
+ DEVCAMDEBUG_AF_SEARCH_PDAF_CONFIDENCE,
+ DEVCAMDEBUG_AF_SEARCH_TOF_TARGET_POS,
+ DEVCAMDEBUG_AF_SEARCH_TOF_NEXT_POS,
+ DEVCAMDEBUG_AF_SEARCH_TOF_NEAR_POS,
+ DEVCAMDEBUG_AF_SEARCH_TOF_FAR_POS,
+ DEVCAMDEBUG_AF_SEARCH_TOF_CONFIDENCE,
+ DEVCAMDEBUG_AF_SEARCH_TYPE_SELECT,
+ DEVCAMDEBUG_AF_SEARCH_NEXT_POS,
+ DEVCAMDEBUG_AF_SEARCH_TARGET_POS,
+ // DevCamDebug metadata result_keys AEC
+ DEVCAMDEBUG_AEC_TARGET_LUMA,
+ DEVCAMDEBUG_AEC_COMP_LUMA,
+ DEVCAMDEBUG_AEC_AVG_LUMA,
+ DEVCAMDEBUG_AEC_CUR_LUMA,
+ DEVCAMDEBUG_AEC_LINECOUNT,
+ DEVCAMDEBUG_AEC_REAL_GAIN,
+ DEVCAMDEBUG_AEC_EXP_INDEX,
+ DEVCAMDEBUG_AEC_LUX_IDX,
+ // DevCamDebug metadata result_keys AWB
+ DEVCAMDEBUG_AWB_R_GAIN,
+ DEVCAMDEBUG_AWB_G_GAIN,
+ DEVCAMDEBUG_AWB_B_GAIN,
+ DEVCAMDEBUG_AWB_CCT,
+ DEVCAMDEBUG_AWB_DECISION,
+ /* DevCamDebug metadata end */
};
size_t result_keys_cnt =