1 /* 2 * Copyright (c) 2019 Rockchip Corporation 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 18 #ifndef _ISP20_MODULE_DBG_H_ 19 #define _ISP20_MODULE_DBG_H_ 20 21 #define RUNTIME_MODULE_DEBUG 22 #ifdef RUNTIME_MODULE_DEBUG 23 #include <stdint.h> 24 25 extern unsigned long long g_disable_isp_modules_en; 26 extern unsigned long long g_disable_isp_modules_cfg_update; 27 extern int g_disable_ispp_modules_en; 28 extern int g_disable_ispp_modules_cfg_update; 29 extern int g_bypass_exp_params; 30 extern int g_bypass_isp_params; 31 extern int g_bypass_ispp_params; 32 extern int g_apply_init_params_only; 33 extern uint64_t g_disable_algo_user_api_mask; 34 extern void get_dbg_force_disable_mods_env(); 35 extern int get_rkaiq_runtime_dbg(); 36 #define CHECK_USER_API_ENABLE(mask) \ 37 if (g_disable_algo_user_api_mask & (1ULL << mask)) { \ 38 ALOGE("algo module index %d user api disabled !", mask); \ 39 return XCAM_RETURN_NO_ERROR; \ 40 } 41 42 #endif 43 44 #endif 45