1 /* 2 * Copyright (c) 2019-2022 Rockchip Eletronics Co., Ltd. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __CALIBDBV2_GAIN_HEADER_V2_H__ 18 #define __CALIBDBV2_GAIN_HEADER_V2_H__ 19 20 #include "rk_aiq_comm.h" 21 22 RKAIQ_BEGIN_DECLARE 23 24 ///////////////////////////gain v1////////////////////////////////////// 25 26 27 typedef struct CalibDbV2_GainV2_T_ISO_s { 28 // M4_NUMBER_MARK_DESC("iso", "f32", M4_RANGE(50, 204800), "50", M4_DIGIT(1), "index2") 29 float iso; 30 31 // M4_NUMBER_DESC("hdr_gain_scale_s", "f32", M4_RANGE(0, 128.0), "1.0", M4_DIGIT(2)) 32 float hdr_gain_scale_s; 33 34 // M4_NUMBER_DESC("hdr_gain_scale_m", "f32", M4_RANGE(0, 128.0), "1.0", M4_DIGIT(2)) 35 float hdr_gain_scale_m; 36 37 } CalibDbV2_GainV2_T_ISO_t; 38 39 40 typedef struct CalibDbV2_GainV2_T_Set_s { 41 // M4_STRING_MARK_DESC("SNR_Mode", M4_SIZE(1,1), M4_RANGE(0, 64), "LSNR",M4_DYNAMIC(0), "index1") 42 char *SNR_Mode; 43 // M4_STRING_DESC("Sensor_Mode", M4_SIZE(1,1), M4_RANGE(0, 64), "lcg", M4_DYNAMIC(0)) 44 char *Sensor_Mode; 45 // M4_STRUCT_LIST_DESC("Tuning_ISO", M4_SIZE_DYNAMIC, "double_index_list") 46 CalibDbV2_GainV2_T_ISO_t *Tuning_ISO; 47 int Tuning_ISO_len; 48 } CalibDbV2_GainV2_T_Set_t; 49 50 typedef struct CalibDbV2_GainV2_Tuning_s { 51 // M4_BOOL_DESC("hdrgain_ctrl_enable", "1") 52 bool hdrgain_ctrl_enable; 53 // M4_STRUCT_LIST_DESC("Setting", M4_SIZE_DYNAMIC, "double_index_list") 54 CalibDbV2_GainV2_T_Set_t *Setting; 55 int Setting_len; 56 } CalibDbV2_GainV2_Tuning_t; 57 58 59 typedef struct CalibDbV2_GainV2_s { 60 // M4_STRING_DESC("Version", M4_SIZE(1,1), M4_RANGE(0, 64), "V2", M4_DYNAMIC(0)) 61 char *Version; 62 // M4_STRUCT_DESC("TuningPara", "normal_ui_style") 63 CalibDbV2_GainV2_Tuning_t TuningPara; 64 } CalibDbV2_GainV2_t; 65 66 RKAIQ_END_DECLARE 67 68 #endif 69