1c5e268c6Sopenharmony_ci/*
2c5e268c6Sopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3c5e268c6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4c5e268c6Sopenharmony_ci * you may not use this file except in compliance with the License.
5c5e268c6Sopenharmony_ci * You may obtain a copy of the License at
6c5e268c6Sopenharmony_ci *
7c5e268c6Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8c5e268c6Sopenharmony_ci *
9c5e268c6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10c5e268c6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11c5e268c6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12c5e268c6Sopenharmony_ci * See the License for the specific language governing permissions and
13c5e268c6Sopenharmony_ci * limitations under the License.
14c5e268c6Sopenharmony_ci */
15c5e268c6Sopenharmony_ci
16c5e268c6Sopenharmony_ci#ifndef CAMERA_METADATA_ITEM_INFO_H
17c5e268c6Sopenharmony_ci#define CAMERA_METADATA_ITEM_INFO_H
18c5e268c6Sopenharmony_ci
19c5e268c6Sopenharmony_ci#include "camera_metadata_operator.h"
20c5e268c6Sopenharmony_ci
21c5e268c6Sopenharmony_cinamespace OHOS::Camera {
22c5e268c6Sopenharmony_ciconst static size_t OHOS_CAMERA_METADATA_TYPE_SIZE[META_NUM_TYPES] = {
23c5e268c6Sopenharmony_ci    [META_TYPE_BYTE] = sizeof(uint8_t),
24c5e268c6Sopenharmony_ci    [META_TYPE_INT32] = sizeof(int32_t),
25c5e268c6Sopenharmony_ci    [META_TYPE_UINT32] = sizeof(uint32_t),
26c5e268c6Sopenharmony_ci    [META_TYPE_FLOAT] = sizeof(float),
27c5e268c6Sopenharmony_ci    [META_TYPE_INT64] = sizeof(int64_t),
28c5e268c6Sopenharmony_ci    [META_TYPE_DOUBLE] = sizeof(double),
29c5e268c6Sopenharmony_ci    [META_TYPE_RATIONAL] = sizeof(camera_rational_t)
30c5e268c6Sopenharmony_ci};
31c5e268c6Sopenharmony_ci
32c5e268c6Sopenharmony_cistatic uint32_t g_ohosCameraSectionBounds[OHOS_SECTION_COUNT][2] = {
33c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_PROPERTIES] = {OHOS_CAMERA_PROPERTIES_START,  OHOS_CAMERA_PROPERTIES_END },
34c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_SENSOR] = {OHOS_CAMERA_SENSOR_START,      OHOS_CAMERA_SENSOR_END     },
35c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_SENSOR_INFO] = {OHOS_CAMERA_SENSOR_INFO_START, OHOS_CAMERA_SENSOR_INFO_END},
36c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_STATISTICS] = {OHOS_CAMERA_STATISTICS_START,  OHOS_CAMERA_STATISTICS_END },
37c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_CONTROL] = {OHOS_DEVICE_CONTROL_START,     OHOS_DEVICE_CONTROL_END    },
38c5e268c6Sopenharmony_ci    [OHOS_SECTION_DEVICE_EXPOSURE] = {OHOS_DEVICE_EXPOSURE_START,    OHOS_DEVICE_EXPOSURE_END   },
39c5e268c6Sopenharmony_ci    [OHOS_SECTION_DEVICE_FOCUS] = {OHOS_DEVICE_FOCUS_START,       OHOS_DEVICE_FOCUS_END      },
40c5e268c6Sopenharmony_ci    [OHOS_SECTION_DEVICE_WHITE] = {OHOS_DEVICE_WHITE_BLANCE_START,    OHOS_DEVICE_WHITE_BLANCE_END      },
41c5e268c6Sopenharmony_ci    [OHOS_SECTION_DEVICE_FLASH] = {OHOS_DEVICE_FLASH_START,       OHOS_DEVICE_FLASH_END      },
42c5e268c6Sopenharmony_ci    [OHOS_SECTION_DEVICE_ZOOM] = {OHOS_DEVICE_ZOOM_START,        OHOS_DEVICE_ZOOM_END       },
43c5e268c6Sopenharmony_ci    [OHOS_SECTION_STREAM_ABILITY] = {OHOS_STREAM_ABILITY_START,     OHOS_STREAM_ABILITY_END    },
44c5e268c6Sopenharmony_ci    [OHOS_SECTION_STREAM_JPEG] = {OHOS_STREAM_JPEG_START,        OHOS_STREAM_JPEG_END       },
45c5e268c6Sopenharmony_ci    [OHOS_SECTION_STREAM_VIDEO] = {OHOS_STREAM_VIDEO_START,       OHOS_STREAM_VIDEO_END      },
46c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_EFFECT] = {OHOS_CAMERA_EFFECT_START, OHOS_CAMERA_EFFECT_END },
47c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_SECURE] = {OHOS_CAMERA_SECURE_START, OHOS_CAMERA_SECURE_END },
48c5e268c6Sopenharmony_ci    [OHOS_SECTION_CAMERA_XMAGE] = {OHOS_XMAGE_COLOR_MODES_START, OHOS_XMAGE_COLOR_MODES_END },
49c5e268c6Sopenharmony_ci};
50c5e268c6Sopenharmony_ci
51c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraProperties[OHOS_CAMERA_PROPERTIES_END - OHOS_CAMERA_PROPERTIES_START] = {
52c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_POSITION - OHOS_CAMERA_PROPERTIES_START] = {"cameraPosition",       META_TYPE_BYTE,  1 },
53c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_TYPE - OHOS_CAMERA_PROPERTIES_START] = {"cameraType",           META_TYPE_BYTE,  1 },
54c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_CONNECTION_TYPE -
55c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraConnectionType", META_TYPE_BYTE,  1 },
56c5e268c6Sopenharmony_ci    [OHOS_ABILITY_MEMORY_TYPE - OHOS_CAMERA_PROPERTIES_START] = {"cameraMemoryType", META_TYPE_BYTE, 1},
57c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FPS_RANGES - OHOS_CAMERA_PROPERTIES_START] = {"fpsAvailableRanges",   META_TYPE_INT32, -1},
58c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FLASH_AVAILABLE - OHOS_CAMERA_PROPERTIES_START] = {"flashAvailable",       META_TYPE_BYTE,  1 },
59c5e268c6Sopenharmony_ci    [OHOS_CAMERA_STREAM_ID - OHOS_CAMERA_PROPERTIES_START] = {"streamId",       META_TYPE_INT32,  1 },
60c5e268c6Sopenharmony_ci    [OHOS_ABILITY_PRELAUNCH_AVAILABLE - OHOS_CAMERA_PROPERTIES_START] = {"prelaunchAvailable", META_TYPE_BYTE, 1 },
61c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CUSTOM_VIDEO_FPS - OHOS_CAMERA_PROPERTIES_START] = {"customVideoFps",   META_TYPE_INT32, -1},
62c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_MODES - OHOS_CAMERA_PROPERTIES_START] = {"availableCameraModes", META_TYPE_BYTE, -1 },
63c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SKETCH_ENABLE_RATIO -
64c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"sketchEnableRatio",       META_TYPE_FLOAT, -1},
65c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SKETCH_REFERENCE_FOV_RATIO -
66c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"sketchReferenceFovRatio", META_TYPE_FLOAT, -1},
67c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_FOLDSCREEN_TYPE -
68c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraFoldscreenType", META_TYPE_BYTE, 1},
69c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_COLOR_SPACES -
70c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"availableColorSpaces", META_TYPE_INT32, -1},
71c5e268c6Sopenharmony_ci    [OHOS_CAMERA_USER_ID -
72c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraUserId", META_TYPE_INT32, -1},
73c5e268c6Sopenharmony_ci    [OHOS_ABILITY_NIGHT_MODE_SUPPORTED_EXPOSURE_TIME -
74c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"nightModeSupportedExposureTime", META_TYPE_INT32, 1},
75c5e268c6Sopenharmony_ci    [OHOS_CAMERA_MESURE_EXPOSURE_TIME -
76c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraMesureExposureTime", META_TYPE_UINT32, 1},
77c5e268c6Sopenharmony_ci    [OHOS_CAMERA_EXPOSURE_MODE_PREVIEW_STATE -
78c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraExposureModePreviewState", META_TYPE_BYTE, 1},
79c5e268c6Sopenharmony_ci    [OHOS_ABILITY_MOON_CAPTURE_BOOST -
80c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraAbilityMoonCaptureBoost", META_TYPE_UINT32, -1},
81c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MOON_CAPTURE_BOOST -
82c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraControlMoonCaptureBoost", META_TYPE_BYTE, 1},
83c5e268c6Sopenharmony_ci    [OHOS_STATUS_MOON_CAPTURE_DETECTION -
84c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraStatusMoonCaptureDetection", META_TYPE_UINT32, 1},
85c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAPTURE_DURATION_SUPPORTED -
86c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"captureDurationSupported", META_TYPE_BYTE, 1},
87c5e268c6Sopenharmony_ci    [OHOS_CAMERA_CUSTOM_SNAPSHOT_DURATION -
88c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"customSnapshotDuration", META_TYPE_UINT32, 1},
89c5e268c6Sopenharmony_ci    [OHOS_ABILITY_MOVING_PHOTO -
90c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraAbilityMovingPhoto", META_TYPE_INT32, -1},
91c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FLASH_SUGGESTION_SUPPORTED -
92c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraAbilityFlashSuggestionSupported", META_TYPE_UINT32, -1},
93c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FLASH_SUGGESTION_SWITCH -
94c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraControlFlashSuggestionSwitch", META_TYPE_BYTE, 1},
95c5e268c6Sopenharmony_ci    [OHOS_STATUS_FLASH_SUGGESTION -
96c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraStatusFlashSuggestion", META_TYPE_UINT32, 1},
97c5e268c6Sopenharmony_ci    [OHOS_ABILITY_HIGH_QUALITY_SUPPORT -
98c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraAbilityHighQualitySupport", META_TYPE_BYTE, 1},
99c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_FOLD_STATUS -
100c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraFoldStatus", META_TYPE_BYTE, 1},
101c5e268c6Sopenharmony_ci    [OHOS_STATUS_CAMERA_OCCLUSION_DETECTION -
102c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraStatusOcclusionDetection", META_TYPE_INT32, 1},
103c5e268c6Sopenharmony_ci    [OHOS_ABILITY_STATISTICS_DETECT_TYPE -
104c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"statisticsDetectType", META_TYPE_BYTE, -1},
105c5e268c6Sopenharmony_ci    [OHOS_CONTROL_STATISTICS_DETECT_SETTING -
106c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"statisticsDetectSetting", META_TYPE_BYTE, -1},
107c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_EXTENDED_STREAM_INFO_TYPES -
108c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"availableExtendedStreamInfoTypes", META_TYPE_INT32, -1},
109c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AUTO_DEFERRED_VIDEO_ENHANCE -
110c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"autoDeferredVideoEnhance", META_TYPE_BYTE, 1},
111c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AUTO_DEFERRED_VIDEO_ENHANCE -
112c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"controlAutoDeferredVideoEnhance", META_TYPE_BYTE, 1},
113c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AUTO_CLOUD_IMAGE_ENHANCE -
114c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"autoCloudImageEnhance", META_TYPE_INT32, -1},
115c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AUTO_CLOUD_IMAGE_ENHANCE -
116c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"controlAutoCloudImageEnhance", META_TYPE_BYTE, 1},
117c5e268c6Sopenharmony_ci    [OHOS_ABILITY_TRIPOD_DETECTION -
118c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"tripodDetection", META_TYPE_INT32, -1},
119c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TRIPOD_DETECTION -
120c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"controlTripodDetection", META_TYPE_BYTE, 1},
121c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TRIPOD_STABLITATION -
122c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"tripodStablitation", META_TYPE_BYTE, 1},
123c5e268c6Sopenharmony_ci    [OHOS_STATUS_TRIPOD_DETECTION_STATUS -
124c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"tripodDetectionStatus", META_TYPE_BYTE, 1},
125c5e268c6Sopenharmony_ci    [OHOS_STATUS_SKETCH_POINT -
126c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"sketchPoint", META_TYPE_FLOAT, 1},
127c5e268c6Sopenharmony_ci    [OHOS_ABILITY_LOW_LIGHT_BOOST -
128c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"lowLightBoost", META_TYPE_INT32, -1},
129c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LOW_LIGHT_DETECT -
130c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"controlLowLightBoost", META_TYPE_BYTE, 1},
131c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LOW_LIGHT_BOOST -
132c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"lowLightBoost", META_TYPE_BYTE, 1},
133c5e268c6Sopenharmony_ci    [OHOS_STATUS_LOW_LIGHT_DETECTION -
134c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"lowLightDetection", META_TYPE_BYTE, 1},
135c5e268c6Sopenharmony_ci    [OHOS_STATUS_CAMERA_LENS_DIRTY_DETECTION -
136c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"cameraLensDirtyDetection", META_TYPE_BYTE, 1},
137c5e268c6Sopenharmony_ci    [OHOS_DEVICE_PROTECTION_STATE -
138c5e268c6Sopenharmony_ci        OHOS_CAMERA_PROPERTIES_START] = {"protectionState", META_TYPE_BYTE, 1},
139c5e268c6Sopenharmony_ci};
140c5e268c6Sopenharmony_ci
141c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraSensor[OHOS_CAMERA_SENSOR_END - OHOS_CAMERA_SENSOR_START] = {
142c5e268c6Sopenharmony_ci    [OHOS_SENSOR_EXPOSURE_TIME - OHOS_CAMERA_SENSOR_START] = {"exposureTime",        META_TYPE_INT64, 1},
143c5e268c6Sopenharmony_ci    [OHOS_SENSOR_COLOR_CORRECTION_GAINS - OHOS_CAMERA_SENSOR_START] = {"colorCorrectuonGain", META_TYPE_FLOAT, 1},
144c5e268c6Sopenharmony_ci    [OHOS_SENSOR_ORIENTATION - OHOS_CAMERA_SENSOR_START] = {"sensorOrientation",         META_TYPE_INT32, 1},
145c5e268c6Sopenharmony_ci    [OHOS_ABILITY_MUTE_MODES - OHOS_CAMERA_SENSOR_START] = {"muteAvailableModes", META_TYPE_BYTE, -1},
146c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MUTE_MODE - OHOS_CAMERA_SENSOR_START] = {"muteMode", META_TYPE_BYTE, 1},
147c5e268c6Sopenharmony_ci};
148c5e268c6Sopenharmony_ci
149c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraSensorInfo[OHOS_CAMERA_SENSOR_INFO_END - OHOS_CAMERA_SENSOR_INFO_START] = {
150c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_ACTIVE_ARRAY_SIZE -
151c5e268c6Sopenharmony_ci        OHOS_CAMERA_SENSOR_INFO_START] = {"activeArraySize",       META_TYPE_INT32, -1},
152c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_SENSITIVITY_RANGE -
153c5e268c6Sopenharmony_ci        OHOS_CAMERA_SENSOR_INFO_START] = {"sensitivityRange",      META_TYPE_INT32, -1},
154c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_MAX_FRAME_DURATION -
155c5e268c6Sopenharmony_ci        OHOS_CAMERA_SENSOR_INFO_START] = {"maxFrameDuration",      META_TYPE_INT64, 1 },
156c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_PHYSICAL_SIZE - OHOS_CAMERA_SENSOR_INFO_START] = {"physicalSize",          META_TYPE_FLOAT, 1 },
157c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_PIXEL_ARRAY_SIZE -
158c5e268c6Sopenharmony_ci        OHOS_CAMERA_SENSOR_INFO_START] = {"pixelArraySize",        META_TYPE_INT32, -1},
159c5e268c6Sopenharmony_ci    [OHOS_SENSOR_INFO_TIMESTAMP - OHOS_CAMERA_SENSOR_INFO_START] = {"sensorOutputTimeStamp", META_TYPE_INT64, 1 },
160c5e268c6Sopenharmony_ci};
161c5e268c6Sopenharmony_ci
162c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraStatistics[OHOS_CAMERA_STATISTICS_END - OHOS_CAMERA_STATISTICS_START] = {
163c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_DETECT_MODE - OHOS_CAMERA_STATISTICS_START] = {"faceDetectMode",   META_TYPE_BYTE,  1 },
164c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_DETECT_SWITCH - OHOS_CAMERA_STATISTICS_START] = {"faceDetectSwitch", META_TYPE_BYTE,  1 },
165c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_DETECT_MAX_NUM - OHOS_CAMERA_STATISTICS_START] = {"faceDetectMaxNum", META_TYPE_BYTE,  1 },
166c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_HISTOGRAM_MODE - OHOS_CAMERA_STATISTICS_START] = {"histogramMode",    META_TYPE_BYTE,  1 },
167c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_IDS - OHOS_CAMERA_STATISTICS_START] = {"faceIds",          META_TYPE_INT32, -1},
168c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_LANDMARKS - OHOS_CAMERA_STATISTICS_START] = {"faceLandmarks",    META_TYPE_INT32, -1},
169c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_RECTANGLES - OHOS_CAMERA_STATISTICS_START] = {"faceRectangles",   META_TYPE_FLOAT, -1},
170c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_FACE_SCORES - OHOS_CAMERA_STATISTICS_START] = {"faceScores",       META_TYPE_BYTE,  -1},
171c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_HUMAN_FACE_INFOS -
172c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectHumanFaceInfos", META_TYPE_INT32,  -1},
173c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_HUMAN_BODY_INFOS -
174c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectHumanBodyInfos", META_TYPE_INT32,  -1},
175c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_CAT_FACE_INFOS -
176c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectCatFaceInfos", META_TYPE_INT32,  -1},
177c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_CAT_BODY_INFOS -
178c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectCatBodyInfos", META_TYPE_INT32,  -1},
179c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_DOG_FACE_INFOS -
180c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectDogFaceInfos", META_TYPE_INT32,  -1},
181c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_DOG_BODY_INFOS -
182c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectDogBodyInfos", META_TYPE_INT32,  -1},
183c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_SALIENT_INFOS -
184c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectSalientInfos", META_TYPE_INT32,  -1},
185c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_BAR_CODE_INFOS -
186c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"detectBarCodeInfos", META_TYPE_INT32,  -1},
187c5e268c6Sopenharmony_ci    [OHOS_STATISTICS_DETECT_BASE_FACE_INFO -
188c5e268c6Sopenharmony_ci        OHOS_CAMERA_STATISTICS_START] = {"baseFaceInfo", META_TYPE_INT32,  -1},
189c5e268c6Sopenharmony_ci};
190c5e268c6Sopenharmony_ci
191c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraControl[OHOS_DEVICE_CONTROL_END - OHOS_DEVICE_CONTROL_START] = {
192c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_ANTIBANDING_MODE -
193c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeAntibandingMode",           META_TYPE_BYTE,     1 },
194c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_EXPOSURE_COMPENSATION -
195c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeExposureCompensation",      META_TYPE_INT32,    1 },
196c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_LOCK - OHOS_DEVICE_CONTROL_START] = {"aeLock",                      META_TYPE_BYTE,     1 },
197c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_MODE - OHOS_DEVICE_CONTROL_START] = {"aeMode",                      META_TYPE_BYTE,     1 },
198c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_REGIONS - OHOS_DEVICE_CONTROL_START] = {"aeRegions",                META_TYPE_FLOAT,    -1},
199c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_TARGET_FPS_RANGE -
200c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeTargetFpsRange",            META_TYPE_INT32,    -1},
201c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FPS_RANGES - OHOS_DEVICE_CONTROL_START] = {"fpsRange",                    META_TYPE_INT32,    -1},
202c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_MODE - OHOS_DEVICE_CONTROL_START] = {"afMode",                         META_TYPE_BYTE,     1 },
203c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_REGIONS - OHOS_DEVICE_CONTROL_START] = {"afRegions",                   META_TYPE_FLOAT,    -1},
204c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_TRIGGER - OHOS_DEVICE_CONTROL_START] = {"afTrigger",                   META_TYPE_BYTE,     1 },
205c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_TRIGGER_ID - OHOS_DEVICE_CONTROL_START] = {"afTriggerId",              META_TYPE_INT32,    1 },
206c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_STATE - OHOS_DEVICE_CONTROL_START] = {"afState",                     META_TYPE_BYTE,     1 },
207c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AWB_LOCK - OHOS_DEVICE_CONTROL_START] = {"awbLock",                     META_TYPE_BYTE,     1 },
208c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AWB_MODE - OHOS_DEVICE_CONTROL_START] = {"awbMode",                     META_TYPE_BYTE,     1 },
209c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AWB_REGIONS - OHOS_DEVICE_CONTROL_START] = {"awbRegions",                  META_TYPE_INT32,    -1},
210c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_AVAILABLE_ANTIBANDING_MODES -
211c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeAvailableAntibandingModes", META_TYPE_BYTE,     -1},
212c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_AVAILABLE_MODES -
213c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeAvailableModes",            META_TYPE_BYTE,     -1},
214c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES -
215c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeAvailableTargetFpsRanges",  META_TYPE_INT32,    -1},
216c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_COMPENSATION_RANGE -
217c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeCompensationRange",         META_TYPE_INT32,    -1},
218c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AE_COMPENSATION_STEP -
219c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"aeCompensationStep",          META_TYPE_RATIONAL, 1 },
220c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AE_COMPENSATION_RANGE -
221c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"abilityAeCompensationRange",         META_TYPE_INT32,    -1},
222c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AE_COMPENSATION_STEP -
223c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"abilityAeCompensationStep",          META_TYPE_RATIONAL, 1 },
224c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AF_AVAILABLE_MODES -
225c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"afAvailableModes",            META_TYPE_BYTE,     -1},
226c5e268c6Sopenharmony_ci    [OHOS_CONTROL_AWB_AVAILABLE_MODES -
227c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"awbAvailableModes",           META_TYPE_BYTE,     -1},
228c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAPTURE_MIRROR_SUPPORTED -
229c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"mirrorSupported",             META_TYPE_BYTE,     -1 },
230c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAPTURE_MIRROR - OHOS_DEVICE_CONTROL_START] = {"mirror",                      META_TYPE_BYTE,     1 },
231c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUS_STATE - OHOS_DEVICE_CONTROL_START] = {"focusState",                  META_TYPE_BYTE,     1 },
232c5e268c6Sopenharmony_ci    [OHOS_CONTROL_METER_POINT - OHOS_DEVICE_CONTROL_START] = {"meterPoint",                  META_TYPE_INT32,    -1},
233c5e268c6Sopenharmony_ci    [OHOS_CONTROL_METER_MODE - OHOS_DEVICE_CONTROL_START] = {"meterMode",                   META_TYPE_BYTE,     1 },
234c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EXPOSURE_STATE - OHOS_DEVICE_CONTROL_START] = {"exposureState",               META_TYPE_BYTE,     1 },
235c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUSED_POINT - OHOS_DEVICE_CONTROL_START] = {"focusedPoint", META_TYPE_INT32, -1 },
236c5e268c6Sopenharmony_ci    [OHOS_CONTROL_NIGHT_MODE_TRY_AE - OHOS_DEVICE_CONTROL_START] = {"nightModeTryAe", META_TYPE_BYTE, 1 },
237c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MANUAL_EXPOSURE_TIME - OHOS_DEVICE_CONTROL_START] = {"manualExposureTime", META_TYPE_UINT32, -1},
238c5e268c6Sopenharmony_ci    [OHOS_STATUS_CAMERA_CURRENT_FPS - OHOS_DEVICE_CONTROL_START] = {"currentFps", META_TYPE_UINT32, 1},
239c5e268c6Sopenharmony_ci    [OHOS_ABILITY_ISO_VALUES - OHOS_DEVICE_CONTROL_START] = {"supportedIsoValues", META_TYPE_INT32, -1},
240c5e268c6Sopenharmony_ci    [OHOS_CONTROL_ISO_VALUE - OHOS_DEVICE_CONTROL_START] = {"isoValues", META_TYPE_INT32, 1},
241c5e268c6Sopenharmony_ci    [OHOS_STATUS_ISO_VALUE - OHOS_DEVICE_CONTROL_START] = {"currentIsoValues", META_TYPE_INT32, 1},
242c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SENSOR_EXPOSURE_TIME_RANGE -
243c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"sensorExposureTimeRange", META_TYPE_RATIONAL, -1},
244c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SENSOR_EXPOSURE_TIME - OHOS_DEVICE_CONTROL_START] = {"sensorExposureTime", META_TYPE_RATIONAL, 1},
245c5e268c6Sopenharmony_ci    [OHOS_STATUS_SENSOR_EXPOSURE_TIME -
246c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"currentSensorExposureTime", META_TYPE_RATIONAL, 1},
247c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MOVING_PHOTO - OHOS_DEVICE_CONTROL_START] = {"movingPhoto", META_TYPE_BYTE, 1},
248c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SENSOR_WB_VALUES -
249c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"supportedSensorWbValues", META_TYPE_INT32, -1},
250c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SENSOR_WB_VALUE - OHOS_DEVICE_CONTROL_START] = {"sensorWbValue", META_TYPE_INT32, 1},
251c5e268c6Sopenharmony_ci    [OHOS_CONTROL_HIGH_QUALITY_MODE - OHOS_DEVICE_CONTROL_START] = {"highQualityMode", META_TYPE_BYTE, 1},
252c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BURST_CAPTURE -
253c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"cameraControlBurstCapture", META_TYPE_BYTE, 1},
254c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_USED_AS_POSITION -
255c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"cameraUsedAsPosition", META_TYPE_BYTE, 1},
256c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_SESSION_USAGE -
257c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"cameraSessionUsage", META_TYPE_INT32, -1},
258c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EJECT_RETRY -
259c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"ejectRetry", META_TYPE_BYTE, 1},
260c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FALL_PROTECTION -
261c5e268c6Sopenharmony_ci        OHOS_DEVICE_CONTROL_START] = {"fallProtection", META_TYPE_BYTE, 1},
262c5e268c6Sopenharmony_ci};
263c5e268c6Sopenharmony_ci
264c5e268c6Sopenharmony_cistatic item_info_t g_ohosDeviceExposure[OHOS_DEVICE_EXPOSURE_END - OHOS_DEVICE_EXPOSURE_START] = {
265c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEVICE_AVAILABLE_EXPOSUREMODES -
266c5e268c6Sopenharmony_ci        OHOS_DEVICE_EXPOSURE_START] = {"exposureAvailableModes",  META_TYPE_BYTE,          -1},
267c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EXPOSUREMODE - OHOS_DEVICE_EXPOSURE_START] = {"exposureMode",            META_TYPE_BYTE, 1 },
268c5e268c6Sopenharmony_ci    [OHOS_ABILITY_EXPOSURE_MODES - OHOS_DEVICE_EXPOSURE_START] = {"exposureSupportiveModes", META_TYPE_BYTE, -1},
269c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EXPOSURE_MODE - OHOS_DEVICE_EXPOSURE_START] = {"exMode",                  META_TYPE_BYTE, 1 },
270c5e268c6Sopenharmony_ci    [OHOS_ABILITY_METER_MODES - OHOS_DEVICE_EXPOSURE_START] = {"meterAvailableModes",     META_TYPE_BYTE, -1},
271c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_EXPOSURE_MODES -
272c5e268c6Sopenharmony_ci        OHOS_DEVICE_EXPOSURE_START] = {"sceneExposureSupportiveModes", META_TYPE_BYTE, -1},
273c5e268c6Sopenharmony_ci    [OHOS_ABILITY_EXPOSURE_TIME - OHOS_DEVICE_EXPOSURE_START] = {"abilityExposureTime", META_TYPE_INT32, -1},
274c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AE_LOCK - OHOS_DEVICE_EXPOSURE_START] = {"abilityAELock", META_TYPE_BYTE, -1},
275c5e268c6Sopenharmony_ci};
276c5e268c6Sopenharmony_ci
277c5e268c6Sopenharmony_cistatic item_info_t g_ohosDeviceFocus[OHOS_DEVICE_FOCUS_END - OHOS_DEVICE_FOCUS_START] = {
278c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEVICE_AVAILABLE_FOCUSMODES -
279c5e268c6Sopenharmony_ci        OHOS_DEVICE_FOCUS_START] = {"focusAvailablesModes", META_TYPE_BYTE,  -1},
280c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUSMODE - OHOS_DEVICE_FOCUS_START] = {"focusMode",            META_TYPE_BYTE,  1 },
281c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FOCUS_MODES - OHOS_DEVICE_FOCUS_START] = {"focusSupportiveModes", META_TYPE_BYTE,  -1},
282c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUS_MODE - OHOS_DEVICE_FOCUS_START] = {"fMode",                META_TYPE_BYTE,  1 },
283c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FOCAL_LENGTH - OHOS_DEVICE_FOCUS_START] = {"focalLength",          META_TYPE_FLOAT, 1 },
284c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_FOCUS_MODES - OHOS_DEVICE_FOCUS_START] = {"sceneFocusSupportiveModes", META_TYPE_BYTE, -1},
285c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FOCUS_ASSIST_FLASH_SUPPORTED_MODES -
286c5e268c6Sopenharmony_ci        OHOS_DEVICE_FOCUS_START] = {"focusAssistFlashSupportedModes", META_TYPE_BYTE, -1},
287c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUS_ASSIST_FLASH_SUPPORTED_MODE -
288c5e268c6Sopenharmony_ci        OHOS_DEVICE_FOCUS_START] = {"sceneFocusSupportiveModes", META_TYPE_BYTE, 1},
289c5e268c6Sopenharmony_ci    [OHOS_ABILITY_LENS_INFO_MINIMUM_FOCUS_DISTANCE -
290c5e268c6Sopenharmony_ci        OHOS_DEVICE_FOCUS_START] = {"lensInfoMinimumFocusDistance", META_TYPE_FLOAT, 1},
291c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LENS_FOCUS_DISTANCE - OHOS_DEVICE_FOCUS_START] = {"lensFocusDistance", META_TYPE_FLOAT, 1},
292c5e268c6Sopenharmony_ci    [OHOS_ABILITY_EQUIVALENT_FOCUS - OHOS_DEVICE_FOCUS_START] = {"equivalentFocus", META_TYPE_INT32, -1},
293c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FOCUS_DISTANCE -
294c5e268c6Sopenharmony_ci        OHOS_DEVICE_FOCUS_START] = {"controlFocusDistance", META_TYPE_FLOAT, 1},
295c5e268c6Sopenharmony_ci};
296c5e268c6Sopenharmony_ci
297c5e268c6Sopenharmony_cistatic item_info_t g_ohosDeviceWhite[OHOS_DEVICE_WHITE_BLANCE_END - OHOS_DEVICE_WHITE_BLANCE_START] = {
298c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AWB_MODES - OHOS_DEVICE_WHITE_BLANCE_START] = {"whiteAvailablesModes", META_TYPE_BYTE,  -1},
299c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AWB_LOCK - OHOS_DEVICE_WHITE_BLANCE_START] = {"abilityAWBLock",            META_TYPE_BYTE,  1 },
300c5e268c6Sopenharmony_ci};
301c5e268c6Sopenharmony_ci
302c5e268c6Sopenharmony_cistatic item_info_t g_ohosDeviceFlash[OHOS_DEVICE_FLASH_END - OHOS_DEVICE_FLASH_START] = {
303c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEVICE_AVAILABLE_FLASHMODES - OHOS_DEVICE_FLASH_START] = {"flashAvailablesModes", META_TYPE_BYTE, -1},
304c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FLASHMODE - OHOS_DEVICE_FLASH_START] = {"flashMode",            META_TYPE_BYTE, 1 },
305c5e268c6Sopenharmony_ci    [OHOS_ABILITY_FLASH_MODES - OHOS_DEVICE_FLASH_START] = {"flashSupportiveModes", META_TYPE_BYTE, -1},
306c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FLASH_MODE - OHOS_DEVICE_FLASH_START] = {"flaMode",              META_TYPE_BYTE, 1 },
307c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FLASH_STATE - OHOS_DEVICE_FLASH_START] = {"flashstate",           META_TYPE_BYTE, 1 },
308c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_FLASH_MODES - OHOS_DEVICE_FLASH_START] = {"sceneFlashSupportiveModes", META_TYPE_BYTE, -1},
309c5e268c6Sopenharmony_ci};
310c5e268c6Sopenharmony_ci
311c5e268c6Sopenharmony_cistatic item_info_t g_ohosDeviceZoom[OHOS_DEVICE_ZOOM_END - OHOS_DEVICE_ZOOM_START] = {
312c5e268c6Sopenharmony_ci    [OHOS_ABILITY_ZOOM_RATIO_RANGE - OHOS_DEVICE_ZOOM_START] = {"zoomRange",      META_TYPE_FLOAT, -1},
313c5e268c6Sopenharmony_ci    [OHOS_CONTROL_ZOOM_RATIO - OHOS_DEVICE_ZOOM_START] = {"zoomRatio",      META_TYPE_FLOAT, 1 },
314c5e268c6Sopenharmony_ci    [OHOS_CONTROL_ZOOM_CROP_REGION - OHOS_DEVICE_ZOOM_START] = {"zoomCropRegion", META_TYPE_INT32, -1},
315c5e268c6Sopenharmony_ci    [OHOS_ABILITY_ZOOM_CAP - OHOS_DEVICE_ZOOM_START] = {"zoomCap",        META_TYPE_INT32, -1},
316c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_ZOOM_CAP - OHOS_DEVICE_ZOOM_START] = {"sceneZoomCap",   META_TYPE_INT32, -1},
317c5e268c6Sopenharmony_ci    [OHOS_STATUS_CAMERA_CURRENT_ZOOM_RATIO -
318c5e268c6Sopenharmony_ci        OHOS_DEVICE_ZOOM_START] = {"currentStatusZoomRatio", META_TYPE_UINT32, 1},
319c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SMOOTH_ZOOM_RATIOS - OHOS_DEVICE_ZOOM_START] = {"controlZoomRatios",   META_TYPE_UINT32, -1},
320c5e268c6Sopenharmony_ci    [OHOS_CONTROL_PREPARE_ZOOM - OHOS_DEVICE_ZOOM_START] = {"controlPreZoom",   META_TYPE_BYTE, 1},
321c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_ZOOM_PERFORMANCE - OHOS_DEVICE_ZOOM_START] = {"zoomPerformance",   META_TYPE_UINT32, -1},
322c5e268c6Sopenharmony_ci
323c5e268c6Sopenharmony_ci};
324c5e268c6Sopenharmony_ci
325c5e268c6Sopenharmony_cistatic item_info_t g_ohosStreamAbility[OHOS_STREAM_ABILITY_END - OHOS_STREAM_ABILITY_START] = {
326c5e268c6Sopenharmony_ci    [OHOS_ABILITY_STREAM_AVAILABLE_BASIC_CONFIGURATIONS -
327c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"streamAvailableConfigurations", META_TYPE_INT32, -1},
328c5e268c6Sopenharmony_ci    [OHOS_STREAM_AVAILABLE_FORMATS -
329c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"streamAvailableFormats",        META_TYPE_INT32, -1},
330c5e268c6Sopenharmony_ci    [OHOS_ABILITY_STREAM_AVAILABLE_EXTEND_CONFIGURATIONS -
331c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"streamExtendConfigurations",    META_TYPE_INT32, -1},
332c5e268c6Sopenharmony_ci    [OHOS_ABILITY_STREAM_QUICK_THUMBNAIL_AVAILABLE -
333c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"streamQuickThumbnailAvailable", META_TYPE_BYTE, 1},
334c5e268c6Sopenharmony_ci    [OHOS_ABILITY_PORTRAIT_RESOLUSION -
335c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"streamPortraitResolusion", META_TYPE_INT32, -1},
336c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_STREAM_QUICK_THUMBNAIL_AVAILABLE -
337c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"sceneStreamQuickThumbnailAvailable", META_TYPE_BYTE, -1},
338c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEFERRED_IMAGE_DELIVERY -
339c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"deferredImageDeliverySupportModes", META_TYPE_BYTE, -1},
340c5e268c6Sopenharmony_ci    [OHOS_CONTROL_DEFERRED_IMAGE_DELIVERY -
341c5e268c6Sopenharmony_ci        OHOS_STREAM_ABILITY_START] = {"deferredImageDeliveryMode", META_TYPE_BYTE, -1},
342c5e268c6Sopenharmony_ci};
343c5e268c6Sopenharmony_ci
344c5e268c6Sopenharmony_cistatic item_info_t g_ohosStreamJpeg[OHOS_STREAM_JPEG_END - OHOS_STREAM_JPEG_START] = {
345c5e268c6Sopenharmony_ci    [OHOS_JPEG_GPS_COORDINATES - OHOS_STREAM_JPEG_START] = {"gpsCoordinates",          META_TYPE_DOUBLE, -1},
346c5e268c6Sopenharmony_ci    [OHOS_JPEG_GPS_PROCESSING_METHOD - OHOS_STREAM_JPEG_START] = {"gpsProcessingMethod",     META_TYPE_BYTE,   1 },
347c5e268c6Sopenharmony_ci    [OHOS_JPEG_GPS_TIMESTAMP - OHOS_STREAM_JPEG_START] = {"gpsTimestamp",            META_TYPE_INT64,  1 },
348c5e268c6Sopenharmony_ci    [OHOS_JPEG_ORIENTATION - OHOS_STREAM_JPEG_START] = {"jpegOrientation",             META_TYPE_INT32,  1 },
349c5e268c6Sopenharmony_ci    [OHOS_JPEG_QUALITY - OHOS_STREAM_JPEG_START] = {"quality",                 META_TYPE_BYTE,   1 },
350c5e268c6Sopenharmony_ci    [OHOS_JPEG_THUMBNAIL_QUALITY - OHOS_STREAM_JPEG_START] = {"thumbnailQuality",        META_TYPE_BYTE,   1 },
351c5e268c6Sopenharmony_ci    [OHOS_JPEG_THUMBNAIL_SIZE - OHOS_STREAM_JPEG_START] = {"thumbnailSize",           META_TYPE_INT32,  -1},
352c5e268c6Sopenharmony_ci    [OHOS_JPEG_AVAILABLE_THUMBNAIL_SIZES - OHOS_STREAM_JPEG_START] = {"availableThumbnailSizes", META_TYPE_INT32,  -1},
353c5e268c6Sopenharmony_ci    [OHOS_JPEG_MAX_SIZE - OHOS_STREAM_JPEG_START] = {"maxSize",                 META_TYPE_INT32,  1 },
354c5e268c6Sopenharmony_ci    [OHOS_JPEG_SIZE - OHOS_STREAM_JPEG_START] = {"size",                    META_TYPE_INT32,  1 },
355c5e268c6Sopenharmony_ci};
356c5e268c6Sopenharmony_ci
357c5e268c6Sopenharmony_cistatic item_info_t g_ohosStreamVideo[OHOS_STREAM_VIDEO_END - OHOS_STREAM_VIDEO_START] = {
358c5e268c6Sopenharmony_ci    [OHOS_ABILITY_VIDEO_STABILIZATION_MODES -
359c5e268c6Sopenharmony_ci        OHOS_STREAM_VIDEO_START] = {"videoAvailableStabilizationModes", META_TYPE_BYTE, -1},
360c5e268c6Sopenharmony_ci    [OHOS_CONTROL_VIDEO_STABILIZATION_MODE -
361c5e268c6Sopenharmony_ci        OHOS_STREAM_VIDEO_START] = {"videoStabilizationMode",           META_TYPE_BYTE, 1 },
362c5e268c6Sopenharmony_ci    [OHOS_CONTROL_VIDEO_DEBUG_SWITCH -
363c5e268c6Sopenharmony_ci        OHOS_STREAM_VIDEO_START] = {"videoDebugSwitch",           META_TYPE_BYTE, 1 },
364c5e268c6Sopenharmony_ci};
365c5e268c6Sopenharmony_ci
366c5e268c6Sopenharmony_cistatic item_info_t g_ohosPostProcess[OHOS_CAMERA_EFFECT_END - OHOS_CAMERA_EFFECT_START] {
367c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_FILTER_TYPES -
368c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"sceneAvailableFilterTypes", META_TYPE_BYTE, -1},
369c5e268c6Sopenharmony_ci    [OHOS_CONTROL_FILTER_TYPE -
370c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"filterType", META_TYPE_BYTE, 1},
371c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_PORTRAIT_EFFECT_TYPES -
372c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"sceneAvailablePotraitTypes", META_TYPE_BYTE, -1},
373c5e268c6Sopenharmony_ci    [OHOS_CONTROL_PORTRAIT_EFFECT_TYPE -
374c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"portraitType", META_TYPE_BYTE, 1},
375c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_BEAUTY_TYPES -
376c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"sceneAvailableBeautyTypes", META_TYPE_BYTE, -1},
377c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BEAUTY_TYPE -
378c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"beautyType", META_TYPE_BYTE, 1},
379c5e268c6Sopenharmony_ci    [OHOS_ABILITY_BEAUTY_AUTO_VALUES -
380c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableAutoBeautyValues", META_TYPE_BYTE, -1},
381c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BEAUTY_AUTO_VALUE -
382c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"autoBeautyValue", META_TYPE_BYTE, 1},
383c5e268c6Sopenharmony_ci    [OHOS_ABILITY_BEAUTY_FACE_SLENDER_VALUES -
384c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableFaceSlenderValues", META_TYPE_BYTE, -1},
385c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BEAUTY_FACE_SLENDER_VALUE -
386c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"faceSlenderValue", META_TYPE_BYTE, 1},
387c5e268c6Sopenharmony_ci    [OHOS_ABILITY_BEAUTY_SKIN_SMOOTH_VALUES -
388c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableSkinSmoothValues", META_TYPE_BYTE, -1},
389c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BEAUTY_SKIN_SMOOTH_VALUE -
390c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"skinSmoothValue", META_TYPE_BYTE, 1},
391c5e268c6Sopenharmony_ci    [OHOS_ABILITY_BEAUTY_SKIN_TONE_VALUES -
392c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableSkinToneValues", META_TYPE_INT32, -1},
393c5e268c6Sopenharmony_ci    [OHOS_CONTROL_BEAUTY_SKIN_TONE_VALUE -
394c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"skinToneValue", META_TYPE_INT32, 1},
395c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_MACRO_SUPPORTED -
396c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"macroSupportedValue", META_TYPE_BYTE, 1},
397c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SCENE_MACRO_CAP -
398c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"sceneMacroCap", META_TYPE_INT32, -1},
399c5e268c6Sopenharmony_ci    [OHOS_CAMERA_MACRO_STATUS -
400c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"macroStatusValue", META_TYPE_BYTE, 1},
401c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_MACRO -
402c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"macroStatusControlValue", META_TYPE_BYTE, 1},
403c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_VIRTUAL_APERTURE_RANGE -
404c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraVirtualApertureRange", META_TYPE_FLOAT, -1},
405c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_VIRTUAL_APERTURE_VALUE -
406c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraVirtualApertureControlValue", META_TYPE_FLOAT, 1},
407c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_PHYSICAL_APERTURE_RANGE -
408c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraPhysicalApertureRange", META_TYPE_FLOAT, -1},
409c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_PHYSICAL_APERTURE_VALUE -
410c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraPhysicalApertureControlValue", META_TYPE_FLOAT, 1},
411c5e268c6Sopenharmony_ci    [OHOS_STATUS_CAMERA_APERTURE_VALUE -
412c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"currentCameraApertureValue", META_TYPE_FLOAT, 1},
413c5e268c6Sopenharmony_ci    [OHOS_DEVICE_EXITCAMERA_EVENT - OHOS_CAMERA_EFFECT_START] = {"exitCameraEvent", META_TYPE_BYTE, 1},
414c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MOTION_DETECTION_CHECK_AREA -
415c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"superSlowMotionCheckArea", META_TYPE_FLOAT, -1},
416c5e268c6Sopenharmony_ci    [OHOS_STATUS_SLOW_MOTION_DETECTION -
417c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"superSlowMotionStatus", META_TYPE_BYTE, 1},
418c5e268c6Sopenharmony_ci    [OHOS_ABILITY_MOTION_DETECTION_SUPPORT -
419c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"motionDetectionSupportValue", META_TYPE_BYTE, 1},
420c5e268c6Sopenharmony_ci    [OHOS_CONTROL_MOTION_DETECTION -
421c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"motionDetectionControlValue", META_TYPE_BYTE, 1},
422c5e268c6Sopenharmony_ci    [OHOS_ABILITY_EXPOSURE_HINT_SUPPORTED - OHOS_CAMERA_EFFECT_START] = {"exposureHintSupported", META_TYPE_BYTE, 1},
423c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EXPOSURE_HINT_MODE - OHOS_CAMERA_EFFECT_START] = {"exposureHintMode", META_TYPE_BYTE, 1},
424c5e268c6Sopenharmony_ci    [OHOS_STATUS_ALGO_MEAN_Y - OHOS_CAMERA_EFFECT_START] = {"algoMeanY", META_TYPE_UINT32, 1},
425c5e268c6Sopenharmony_ci    [OHOS_STATUS_PREVIEW_PHYSICAL_CAMERA_ID -
426c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"previewPhysicalCameraId", META_TYPE_BYTE, 1},
427c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAPTURE_EXPECT_TIME -
428c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"captureExpectTime", META_TYPE_UINT32, -1},
429c5e268c6Sopenharmony_ci    [OHOS_ABILITY_EFFECT_SUGGESTION_SUPPORTED -
430c5e268c6Sopenharmony_ci	    OHOS_CAMERA_EFFECT_START] = {"effectSuggestionSupported", META_TYPE_INT32, -1},
431c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EFFECT_SUGGESTION -
432c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"effectSuggestion", META_TYPE_BYTE, 1},
433c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EFFECT_SUGGESTION_DETECTION -
434c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"effectSuggestionDetection", META_TYPE_BYTE, -1},
435c5e268c6Sopenharmony_ci    [OHOS_CAMERA_EFFECT_SUGGESTION_TYPE -
436c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"effectSuggestionType", META_TYPE_BYTE, 1},
437c5e268c6Sopenharmony_ci    [OHOS_CONTROL_EFFECT_SUGGESTION_TYPE -
438c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"controlEffectSuggestionType", META_TYPE_BYTE, 1},
439c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_PROFILE_LEVEL -
440c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableProfileLevel", META_TYPE_INT32, -1},
441c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_PREVIEW_PROFILE -
442c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availablePreviewProfile", META_TYPE_INT32, -1},
443c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_PHOTO_PROFILE -
444c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availablePhotoProfile", META_TYPE_INT32, -1},
445c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_VIDEO_PROFILE -
446c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableVideoProfile", META_TYPE_INT32, -1},
447c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_METADATA_PROFILE -
448c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableMetadataProfile", META_TYPE_INT32, -1},
449c5e268c6Sopenharmony_ci    [OHOS_ABILITY_AVAILABLE_CONFIGURATIONS -
450c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"availableConfigurations", META_TYPE_INT32, -1},
451c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CONFLICT_CONFIGURATIONS -
452c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"conflictConfigurations", META_TYPE_INT32, -1},
453c5e268c6Sopenharmony_ci    [OHOS_ABILITY_LIGHT_PAINTING_TYPE -
454c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"lightPaintingType", META_TYPE_BYTE, -1},
455c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LIGHT_PAINTING_TYPE -
456c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"controlLightPaintingType", META_TYPE_BYTE, 1},
457c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LIGHT_PAINTING_FLASH -
458c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"controlLightPaintingFlash", META_TYPE_BYTE, 1},
459c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TIME_LAPSE_INTERVAL -
460c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseInterval", META_TYPE_UINT32, 1},
461c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TIME_LAPSE_TRYAE_STATE -
462c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseTryaeState", META_TYPE_BYTE, 1},
463c5e268c6Sopenharmony_ci    [OHOS_STATUS_TIME_LAPSE_PREVIEW_TYPE -
464c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapsePreviewType", META_TYPE_BYTE, 1},
465c5e268c6Sopenharmony_ci    [OHOS_STATUS_TIME_LAPSE_TRYAE_HINT -
466c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseTryaeHint", META_TYPE_BYTE, 1},
467c5e268c6Sopenharmony_ci    [OHOS_STATUS_TIME_LAPSE_CAPTURE_INTERVAL -
468c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseCaptureInterval", META_TYPE_UINT32, 1},
469c5e268c6Sopenharmony_ci    [OHOS_STATUS_TIME_LAPSE_TRYAE_DONE -
470c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseTryaeDone", META_TYPE_BYTE, 1},
471c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TIME_LAPSE_RECORD_STATE -
472c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseRecordState", META_TYPE_BYTE, 1},
473c5e268c6Sopenharmony_ci    [OHOS_CONTROL_TIME_LAPSE_PREVIEW_TYPE -
474c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"controlTimeLapsePreviewType", META_TYPE_BYTE, 1},
475c5e268c6Sopenharmony_ci    [OHOS_ABILITY_TIME_LAPSE_INTERVAL_RANGE -
476c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"timeLapseIntervalRange", META_TYPE_UINT32, 1},
477c5e268c6Sopenharmony_ci    [OHOS_ABILITY_LCD_FLASH -
478c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"lcdFlash", META_TYPE_INT32, -1},
479c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LCD_FLASH_DETECTION -
480c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"lcdFlashDetection", META_TYPE_BYTE, 1},
481c5e268c6Sopenharmony_ci    [OHOS_CONTROL_LCD_FLASH -
482c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"controlLcdFlash", META_TYPE_BYTE, 1},
483c5e268c6Sopenharmony_ci    [OHOS_STATUS_LCD_FLASH_STATUS -
484c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"lcdFlashStatus", META_TYPE_INT32, 1},
485c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEPTH_DATA_DELIVERY -
486c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"depthDataDelivery", META_TYPE_INT32, -1},
487c5e268c6Sopenharmony_ci    [OHOS_CONTROL_DEPTH_DATA_DELIVERY_SWITCH -
488c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"depthDataDeliverySwitch", META_TYPE_BYTE, 1},
489c5e268c6Sopenharmony_ci    [OHOS_ABILITY_DEPTH_DATA_PROFILES -
490c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"depthDataProfiles", META_TYPE_INT32, -1},
491c5e268c6Sopenharmony_ci    [OHOS_CONTROL_DEPTH_DATA_ACCURACY -
492c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"depthDataAccuracy", META_TYPE_INT32, -1},
493c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_IS_RETRACTABLE -
494c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraIsRetractable", META_TYPE_BYTE, 1},
495c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_CLOSE_AFTER_SECONDS -
496c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"cameraCloseAfterSeconds", META_TYPE_UINT32, 1},
497c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAPTURE_MACRO_DEPTH_FUSION_SUPPORTED -
498c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"captureMacroDepthFusionSupported", META_TYPE_BYTE, 1},
499c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAPTURE_MACRO_DEPTH_FUSION_ZOOM_RANGE -
500c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"captureMacroDepthFussionZoomRange", META_TYPE_FLOAT, -1},
501c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAPTURE_MACRO_DEPTH_FUSION -
502c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"captureMacroDepthFusion", META_TYPE_BYTE, 1},
503c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_PORTRAIT_THEME_SUPPORTED -
504c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"isPortraitThemeTypesSupported", META_TYPE_BYTE, 1},
505c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_PORTRAIT_THEME_TYPES -
506c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"supportedPortraitThemeTypes", META_TYPE_BYTE, -1},
507c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_PORTRAIT_THEME_TYPE -
508c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"portraitThemeType", META_TYPE_BYTE, 1},
509c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_VIDEO_ROTATION_SUPPORTED -
510c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"isVideoRotationSupported", META_TYPE_BYTE, 1},
511c5e268c6Sopenharmony_ci    [OHOS_ABILITY_CAMERA_VIDEO_ROTATION -
512c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"supportedVideoRotation", META_TYPE_INT32, -1},
513c5e268c6Sopenharmony_ci    [OHOS_CONTROL_CAMERA_VIDEO_ROTATION -
514c5e268c6Sopenharmony_ci        OHOS_CAMERA_EFFECT_START] = {"videoRotation", META_TYPE_BYTE, 1},
515c5e268c6Sopenharmony_ci};
516c5e268c6Sopenharmony_ci
517c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraSecure[OHOS_CAMERA_SECURE_END - OHOS_CAMERA_SECURE_START] = {
518c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_FACE_MODE -
519c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"secureFaceMode", META_TYPE_INT32, 1},
520c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_FACE_INFO -
521c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"secureFaceInfo", META_TYPE_INT32, -1},
522c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_FACE_AUTH_RESULT -
523c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"faceAuthResult", META_TYPE_INT32, 1},
524c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_FLASH_SEQ -
525c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"secureFlashSeq", META_TYPE_INT32, -1},
526c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_IR_LED_SWITCH -
527c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"irLedSwitch", META_TYPE_BYTE, 1},
528c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SECURE_IR_LOCKAE_SWITCH -
529c5e268c6Sopenharmony_ci        OHOS_CAMERA_SECURE_START] = {"irLockaeSwitch", META_TYPE_BYTE, 1},
530c5e268c6Sopenharmony_ci};
531c5e268c6Sopenharmony_ci
532c5e268c6Sopenharmony_cistatic item_info_t g_ohosCameraXmage[OHOS_XMAGE_COLOR_MODES_END - OHOS_XMAGE_COLOR_MODES_START] = {
533c5e268c6Sopenharmony_ci    [OHOS_ABILITY_SUPPORTED_COLOR_MODES -
534c5e268c6Sopenharmony_ci        OHOS_XMAGE_COLOR_MODES_START] = {"cameraXmageSupportMode",  META_TYPE_BYTE,  1},
535c5e268c6Sopenharmony_ci    [OHOS_CONTROL_SUPPORTED_COLOR_MODES -
536c5e268c6Sopenharmony_ci        OHOS_XMAGE_COLOR_MODES_START] = {"cameraXmageControlMode",  META_TYPE_BYTE,  1},
537c5e268c6Sopenharmony_ci};
538c5e268c6Sopenharmony_ci
539c5e268c6Sopenharmony_ci
540c5e268c6Sopenharmony_ciconst static item_info_t *g_ohosItemInfo[OHOS_SECTION_COUNT] = {
541c5e268c6Sopenharmony_ci    g_ohosCameraProperties,
542c5e268c6Sopenharmony_ci    g_ohosCameraSensor,
543c5e268c6Sopenharmony_ci    g_ohosCameraSensorInfo,
544c5e268c6Sopenharmony_ci    g_ohosCameraStatistics,
545c5e268c6Sopenharmony_ci    g_ohosCameraControl,
546c5e268c6Sopenharmony_ci    g_ohosDeviceExposure,
547c5e268c6Sopenharmony_ci    g_ohosDeviceFocus,
548c5e268c6Sopenharmony_ci    g_ohosDeviceWhite,
549c5e268c6Sopenharmony_ci    g_ohosDeviceFlash,
550c5e268c6Sopenharmony_ci    g_ohosDeviceZoom,
551c5e268c6Sopenharmony_ci    g_ohosStreamAbility,
552c5e268c6Sopenharmony_ci    g_ohosStreamJpeg,
553c5e268c6Sopenharmony_ci    g_ohosStreamVideo,
554c5e268c6Sopenharmony_ci    g_ohosPostProcess,
555c5e268c6Sopenharmony_ci    g_ohosCameraSecure,
556c5e268c6Sopenharmony_ci    g_ohosCameraXmage,
557c5e268c6Sopenharmony_ci};
558c5e268c6Sopenharmony_ci} // namespace Camera
559c5e268c6Sopenharmony_ci#endif /* CAMERA_METADATA_ITEM_INFO_H */
560