1.medata數(shù)據(jù)的接口
hardware/qcom/camera/QCamera2/HAL/QCamera2HWICallbacks.cpp
void QCamera2HardwareInterface::metadata_stream_cb_routine(mm_camera_super_buf_t * super_frame,
QCameraStream * stream,
void * userdata)
{
mm_camera_buf_def_t* frame = super_frame->bufs[0];
metadata_buffer_t* pMetaData = (metadata_buffer_t*)frame->buffer;
RK_EIS_metadata metadata;
IF_META_AVAILABLE(int32_t, sensorSensitivity, CAM_INTF_META_SENSOR_SENSITIVITY, pMetaData) {
metadata.iso_speed = *sensorSensitivity; // ISO per frame
}
IF_META_AVAILABLE(int64_t, expTime, CAM_INTF_META_SENSOR_EXPOSURE_TIME, pMetaData) {
metadata.exp_time = *expTime;
}
IF_META_AVAILABLE(cam_zoom_info_t, zoomInfo, CAM_INTF_PARM_USERZOOM, pMetaData) {
metadata.zoom_ratio = zoomInfo->user_zoom / 10.0;
}
IF_META_AVAILABLE(int64_t, readtime, CAM_INTF_META_SENSOR_ROLLING_SHUTTER_SKEW, pMetaData) {
metadata.rs_skew = *readtime;
}
IF_META_AVAILABLE(int64_t, time, CAM_INTF_META_SENSOR_TIMESTAMP, pMetaData) {
metadata.timestamp = *time;
RK_LOGI("zcf_time metadata.timestamp=%lld",metadata.timestamp);
}
}
在回調(diào)函數(shù)metadata_stream_cb_routine中,相關(guān)數(shù)據(jù)是通過IF_META_AVAILABLE宏來賦值的踊淳。
其宏定義如下:
2.獲取iso exp_time
void QCamera2HardwareInterface::metadata_stream_cb_routine(mm_camera_super_buf_t * super_frame,
QCameraStream * stream,
void * userdata)
{
IF_META_AVAILABLE(int32_t, sensorSensitivity, CAM_INTF_META_SENSOR_SENSITIVITY, pMetaData) {
XTCLOGD("RK_ALGO_M:sensorSensitivity = %d", *sensorSensitivity);
}
IF_META_AVAILABLE(int64_t, sensorExpTime, CAM_INTF_META_SENSOR_EXPOSURE_TIME, pMetaData) {
XTCLOGD("RK_ALGO_M:sensorExpTime = %lld", *sensorExpTime);
}
IF_META_AVAILABLE(cam_zoom_info_t, zoomInfo, CAM_INTF_PARM_USERZOOM, pMetaData) {
XTCLOGD("RK_ALGO_Z:RK_ALGO_Z enten,userZoom=%d",zoomInfo->user_zoom );
}
}
3.所有的metadata數(shù)據(jù)
927typedef struct {
928/**************************************************************************************
929 * ID from (cam_intf_metadata_type_t) DATATYPE COUNT
930 **************************************************************************************/
931 /* common between HAL1 and HAL3 */
932 INCLUDE(CAM_INTF_META_HISTOGRAM, cam_hist_stats_t, 1);
933 INCLUDE(CAM_INTF_META_FACE_DETECTION, cam_face_detection_data_t, 1);
934 INCLUDE(CAM_INTF_META_FACE_RECOG, cam_face_recog_data_t, 1);
935 INCLUDE(CAM_INTF_META_FACE_BLINK, cam_face_blink_data_t, 1);
936 INCLUDE(CAM_INTF_META_FACE_GAZE, cam_face_gaze_data_t, 1);
937 INCLUDE(CAM_INTF_META_FACE_SMILE, cam_face_smile_data_t, 1);
938 INCLUDE(CAM_INTF_META_FACE_LANDMARK, cam_face_landmarks_data_t, 1);
939 INCLUDE(CAM_INTF_META_FACE_CONTOUR, cam_face_contour_data_t, 1);
940 INCLUDE(CAM_INTF_META_AUTOFOCUS_DATA, cam_auto_focus_data_t, 1);
941 INCLUDE(CAM_INTF_META_CDS_DATA, cam_cds_data_t, 1);
942 INCLUDE(CAM_INTF_PARM_UPDATE_DEBUG_LEVEL, uint32_t, 1);
943
944 /* Specific to HAl1 */
945 INCLUDE(CAM_INTF_META_CROP_DATA, cam_crop_data_t, 1);
946 INCLUDE(CAM_INTF_META_PREP_SNAPSHOT_DONE, int32_t, 1);
947 INCLUDE(CAM_INTF_META_GOOD_FRAME_IDX_RANGE, cam_frame_idx_range_t, 1);
948 INCLUDE(CAM_INTF_META_ASD_HDR_SCENE_DATA, cam_asd_hdr_scene_data_t, 1);
949 INCLUDE(CAM_INTF_META_ASD_SCENE_INFO, cam_asd_decision_t, 1);
950 INCLUDE(CAM_INTF_META_CURRENT_SCENE, cam_scene_mode_type, 1);
951 INCLUDE(CAM_INTF_META_AWB_INFO, cam_awb_params_t, 1);
952 INCLUDE(CAM_INTF_META_FOCUS_POSITION, cam_focus_pos_info_t, 1);
953 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_ISP, cam_chromatix_lite_isp_t, 1);
954 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_PP, cam_chromatix_lite_pp_t, 1);
955 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_AE, cam_chromatix_lite_ae_stats_t, 1);
956 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_AWB, cam_chromatix_lite_awb_stats_t, 1);
957 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_AF, cam_chromatix_lite_af_stats_t, 1);
958 INCLUDE(CAM_INTF_META_CHROMATIX_LITE_ASD, cam_chromatix_lite_asd_stats_t, 1);
959 INCLUDE(CAM_INTF_BUF_DIVERT_INFO, cam_buf_divert_info_t, 1);
960
961 /* Specific to HAL3 */
962 INCLUDE(CAM_INTF_META_FRAME_NUMBER_VALID, int32_t, 1);
963 INCLUDE(CAM_INTF_META_URGENT_FRAME_NUMBER_VALID, int32_t, 1);
964 INCLUDE(CAM_INTF_META_FRAME_DROPPED, cam_stream_ID_t, 1);
965 INCLUDE(CAM_INTF_META_FRAME_NUMBER, uint32_t, 1);
966 INCLUDE(CAM_INTF_META_URGENT_FRAME_NUMBER, uint32_t, 1);
967 INCLUDE(CAM_INTF_META_COLOR_CORRECT_MODE, uint32_t, 1);
968 INCLUDE(CAM_INTF_META_COLOR_CORRECT_TRANSFORM, cam_color_correct_matrix_t, 1);
969 INCLUDE(CAM_INTF_META_COLOR_CORRECT_GAINS, cam_color_correct_gains_t, 1);
970 INCLUDE(CAM_INTF_META_PRED_COLOR_CORRECT_TRANSFORM, cam_color_correct_matrix_t, 1);
971 INCLUDE(CAM_INTF_META_PRED_COLOR_CORRECT_GAINS, cam_color_correct_gains_t, 1);
972 INCLUDE(CAM_INTF_META_AEC_ROI, cam_area_t, 1);
973 INCLUDE(CAM_INTF_META_AEC_STATE, uint32_t, 1);
974 INCLUDE(CAM_INTF_PARM_FOCUS_MODE, uint32_t, 1);
975 INCLUDE(CAM_INTF_PARM_MANUAL_FOCUS_POS, cam_manual_focus_parm_t, 1);
976 INCLUDE(CAM_INTF_META_AF_ROI, cam_area_t, 1);
977 INCLUDE(CAM_INTF_META_AF_DEFAULT_ROI, cam_rect_t, 1);
978 INCLUDE(CAM_INTF_META_AF_STATE, uint32_t, 1);
979 INCLUDE(CAM_INTF_PARM_WHITE_BALANCE, int32_t, 1);
980 INCLUDE(CAM_INTF_META_AWB_REGIONS, cam_area_t, 1);
981 INCLUDE(CAM_INTF_META_AWB_STATE, uint32_t, 1);
982 INCLUDE(CAM_INTF_META_AWB_CONVERGENCE_SPEED, float, 1);
983 INCLUDE(CAM_INTF_META_BLACK_LEVEL_LOCK, uint32_t, 1);
984 INCLUDE(CAM_INTF_META_MODE, uint32_t, 1);
985 INCLUDE(CAM_INTF_META_EDGE_MODE, cam_edge_application_t, 1);
986 INCLUDE(CAM_INTF_META_FLASH_POWER, uint32_t, 1);
987 INCLUDE(CAM_INTF_META_FLASH_FIRING_TIME, int64_t, 1);
988 INCLUDE(CAM_INTF_META_FLASH_MODE, uint32_t, 1);
989 INCLUDE(CAM_INTF_META_FLASH_STATE, int32_t, 1);
990 INCLUDE(CAM_INTF_META_HOTPIXEL_MODE, uint32_t, 1);
991 INCLUDE(CAM_INTF_META_LENS_APERTURE, float, 1);
992 INCLUDE(CAM_INTF_META_LENS_FILTERDENSITY, float, 1);
993 INCLUDE(CAM_INTF_META_LENS_FOCAL_LENGTH, float, 1);
994 INCLUDE(CAM_INTF_META_LENS_FOCUS_DISTANCE, float, 1);
995 INCLUDE(CAM_INTF_META_FOCUS_VALUE, float, 1);
996 INCLUDE(CAM_INTF_META_SPOT_LIGHT_DETECT, uint8_t, 1);
997 INCLUDE(CAM_INTF_META_LENS_FOCUS_RANGE, float, 2);
998 INCLUDE(CAM_INTF_META_LENS_STATE, cam_af_lens_state_t, 1);
999 INCLUDE(CAM_INTF_META_LENS_OPT_STAB_MODE, cam_ois_mode_t, 1);
1000 INCLUDE(CAM_INTF_META_VIDEO_STAB_MODE, uint32_t, 1);
1001 INCLUDE(CAM_INTF_META_LENS_FOCUS_STATE, uint32_t, 1);
1002 INCLUDE(CAM_INTF_META_NOISE_REDUCTION_MODE, uint32_t, 1);
1003 INCLUDE(CAM_INTF_META_NOISE_REDUCTION_STRENGTH, uint32_t, 1);
1004 INCLUDE(CAM_INTF_META_SCALER_CROP_REGION, cam_crop_region_t, 1);
1005 INCLUDE(CAM_INTF_META_SCENE_FLICKER, uint32_t, 1);
1006 INCLUDE(CAM_INTF_META_SENSOR_EXPOSURE_TIME, int64_t, 1);
1007 INCLUDE(CAM_INTF_META_SENSOR_FRAME_DURATION, int64_t, 1);
1008 INCLUDE(CAM_INTF_META_SENSOR_SENSITIVITY, int32_t, 1);
1009 INCLUDE(CAM_INTF_META_ISP_SENSITIVITY , int32_t, 1);
1010 INCLUDE(CAM_INTF_META_SENSOR_TIMESTAMP, int64_t, 1);
1011 INCLUDE(CAM_INTF_META_SENSOR_ROLLING_SHUTTER_SKEW, int64_t, 1);
1012 INCLUDE(CAM_INTF_META_SHADING_MODE, uint32_t, 1);
1013 INCLUDE(CAM_INTF_META_STATS_FACEDETECT_MODE, uint32_t, 1);
1014 INCLUDE(CAM_INTF_META_STATS_HISTOGRAM_MODE, uint32_t, 1);
1015 INCLUDE(CAM_INTF_META_STATS_SHARPNESS_MAP_MODE, uint32_t, 1);
1016 INCLUDE(CAM_INTF_META_STATS_SHARPNESS_MAP, cam_sharpness_map_t, 3);
1017 INCLUDE(CAM_INTF_META_TONEMAP_CURVES, cam_rgb_tonemap_curves, 1);
1018 INCLUDE(CAM_INTF_META_LENS_SHADING_MAP, cam_lens_shading_map_t, 1);
1019 INCLUDE(CAM_INTF_META_AEC_INFO, cam_3a_params_t, 1);
1020 INCLUDE(CAM_INTF_META_SENSOR_INFO, cam_sensor_params_t, 1);
1021 INCLUDE(CAM_INTF_META_EXIF_DEBUG_AE, cam_ae_exif_debug_t, 1);
1022 INCLUDE(CAM_INTF_META_EXIF_DEBUG_AWB, cam_awb_exif_debug_t, 1);
1023 INCLUDE(CAM_INTF_META_EXIF_DEBUG_AF, cam_af_exif_debug_t, 1);
1024 INCLUDE(CAM_INTF_META_EXIF_DEBUG_ASD, cam_asd_exif_debug_t, 1);
1025 INCLUDE(CAM_INTF_META_EXIF_DEBUG_STATS, cam_stats_buffer_exif_debug_t, 1);
1026 INCLUDE(CAM_INTF_META_EXIF_DEBUG_BESTATS, cam_bestats_buffer_exif_debug_t, 1);
1027 INCLUDE(CAM_INTF_META_EXIF_DEBUG_BHIST, cam_bhist_buffer_exif_debug_t, 1);
1028 INCLUDE(CAM_INTF_META_EXIF_DEBUG_3A_TUNING, cam_q3a_tuning_info_t, 1);
1029 INCLUDE(CAM_INTF_META_ASD_SCENE_CAPTURE_TYPE, cam_auto_scene_t, 1);
1030 INCLUDE(CAM_INTF_PARM_EFFECT, uint32_t, 1);
1031 /* Defining as int32_t so that this array is 4 byte aligned */
1032 INCLUDE(CAM_INTF_META_PRIVATE_DATA, int32_t,
1033 MAX_METADATA_PRIVATE_PAYLOAD_SIZE_IN_BYTES / 4);
1034
1035 /* Following are Params only and not metadata currently */
1036 INCLUDE(CAM_INTF_PARM_HAL_VERSION, int32_t, 1);
1037 /* Shared between HAL1 and HAL3 */
1038 INCLUDE(CAM_INTF_PARM_ANTIBANDING, uint32_t, 1);
1039 INCLUDE(CAM_INTF_PARM_EXPOSURE_COMPENSATION, int32_t, 1);
1040 INCLUDE(CAM_INTF_PARM_EV_STEP, cam_rational_type_t, 1);
1041 INCLUDE(CAM_INTF_PARM_AEC_LOCK, uint32_t, 1);
1042 INCLUDE(CAM_INTF_PARM_FPS_RANGE, cam_fps_range_t, 1);
1043 INCLUDE(CAM_INTF_PARM_AWB_LOCK, uint32_t, 1);
1044 INCLUDE(CAM_INTF_PARM_BESTSHOT_MODE, uint32_t, 1);
1045 INCLUDE(CAM_INTF_PARM_DIS_ENABLE, int32_t, 1);
1046 INCLUDE(CAM_INTF_PARM_LED_MODE, int32_t, 1);
1047 INCLUDE(CAM_INTF_META_LED_MODE_OVERRIDE, uint32_t, 1);
1048
1049 /* dual camera specific params */
1050 INCLUDE(CAM_INTF_PARM_RELATED_SENSORS_CALIBRATION, cam_related_system_calibration_data_t, 1);
1051 INCLUDE(CAM_INTF_META_AF_FOCAL_LENGTH_RATIO, cam_focal_length_ratio_t, 1);
1052 INCLUDE(CAM_INTF_META_SNAP_CROP_INFO_SENSOR, cam_stream_crop_info_t, 1);
1053 INCLUDE(CAM_INTF_META_SNAP_CROP_INFO_CAMIF, cam_stream_crop_info_t, 1);
1054 INCLUDE(CAM_INTF_META_SNAP_CROP_INFO_ISP, cam_stream_crop_info_t, 1);
1055 INCLUDE(CAM_INTF_META_SNAP_CROP_INFO_CPP, cam_stream_crop_info_t, 1);
1056 INCLUDE(CAM_INTF_META_DCRF, cam_dcrf_result_t, 1);
1057 INCLUDE(CAM_INTF_PARM_SYNC_DC_PARAMETERS, uint32_t, 1);
1058 INCLUDE(CAM_INTF_META_AF_FOCUS_POS, cam_af_focus_pos_t, 1);
1059
1060 /* HAL1 specific */
1061 /* read only */
1062 INCLUDE(CAM_INTF_PARM_QUERY_FLASH4SNAP, int32_t, 1);
1063 INCLUDE(CAM_INTF_PARM_EXPOSURE, int32_t, 1);
1064 INCLUDE(CAM_INTF_PARM_SHARPNESS, int32_t, 1);
1065 INCLUDE(CAM_INTF_PARM_CONTRAST, int32_t, 1);
1066 INCLUDE(CAM_INTF_PARM_SATURATION, int32_t, 1);
1067 INCLUDE(CAM_INTF_PARM_BRIGHTNESS, int32_t, 1);
1068 INCLUDE(CAM_INTF_PARM_ISO, cam_intf_parm_manual_3a_t, 1);
1069 INCLUDE(CAM_INTF_PARM_EXPOSURE_TIME, cam_intf_parm_manual_3a_t, 1);
1070 INCLUDE(CAM_INTF_PARM_USERZOOM, cam_zoom_info_t, 1);
1071 INCLUDE(CAM_INTF_PARM_ROLLOFF, int32_t, 1);
1072 INCLUDE(CAM_INTF_PARM_MODE, int32_t, 1);
1073 INCLUDE(CAM_INTF_PARM_AEC_ALGO_TYPE, int32_t, 1);
1074 INCLUDE(CAM_INTF_PARM_FOCUS_ALGO_TYPE, int32_t, 1);
1075 INCLUDE(CAM_INTF_PARM_AEC_ROI, cam_set_aec_roi_t, 1);
1076 INCLUDE(CAM_INTF_PARM_AF_ROI, cam_roi_info_t, 1);
1077 INCLUDE(CAM_INTF_PARM_SCE_FACTOR, int32_t, 1);
1078 INCLUDE(CAM_INTF_PARM_FD, cam_fd_set_parm_t, 1);
1079 INCLUDE(CAM_INTF_PARM_MCE, int32_t, 1);
1080 INCLUDE(CAM_INTF_PARM_HFR, int32_t, 1);
1081 INCLUDE(CAM_INTF_PARM_REDEYE_REDUCTION, int32_t, 1);
1082 INCLUDE(CAM_INTF_PARM_WAVELET_DENOISE, cam_denoise_param_t, 1);
1083 INCLUDE(CAM_INTF_PARM_TEMPORAL_DENOISE, cam_denoise_param_t, 1);
1084 INCLUDE(CAM_INTF_PARM_HISTOGRAM, int32_t, 1);
1085 INCLUDE(CAM_INTF_PARM_ASD_ENABLE, int32_t, 1);
1086 INCLUDE(CAM_INTF_PARM_RECORDING_HINT, int32_t, 1);
1087 INCLUDE(CAM_INTF_PARM_HDR, cam_exp_bracketing_t, 1);
1088 INCLUDE(CAM_INTF_PARM_FRAMESKIP, int32_t, 1);
1089 INCLUDE(CAM_INTF_PARM_ZSL_MODE, int32_t, 1);
1090 INCLUDE(CAM_INTF_PARM_HDR_NEED_1X, int32_t, 1);
1091 INCLUDE(CAM_INTF_PARM_LOCK_CAF, int32_t, 1);
1092 INCLUDE(CAM_INTF_PARM_VIDEO_HDR, int32_t, 1);
1093 INCLUDE(CAM_INTF_PARM_SENSOR_HDR, cam_sensor_hdr_type_t, 1);
1094 INCLUDE(CAM_INTF_PARM_VT, int32_t, 1);
1095 INCLUDE(CAM_INTF_PARM_SET_AUTOFOCUSTUNING, tune_actuator_t, 1);
1096 INCLUDE(CAM_INTF_PARM_SET_VFE_COMMAND, tune_cmd_t, 1);
1097 INCLUDE(CAM_INTF_PARM_SET_PP_COMMAND, tune_cmd_t, 1);
1098 INCLUDE(CAM_INTF_PARM_MAX_DIMENSION, cam_dimension_t, 1);
1099 INCLUDE(CAM_INTF_PARM_RAW_DIMENSION, cam_dimension_t, 1);
1100 INCLUDE(CAM_INTF_PARM_TINTLESS, int32_t, 1);
1101 INCLUDE(CAM_INTF_PARM_WB_MANUAL, cam_manual_wb_parm_t, 1);
1102 INCLUDE(CAM_INTF_PARM_CDS_MODE, int32_t, 1);
1103 INCLUDE(CAM_INTF_PARM_EZTUNE_CMD, cam_eztune_cmd_data_t, 1);
1104 INCLUDE(CAM_INTF_PARM_INT_EVT, cam_int_evt_params_t, 1);
1105 INCLUDE(CAM_INTF_PARM_RDI_MODE, int32_t, 1);
1106 INCLUDE(CAM_INTF_PARM_BURST_NUM, uint32_t, 1);
1107 INCLUDE(CAM_INTF_PARM_RETRO_BURST_NUM, uint32_t, 1);
1108 INCLUDE(CAM_INTF_PARM_BURST_LED_ON_PERIOD, uint32_t, 1);
1109 INCLUDE(CAM_INTF_PARM_LONGSHOT_ENABLE, int8_t, 1);
1110 INCLUDE(CAM_INTF_PARM_TONE_MAP_MODE, uint32_t, 1);
1111 INCLUDE(CAM_INTF_META_TOUCH_AE_RESULT, int32_t, 1);
1112 INCLUDE(CAM_INTF_PARM_DUAL_LED_CALIBRATION, int32_t, 1);
1113 INCLUDE(CAM_INTF_PARM_ADV_CAPTURE_MODE, uint8_t, 1);
1114 INCLUDE(CAM_INTF_PARM_QUADRA_CFA, int32_t, 1);
1115 INCLUDE(CAM_INTF_META_RAW, cam_dimension_t, 1);
1116 INCLUDE(CAM_INTF_META_STREAM_INFO_FOR_PIC_RES, cam_stream_size_info_t, 1);
1117 INCLUDE(CAM_INTF_PARM_VFE1_RESERVED_RDI, int32_t, 1);
1118 INCLUDE(CAM_INTF_PARM_SKIP_FINE_SCAN, int32_t, 1);
1119
1120 /* HAL3 specific */
1121 INCLUDE(CAM_INTF_META_STREAM_INFO, cam_stream_size_info_t, 1);
1122 INCLUDE(CAM_INTF_META_AEC_MODE, uint32_t, 1);
1123 INCLUDE(CAM_INTF_META_AEC_CONVERGENCE_SPEED, float, 1);
1124 INCLUDE(CAM_INTF_META_AEC_PRECAPTURE_TRIGGER, cam_trigger_t, 1);
1125 INCLUDE(CAM_INTF_META_AF_TRIGGER, cam_trigger_t, 1);
1126 INCLUDE(CAM_INTF_META_CAPTURE_INTENT, uint32_t, 1);
1127 INCLUDE(CAM_INTF_META_DEMOSAIC, int32_t, 1);
1128 INCLUDE(CAM_INTF_META_SHARPNESS_STRENGTH, int32_t, 1);
1129 INCLUDE(CAM_INTF_META_GEOMETRIC_MODE, uint32_t, 1);
1130 INCLUDE(CAM_INTF_META_GEOMETRIC_STRENGTH, uint32_t, 1);
1131 INCLUDE(CAM_INTF_META_LENS_SHADING_MAP_MODE, uint32_t, 1);
1132 INCLUDE(CAM_INTF_META_SHADING_STRENGTH, uint32_t, 1);
1133 INCLUDE(CAM_INTF_META_TONEMAP_MODE, uint32_t, 1);
1134 INCLUDE(CAM_INTF_META_IR_MODE, cam_ir_mode_type_t, 1);
1135 INCLUDE(CAM_INTF_META_STREAM_ID, cam_stream_ID_t, 1);
1136 INCLUDE(CAM_INTF_PARM_STATS_DEBUG_MASK, uint32_t, 1);
1137 INCLUDE(CAM_INTF_PARM_STATS_AF_PAAF, uint32_t, 1);
1138 INCLUDE(CAM_INTF_PARM_FOCUS_BRACKETING, cam_af_bracketing_t, 1);
1139 INCLUDE(CAM_INTF_PARM_FLASH_BRACKETING, cam_flash_bracketing_t, 1);
1140 INCLUDE(CAM_INTF_META_JPEG_GPS_COORDINATES, double, 3);
1141 INCLUDE(CAM_INTF_META_JPEG_GPS_PROC_METHODS, uint8_t, GPS_PROCESSING_METHOD_SIZE);
1142 INCLUDE(CAM_INTF_META_JPEG_GPS_TIMESTAMP, int64_t, 1);
1143 INCLUDE(CAM_INTF_META_JPEG_ORIENTATION, int32_t, 1);
1144 INCLUDE(CAM_INTF_META_JPEG_QUALITY, uint32_t, 1);
1145 INCLUDE(CAM_INTF_META_JPEG_THUMB_QUALITY, uint32_t, 1);
1146 INCLUDE(CAM_INTF_META_JPEG_THUMB_SIZE, cam_dimension_t, 1);
1147 INCLUDE(CAM_INTF_META_TEST_PATTERN_DATA, cam_test_pattern_data_t, 1);
1148 INCLUDE(CAM_INTF_META_PROFILE_TONE_CURVE, cam_profile_tone_curve, 1);
1149 INCLUDE(CAM_INTF_META_OTP_WB_GRGB, float, 1);
1150 INCLUDE(CAM_INTF_META_IMG_HYST_INFO, cam_img_hysterisis_info_t, 1);
1151 INCLUDE(CAM_INTF_META_CAC_INFO, cam_cac_info_t, 1);
1152 INCLUDE(CAM_INTF_PARM_CAC, cam_aberration_mode_t, 1);
1153 INCLUDE(CAM_INTF_META_NEUTRAL_COL_POINT, cam_neutral_col_point_t, 1);
1154 INCLUDE(CAM_INTF_PARM_ROTATION, cam_rotation_info_t, 1);
1155 INCLUDE(CAM_INTF_PARM_HW_DATA_OVERWRITE, cam_hw_data_overwrite_t, 1);
1156 INCLUDE(CAM_INTF_META_IMGLIB, cam_intf_meta_imglib_t, 1);
1157 INCLUDE(CAM_INTF_PARM_CAPTURE_FRAME_CONFIG, cam_capture_frame_config_t, 1);
1158 INCLUDE(CAM_INTF_PARM_CUSTOM, custom_parm_buffer_t, 1);
1159 INCLUDE(CAM_INTF_PARM_FLIP, int32_t, 1);
1160 INCLUDE(CAM_INTF_META_USE_AV_TIMER, uint8_t, 1);
1161 INCLUDE(CAM_INTF_META_EFFECTIVE_EXPOSURE_FACTOR, float, 1);
1162 INCLUDE(CAM_INTF_META_LDAF_EXIF, uint32_t, 2);
1163 INCLUDE(CAM_INTF_META_BLACK_LEVEL_SOURCE_PATTERN, cam_black_level_metadata_t, 1);
1164 INCLUDE(CAM_INTF_META_BLACK_LEVEL_APPLIED_PATTERN, cam_black_level_metadata_t, 1);
1165 INCLUDE(CAM_INTF_META_LOW_LIGHT, cam_low_light_mode_t, 1);
1166 INCLUDE(CAM_INTF_META_IMG_DYN_FEAT, cam_dyn_img_data_t, 1);
1167 INCLUDE(CAM_INTF_PARM_MANUAL_CAPTURE_TYPE, cam_manual_capture_type, 1);
1168 INCLUDE(CAM_INTF_AF_STATE_TRANSITION, uint8_t, 1);
1169 INCLUDE(CAM_INTF_PARM_INITIAL_EXPOSURE_INDEX, uint32_t, 1);
1170 INCLUDE(CAM_INTF_PARM_INSTANT_AEC, uint8_t, 1);
1171 INCLUDE(CAM_INTF_META_REPROCESS_FLAGS, uint8_t, 1);
1172 INCLUDE(CAM_INTF_PARM_JPEG_ENCODE_CROP, cam_stream_crop_info_t, 1);
1173 INCLUDE(CAM_INTF_PARM_JPEG_SCALE_DIMENSION, cam_dimension_t, 1);
1174 INCLUDE(CAM_INTF_META_FOCUS_DEPTH_INFO, uint8_t, 1);
1175 INCLUDE(CAM_INTF_PARM_HAL_BRACKETING_HDR, cam_hdr_param_t, 1);
1176 INCLUDE(CAM_INTF_META_DC_LOW_POWER_ENABLE, uint8_t, 1);
1177 INCLUDE(CAM_INTF_META_DC_SAC_OUTPUT_INFO, cam_sac_output_info_t, 1);
1178 INCLUDE(CAM_INTF_META_DC_IN_SNAPSHOT_PP_ZOOM_RANGE, uint8_t, 1);
1179 INCLUDE(CAM_INTF_META_DC_BOKEH_MODE, uint8_t, 1);
1180 INCLUDE(CAM_INTF_PARM_FOV_COMP_ENABLE, int32_t, 1);
1181 INCLUDE(CAM_INTF_META_LED_CALIB_RESULT, int32_t, 1);
1182 INCLUDE(CAM_INTF_PARM_DC_USERZOOM, int32_t, 1);
1183 INCLUDE(CAM_INTF_META_AEC_LUX_INDEX, float, 1);
1184 INCLUDE(CAM_INTF_META_AF_OBJ_DIST_CM, int32_t, 1);
1185 INCLUDE(CAM_INTF_META_BINNING_CORRECTION_MODE, cam_binning_correction_mode_t, 1);
1186
1187 /* HAL1 and HAL3 Dual Camera */
1188 INCLUDE(CAM_INTF_META_OIS_READ_DATA, cam_ois_data_t, 1);
1189 INCLUDE(CAM_INTF_PARAM_BOKEH_BLUR_LEVEL, cam_rtb_blur_info_t, 1);
1190 INCLUDE(CAM_INTF_META_RTB_DATA, cam_rtb_msg_type_t, 1);
1191 INCLUDE(CAM_INTF_META_DC_CAPTURE, uint8_t, 1);
1192 INCLUDE(CAM_INTF_PARM_BOKEH_MODE, uint8_t, 1);
1193 INCLUDE(CAM_INTF_META_USERZOOM, cam_zoom_info_t, 1);
1194 INCLUDE(CAM_INTF_META_TUNING_PARAMS, tuning_params_t, 1);
1195} metadata_data_t;
例如我們上面獲取的3A信息就定義在結(jié)構(gòu)體cam_3a_params_t
INCLUDE(CAM_INTF_META_AEC_INFO, cam_3a_params_t, 1);