1 /* 2 * rk_aiq_asharp_algo_v33.h 3 * 4 * Copyright (c) 2022 Rockchip Corporation 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 */ 19 20 #ifndef __RK_AIQ_ASHRP_ALGO_SHARP_V33_H__ 21 #define __RK_AIQ_ASHRP_ALGO_SHARP_V33_H__ 22 23 #define LOG2(x) (log((double)x) / log((double)2)) 24 25 #include "RkAiqCalibDbTypes.h" 26 #include "base/xcam_log.h" 27 #include "math.h" 28 #include "rk_aiq_comm.h" 29 #include "rk_aiq_types_asharp_algo_prvt_v33.h" 30 #include "stdio.h" 31 #include "stdlib.h" 32 #include "string.h" 33 34 RKAIQ_BEGIN_DECLARE 35 36 Asharp_result_V33_t sharp_select_params_by_ISO_V33(void* pParams_v, void* pSelect_v, 37 Asharp_ExpInfo_V33_t* pExpInfo); 38 39 Asharp_result_V33_t sharp_fix_transfer_V33(void* pSelect_v, RK_SHARP_Fix_V33_t* pFix, 40 rk_aiq_sharp_strength_v33_t* pStrength, 41 Asharp_ExpInfo_V33_t* pExpInfo); 42 43 Asharp_result_V33_t sharp_fix_printf_V33(RK_SHARP_Fix_V33_t* pFix); 44 45 Asharp_result_V33_t sharp_get_setting_by_name_json_V33(void* pCalibdbV2_v, char* name, 46 int* tuning_idx); 47 48 Asharp_result_V33_t sharp_init_params_json_V33(void* pSharpParams_v, void* pCalibdbV2_v, 49 int tuning_idx); 50 51 Asharp_result_V33_t sharp_config_setting_param_json_V33(void* pParams_v, void* pCalibdbV2_v, 52 char* param_mode, char* snr_name); 53 54 RKAIQ_END_DECLARE 55 #endif