1 /* 2 * 3 * SPDX-License-Identifier: GPL-2.0 4 * 5 * Copyright (C) 2011-2018 ARM or its affiliates 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; version 2. 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * for more details. 14 * You should have received a copy of the GNU General Public License along 15 * with this program; if not, write to the Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 * 18 */ 19 20 #ifndef _ACAMERA_COMMAND_API_H_ 21 #define _ACAMERA_COMMAND_API_H_ 22 #include "acamera_types.h" 23 24 25 // ------------------------------------------------------------------------------ // 26 // ERROR REASONS 27 // ------------------------------------------------------------------------------ // 28 #define ERR_UNKNOWN 0x00000000 29 #define ERR_BAD_ARGUMENT 0x00000001 30 #define ERR_WRONG_SIZE 0x00000002 31 32 33 // ------------------------------------------------------------------------------ // 34 // WDR MODES 35 // ------------------------------------------------------------------------------ // 36 #define WDR_MODE_LINEAR 0x00000000 37 #define WDR_MODE_NATIVE 0x00000001 38 #define WDR_MODE_FS_LIN 0x00000002 39 #define WDR_MODE_COUNT 0x00000003 40 41 42 // ------------------------------------------------------------------------------ // 43 // STATIC CALIBRATION VALUES 44 // ------------------------------------------------------------------------------ // 45 #define CALIBRATION_LIGHT_SRC 0x00000000 46 #define CALIBRATION_RG_POS 0x00000001 47 #define CALIBRATION_BG_POS 0x00000002 48 #define CALIBRATION_MESH_RGBG_WEIGHT 0x00000003 49 #define CALIBRATION_MESH_LS_WEIGHT 0x00000004 50 #define CALIBRATION_MESH_COLOR_TEMPERATURE 0x00000005 51 #define CALIBRATION_WB_STRENGTH 0x00000006 52 #define CALIBRATION_SKY_LUX_TH 0x00000007 53 #define CALIBRATION_CT_RG_POS_CALC 0x00000008 54 #define CALIBRATION_CT_BG_POS_CALC 0x00000009 55 #define CALIBRATION_COLOR_TEMP 0x0000000A 56 #define CALIBRATION_CT65POS 0x0000000B 57 #define CALIBRATION_CT40POS 0x0000000C 58 #define CALIBRATION_CT30POS 0x0000000D 59 #define CALIBRATION_EVTOLUX_EV_LUT 0x0000000E 60 #define CALIBRATION_EVTOLUX_LUX_LUT 0x0000000F 61 #define CALIBRATION_BLACK_LEVEL_R 0x00000010 62 #define CALIBRATION_BLACK_LEVEL_GR 0x00000011 63 #define CALIBRATION_BLACK_LEVEL_GB 0x00000012 64 #define CALIBRATION_BLACK_LEVEL_B 0x00000013 65 #define CALIBRATION_STATIC_WB 0x00000014 66 #define CALIBRATION_MT_ABSOLUTE_LS_A_CCM 0x00000015 67 #define CALIBRATION_MT_ABSOLUTE_LS_D40_CCM 0x00000016 68 #define CALIBRATION_MT_ABSOLUTE_LS_D50_CCM 0x00000017 69 #define CALIBRATION_SHADING_LS_A_R 0x00000018 70 #define CALIBRATION_SHADING_LS_A_G 0x00000019 71 #define CALIBRATION_SHADING_LS_A_B 0x0000001A 72 #define CALIBRATION_SHADING_LS_TL84_R 0x0000001B 73 #define CALIBRATION_SHADING_LS_TL84_G 0x0000001C 74 #define CALIBRATION_SHADING_LS_TL84_B 0x0000001D 75 #define CALIBRATION_SHADING_LS_D65_R 0x0000001E 76 #define CALIBRATION_SHADING_LS_D65_G 0x0000001F 77 #define CALIBRATION_SHADING_LS_D65_B 0x00000020 78 #define CALIBRATION_AWB_WARMING_LS_A 0x00000021 79 #define CALIBRATION_AWB_WARMING_LS_D50 0x00000022 80 #define CALIBRATION_AWB_WARMING_LS_D75 0x00000023 81 #define CALIBRATION_NOISE_PROFILE 0x00000024 82 #define CALIBRATION_DEMOSAIC 0x00000025 83 #define CALIBRATION_GAMMA 0x00000026 84 #define CALIBRATION_IRIDIX_RGB2REC709 0x00000027 85 #define CALIBRATION_IRIDIX_REC709TORGB 0x00000028 86 #define CALIBRATION_IRIDIX_ASYMMETRY 0x00000029 87 #define CALIBRATION_AWB_SCENE_PRESETS 0x0000002A 88 #define CALIBRATION_SHADING_RADIAL_CENTRE_AND_MULT 0x0000002B 89 #define CALIBRATION_GAMMA_FE_0 0x0000002C 90 #define CALIBRATION_GAMMA_FE_1 0x0000002D 91 #define CALIBRATION_WDR_NP_LUT 0x0000002E 92 #define CALIBRATION_CA_FILTER_MEM 0x0000002F 93 #define CALIBRATION_CA_CORRECTION 0x00000030 94 #define CALIBRATION_CA_CORRECTION_MEM 0x00000031 95 #define CALIBRATION_LUT3D_MEM 0x00000032 96 #define CALIBRATION_DECOMPANDER0_MEM 0x00000033 97 #define CALIBRATION_DECOMPANDER1_MEM 0x00000034 98 #define CALIBRATION_SHADING_RADIAL_R 0x00000035 99 #define CALIBRATION_SHADING_RADIAL_G 0x00000036 100 #define CALIBRATION_SHADING_RADIAL_B 0x00000037 101 102 103 // ------------------------------------------------------------------------------ // 104 // DYNAMIC CALIBRATION VALUES 105 // ------------------------------------------------------------------------------ // 106 #define CALIBRATION_STITCHING_LM_MED_NOISE_INTENSITY 0x00000038 107 #define AWB_COLOUR_PREFERENCE 0x00000039 108 #define CALIBRATION_AWB_MIX_LIGHT_PARAMETERS 0x0000003A 109 #define CALIBRATION_PF_RADIAL_LUT 0x0000003B 110 #define CALIBRATION_PF_RADIAL_PARAMS 0x0000003C 111 #define CALIBRATION_SINTER_RADIAL_LUT 0x0000003D 112 #define CALIBRATION_SINTER_RADIAL_PARAMS 0x0000003E 113 #define CALIBRATION_AWB_BG_MAX_GAIN 0x0000003F 114 #define CALIBRATION_IRIDIX8_STRENGTH_DK_ENH_CONTROL 0x00000040 115 #define CALIBRATION_CMOS_CONTROL 0x00000041 116 #define CALIBRATION_STATUS_INFO 0x00000042 117 #define CALIBRATION_AUTO_LEVEL_CONTROL 0x00000043 118 #define CALIBRATION_DP_SLOPE 0x00000044 119 #define CALIBRATION_DP_THRESHOLD 0x00000045 120 #define CALIBRATION_STITCHING_LM_MOV_MULT 0x00000046 121 #define CALIBRATION_STITCHING_LM_NP 0x00000047 122 #define CALIBRATION_STITCHING_MS_MOV_MULT 0x00000048 123 #define CALIBRATION_STITCHING_MS_NP 0x00000049 124 #define CALIBRATION_STITCHING_SVS_MOV_MULT 0x0000004A 125 #define CALIBRATION_STITCHING_SVS_NP 0x0000004B 126 #define CALIBRATION_EVTOLUX_PROBABILITY_ENABLE 0x0000004C 127 #define CALIBRATION_AWB_AVG_COEF 0x0000004D 128 #define CALIBRATION_IRIDIX_AVG_COEF 0x0000004E 129 #define CALIBRATION_IRIDIX_STRENGTH_MAXIMUM 0x0000004F 130 #define CALIBRATION_IRIDIX_MIN_MAX_STR 0x00000050 131 #define CALIBRATION_IRIDIX_EV_LIM_FULL_STR 0x00000051 132 #define CALIBRATION_IRIDIX_EV_LIM_NO_STR 0x00000052 133 #define CALIBRATION_AE_CORRECTION 0x00000053 134 #define CALIBRATION_AE_EXPOSURE_CORRECTION 0x00000054 135 #define CALIBRATION_SINTER_STRENGTH 0x00000055 136 #define CALIBRATION_SINTER_STRENGTH1 0x00000056 137 #define CALIBRATION_SINTER_THRESH1 0x00000057 138 #define CALIBRATION_SINTER_THRESH4 0x00000058 139 #define CALIBRATION_SINTER_INTCONFIG 0x00000059 140 #define CALIBRATION_SHARP_ALT_D 0x0000005A 141 #define CALIBRATION_SHARP_ALT_UD 0x0000005B 142 #define CALIBRATION_SHARP_ALT_DU 0x0000005C 143 #define CALIBRATION_DEMOSAIC_NP_OFFSET 0x0000005D 144 #define CALIBRATION_MESH_SHADING_STRENGTH 0x0000005E 145 #define CALIBRATION_SATURATION_STRENGTH 0x0000005F 146 #define CALIBRATION_CCM_ONE_GAIN_THRESHOLD 0x00000060 147 #define CALIBRATION_RGB2YUV_CONVERSION 0x00000061 148 #define CALIBRATION_AE_ZONE_WGHT_HOR 0x00000062 149 #define CALIBRATION_AE_ZONE_WGHT_VER 0x00000063 150 #define CALIBRATION_AWB_ZONE_WGHT_HOR 0x00000064 151 #define CALIBRATION_AWB_ZONE_WGHT_VER 0x00000065 152 #define CALIBRATION_SHARPEN_FR 0x00000066 153 #define CALIBRATION_SHARPEN_DS1 0x00000067 154 #define CALIBRATION_CUSTOM_SETTINGS_CONTEXT 0x00000068 155 #define CALIBRATION_CMOS_EXPOSURE_PARTITION_LUTS 0x00000069 156 #define CALIBRATION_TEMPER_STRENGTH 0x0000006A 157 #define CALIBRATION_NP_LUT_MEAN 0x0000006B 158 #define CALIBRATION_SCALER_H_FILTER 0x0000006C 159 #define CALIBRATION_SCALER_V_FILTER 0x0000006D 160 #define CALIBRATION_SINTER_STRENGTH_MC_CONTRAST 0x0000006E 161 #define CALIBRATION_EXPOSURE_RATIO_ADJUSTMENT 0x0000006F 162 #define CALIBRATION_CNR_UV_DELTA12_SLOPE 0x00000070 163 #define CALIBRATION_FS_MC_OFF 0x00000071 164 #define CALIBRATION_SINTER_SAD 0x00000072 165 #define CALIBRATION_AF_LMS 0x00000073 166 #define CALIBRATION_AF_ZONE_WGHT_HOR 0x00000074 167 #define CALIBRATION_AF_ZONE_WGHT_VER 0x00000075 168 #define CALIBRATION_AE_CONTROL_HDR_TARGET 0x00000076 169 #define CALIBRATION_AE_CONTROL 0x00000077 170 #define CALIBRATION_GAMMA_EV1 0x00000078 171 #define CALIBRATION_GAMMA_EV2 0x00000079 172 #define CALIBRATION_GAMMA_THRESHOLD 0x0000007A 173 #define CALIBRATION_DEFOG_CONTROL 0x0000007B 174 #define CALIBRATION_DEMOSAIC_RGB_EXT_CONTROL 0x0000007C 175 #define CALIBRATION_FR_SHARPEN_EXT_CONTROL 0x0000007D 176 #define CALIBRATION_DS_SHARPEN_EXT_CONTROL 0x0000007E 177 #define CALIBRATION_CNR_EXT_CONTROL 0x0000007F 178 #define CALIBRATION_IRIDIX_EXT_CONTROL 0x00000080 179 #define CALIBRATION_SQRT_EXT_CONTROL 0x00000081 180 #define CALIBRATION_SQUARE_BE_EXT_CONTROL 0x00000082 181 182 // ------------------------------------------------------------------------------ // 183 // DYNAMIC STATE VALUES 184 // ------------------------------------------------------------------------------ // 185 186 #define CALIBRATION_TOTAL_SIZE 131 187 //------------------FILE TRANSFER------------------- 188 189 190 // ------------------------------------------------------------------------------ // 191 // COMMAND TYPE LIST 192 // ------------------------------------------------------------------------------ // 193 #define TGENERAL 0x00000000 194 #define TSELFTEST 0x00000001 195 #define TSENSOR 0x00000002 196 #define TSYSTEM 0x00000003 197 #define TISP_MODULES 0x00000004 198 #define TSTATUS 0x00000005 199 #define TIMAGE 0x00000006 200 #define TALGORITHMS 0x00000007 201 #define TSCENE_MODES 0x00000008 202 #define TREGISTERS 0x00000009 203 #define TAML_SCALER 0x0000000a 204 205 // ------------------------------------------------------------------------------ // 206 // BUFFER TYPES 207 // ------------------------------------------------------------------------------ // 208 #define STATIC_CALIBRATIONS_ID 0x00000000 209 #define DYNAMIC_CALIBRATIONS_ID 0x00000001 210 #define FILE_TRANSFER_ID 0x00000002 211 #define DYNAMIC_STATE_ID 0x00000003 212 213 214 // ------------------------------------------------------------------------------ // 215 // COMMAND LIST 216 // ------------------------------------------------------------------------------ // 217 #define CONTEXT_NUMBER 0x00000000 218 #define ACTIVE_CONTEXT 0x00000001 219 #define FW_REVISION 0x00000002 220 #define SENSOR_STREAMING 0x00000003 221 #define SENSOR_SUPPORTED_PRESETS 0x00000004 222 #define SENSOR_PRESET 0x00000005 223 #define SENSOR_WDR_MODE 0x00000006 224 #define SENSOR_FPS 0x00000007 225 #define SENSOR_WIDTH 0x00000008 226 #define SENSOR_HEIGHT 0x00000009 227 #define SENSOR_EXPOSURES 0x0000000A 228 #define SENSOR_INFO_PRESET 0x0000000B 229 #define SENSOR_INFO_WDR_MODE 0x0000000C 230 #define SENSOR_INFO_FPS 0x0000000D 231 #define SENSOR_INFO_WIDTH 0x0000000E 232 #define SENSOR_INFO_HEIGHT 0x0000000F 233 #define SENSOR_INFO_EXPOSURES 0x00000010 234 #define SYSTEM_LOGGER_LEVEL 0x00000011 235 #define SYSTEM_LOGGER_MASK 0x00000012 236 #define BUFFER_DATA_TYPE 0x00000013 237 #define TEST_PATTERN_ENABLE_ID 0x00000014 238 #define TEST_PATTERN_MODE_ID 0x00000015 239 #define TEMPER_MODE_ID 0x00000016 240 #define SYSTEM_FREEZE_FIRMWARE 0x00000017 241 #define SYSTEM_MANUAL_EXPOSURE 0x00000018 242 #define SYSTEM_MANUAL_EXPOSURE_RATIO 0x00000019 243 #define SYSTEM_MANUAL_INTEGRATION_TIME 0x0000001A 244 #define SYSTEM_MANUAL_MAX_INTEGRATION_TIME 0x0000001B 245 #define SYSTEM_MANUAL_SENSOR_ANALOG_GAIN 0x0000001C 246 #define SYSTEM_MANUAL_SENSOR_DIGITAL_GAIN 0x0000001D 247 #define SYSTEM_MANUAL_ISP_DIGITAL_GAIN 0x0000001E 248 #define SYSTEM_MANUAL_AWB 0x0000001F 249 #define SYSTEM_MANUAL_SATURATION 0x00000020 250 #define SYSTEM_EXPOSURE 0x00000021 251 #define SYSTEM_EXPOSURE_RATIO 0x00000022 252 #define SYSTEM_MAX_EXPOSURE_RATIO 0x00000023 253 #define SYSTEM_INTEGRATION_TIME 0x00000024 254 #define SYSTEM_LONG_INTEGRATION_TIME 0x00000025 255 #define SYSTEM_SHORT_INTEGRATION_TIME 0x00000026 256 #define SYSTEM_MAX_INTEGRATION_TIME 0x00000027 257 #define SYSTEM_SENSOR_ANALOG_GAIN 0x00000028 258 #define SYSTEM_MAX_SENSOR_ANALOG_GAIN 0x00000029 259 #define SYSTEM_SENSOR_DIGITAL_GAIN 0x0000002A 260 #define SYSTEM_MAX_SENSOR_DIGITAL_GAIN 0x0000002B 261 #define SYSTEM_ISP_DIGITAL_GAIN 0x0000002C 262 #define SYSTEM_MAX_ISP_DIGITAL_GAIN 0x0000002D 263 #define SYSTEM_AWB_RED_GAIN 0x0000002E 264 #define SYSTEM_AWB_BLUE_GAIN 0x0000002F 265 #define SYSTEM_SATURATION_TARGET 0x00000030 266 #define SYSTEM_ANTIFLICKER_ENABLE 0x00000031 267 #define SYSTEM_ANTI_FLICKER_FREQUENCY 0x00000032 268 #define CALIBRATION_UPDATE 0x00000033 269 #define ISP_MODULES_MANUAL_IRIDIX 0x00000034 270 #define ISP_MODULES_MANUAL_SINTER 0x00000035 271 #define ISP_MODULES_MANUAL_TEMPER 0x00000036 272 #define ISP_MODULES_MANUAL_AUTO_LEVEL 0x00000037 273 #define ISP_MODULES_MANUAL_FRAME_STITCH 0x00000038 274 #define ISP_MODULES_MANUAL_RAW_FRONTEND 0x00000039 275 #define ISP_MODULES_MANUAL_BLACK_LEVEL 0x0000003A 276 #define ISP_MODULES_MANUAL_SHADING 0x0000003B 277 #define ISP_MODULES_MANUAL_DEMOSAIC 0x0000003C 278 #define ISP_MODULES_MANUAL_CNR 0x0000003D 279 #define ISP_MODULES_MANUAL_SHARPEN 0x0000003E 280 #define STATUS_INFO_EXPOSURE_LOG2_ID 0x0000003F 281 #define STATUS_INFO_GAIN_ONES_ID 0x00000040 282 #define STATUS_INFO_GAIN_LOG2_ID 0x00000041 283 #define STATUS_INFO_AWB_MIX_LIGHT_CONTRAST 0x00000042 284 #define STATUS_INFO_AF_LENS_POS 0x00000043 285 #define STATUS_INFO_AF_FOCUS_VALUE 0x00000044 286 #define DMA_READER_OUTPUT_ID 0x00000045 287 #define FR_FORMAT_BASE_PLANE_ID 0x00000046 288 #define DS1_FORMAT_BASE_PLANE_ID 0x00000047 289 #define ORIENTATION_VFLIP_ID 0x00000048 290 #define ORIENTATION_HFLIP_ID 0x00000049 291 #define IMAGE_RESIZE_TYPE_ID 0x0000004A 292 #define IMAGE_RESIZE_ENABLE_ID 0x0000004B 293 #define IMAGE_RESIZE_WIDTH_ID 0x0000004C 294 #define IMAGE_RESIZE_HEIGHT_ID 0x0000004D 295 #define IMAGE_CROP_XOFFSET_ID 0x0000004E 296 #define IMAGE_CROP_YOFFSET_ID 0x0000004F 297 #define AF_LENS_STATUS 0x00000050 298 #define AF_MODE_ID 0x00000051 299 #define AF_RANGE_LOW_ID 0x00000052 300 #define AF_RANGE_HIGH_ID 0x00000053 301 #define AF_ROI_ID 0x00000054 302 #define AF_MANUAL_CONTROL_ID 0x00000055 303 #define AE_MODE_ID 0x00000056 304 #define AE_SPLIT_PRESET_ID 0x00000057 305 #define AE_GAIN_ID 0x00000058 306 #define AE_EXPOSURE_ID 0x00000059 307 #define AE_ROI_ID 0x0000005A 308 #define AE_COMPENSATION_ID 0x0000005B 309 #define AWB_MODE_ID 0x0000005C 310 #define AWB_TEMPERATURE_ID 0x0000005D 311 #define ANTIFLICKER_MODE_ID 0x0000005E 312 #define COLOR_MODE_ID 0x0000005F 313 #define BRIGHTNESS_STRENGTH_ID 0x00000060 314 #define CONTRAST_STRENGTH_ID 0x00000061 315 #define SATURATION_STRENGTH_ID 0x00000062 316 #define SHARPENING_STRENGTH_ID 0x00000063 317 #define REGISTERS_ADDRESS_ID 0x00000064 318 #define REGISTERS_SIZE_ID 0x00000065 319 #define REGISTERS_SOURCE_ID 0x00000066 320 #define REGISTERS_VALUE_ID 0x00000067 321 #define SCALER_WIDTH 0x00000068 322 #define SCALER_HEIGHT 0x00000069 323 #define SCALER_OUTPUT_MODE 0x00000070 324 #define SCALER_STREAMING_ON 0x00000071 325 #define SCALER_STREAMING_OFF 0x00000072 326 #define SENSOR_NAME 0x00000073 327 #define SENSOR_TESTPATTERN 0x00000074 328 #define SENSOR_IR_CUT 0x00000075 329 #define SCALER_SRC_WIDTH 0x00000076 330 #define SCALER_SRC_HEIGHT 0x00000077 331 #define AE_ZONE_WEIGHT 0x00000078 332 #define AWB_ZONE_WEIGHT 0x00000079 333 #define SENSOR_HWID 0x00000080 334 #define HUE_THETA_ID 0x00000081 335 #define SNR_MANUAL_ID 0x00000082 336 #define SNR_STRENGTH_ID 0x00000083 337 #define TNR_MANUAL_ID 0x00000084 338 #define TNR_OFFSET_ID 0x00000085 339 #define SENSOR_WDRMODE_ID 0x00000086 340 #define DEFOG_MODE_ID 0x00000087 341 #define DEFOG_RATIO_DELTA 0x00000088 342 #define DEFOG_BLACK_PERCENTAGE 0x00000089 343 #define DEFOG_WHITE_PERCENTAGE 0x0000008A 344 #define SENSOR_ANTIFLICKER_ID 0x0000008B 345 346 // ------------------------------------------------------------------------------ // 347 // VALUE LIST 348 // ------------------------------------------------------------------------------ // 349 #define OFF 0x00000000 350 #define ON 0x00000001 351 #define DEBUG 0x00000005 352 #define INFO 0x00000006 353 #define NOTICE 0x00000007 354 #define WARNING 0x00000008 355 #define ERROR 0x00000009 356 #define CRITICAL 0x0000000A 357 #define NOTHING 0x0000000B 358 #define TEMPER3_MODE 0x0000000C 359 #define TEMPER2_MODE 0x0000000D 360 #define UPDATE 0x0000000E 361 #define DONE 0x0000000F 362 #define DMA_READER_OUT_FR 0x00000010 363 #define DMA_READER_OUT_DS 0x00000011 364 #define DMA_DISABLE 0x00000012 365 #define RGB32 0x00000013 366 #define A2R10G10B10 0x00000014 367 #define RGB565 0x00000015 368 #define RGB24 0x00000016 369 #define GEN32 0x00000017 370 #define RAW16 0x00000018 371 #define RAW12 0x00000019 372 #define AYUV 0x0000001A 373 #define Y410 0x0000001B 374 #define YUY2 0x0000001C 375 #define UYVY 0x0000001D 376 #define Y210 0x0000001E 377 #define NV12_YUV 0x0000001F 378 #define NV12_YVU 0x00000020 379 #define YV12_YU 0x00000021 380 #define YV12_YV 0x00000022 381 #define ENABLE 0x00000023 382 #define DISABLE 0x00000024 383 #define CROP_FR 0x00000025 384 #define CROP_DS 0x00000026 385 #define SCALER 0x00000027 386 #define RUN 0x00000028 387 #define LENS_SUCCESS 0x00000029 388 #define LENS_FAILED 0x0000002A 389 #define AF_AUTO_SINGLE 0x0000002B 390 #define AF_AUTO_CONTINUOUS 0x0000002C 391 #define AF_MANUAL 0x0000002D 392 #define AF_CALIBRATION 0x0000002E 393 #define AE_AUTO 0x0000002F 394 #define AE_FULL_MANUAL 0x00000030 395 #define AE_MANUAL_GAIN 0x00000031 396 #define AE_MANUAL_EXPOSURE_TIME 0x00000032 397 #define AE_SPLIT_BALANCED 0x00000033 398 #define AE_SPLIT_INTEGRATION_PRIORITY 0x00000034 399 #define AWB_AUTO 0x00000035 400 #define AWB_MANUAL 0x00000036 401 #define AWB_DAY_LIGHT 0x00000037 402 #define AWB_CLOUDY 0x00000038 403 #define AWB_INCANDESCENT 0x00000039 404 #define AWB_FLOURESCENT 0x0000003A 405 #define AWB_TWILIGHT 0x0000003B 406 #define AWB_SHADE 0x0000003C 407 #define AWB_WARM_FLOURESCENT 0x0000003D 408 #define NORMAL 0x0000003E 409 #define BLACK_AND_WHITE 0x0000003F 410 #define NEGATIVE 0x00000040 411 #define SEPIA 0x00000041 412 #define VIVID 0x00000042 413 #define SENSOR 0x00000043 414 #define LENS 0x00000044 415 #define ISP 0x00000045 416 #define NV12_GREY 0x00000046 417 #define DEFOG_DISABLE 0x00000047 418 #define DEFOG_ONLY 0x00000048 419 #define DEFOG_BLEND 0x00000049 420 // ------------------------------------------------------------------------------ // 421 // RETURN VALUES 422 // ------------------------------------------------------------------------------ // 423 #define SUCCESS 0x00000000 424 #define NOT_IMPLEMENTED 0x00000001 425 #define NOT_SUPPORTED 0x00000002 426 #define NOT_PERMITTED 0x00000003 427 #define NOT_EXISTS 0x00000004 428 #define FAIL 0x00000005 429 #define IMPLEMENTED 0x00000006 430 431 432 // ------------------------------------------------------------------------------ // 433 // DIRECTION VALUES 434 // ------------------------------------------------------------------------------ // 435 #define COMMAND_SET 0x00000000 436 #define COMMAND_GET 0x00000001 437 #define API_VERSION 0x00000064 438 439 440 // ------------------------------------------------------------------------------ // 441 // SET/GET FUNCTION 442 // ------------------------------------------------------------------------------ // 443 //set command: ret = acamera_command( ctx_id, TALGORITHMS, AF_MODE, AF_AUTO, COMMAND_SET, &RET_VALUE); 444 //get command: ret = acamera_command( ctx_id, TALGORITHMS, AF_MODE, AF_AUTO, COMMAND_GET, &RET_VALUE); 445 446 //The main api function to control and change the firmware state 447 uint8_t acamera_command( uint32_t ctx_id, uint8_t command_type, uint8_t command, uint32_t value, uint8_t direction, uint32_t *ret_value); 448 449 //The function to change firmware internal calibrations. 450 uint8_t acamera_api_calibration( uint32_t ctx_id, uint8_t type, uint8_t id, uint8_t direction, void* data, uint32_t data_size, uint32_t* ret_value); 451 452 uint8_t acamera_api_dma_buffer( uint32_t ctx_id, uint8_t type, void* data, uint32_t data_size, uint32_t* ret_value, uint32_t index); 453 void acamera_api_dma_buff_queue_reset(uint32_t ctx_id, uint8_t type); 454 uint8_t acamera_api_set_fps(uint32_t ctx_id, uint8_t type, uint32_t c_fps, uint32_t t_fps); 455 void acamera_api_dma_buff_get_next(uint32_t ctx_id, uint8_t type); 456 457 #endif//_ACAMERA_COMMAND_API_H_ 458