1 /* 2 *rk_aiq_types_alsc_hw.h 3 * 4 * Copyright (c) 2019 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_TYPE_AYNR_HW_V2_H_ 21 #define _RK_AIQ_TYPE_AYNR_HW_V2_H_ 22 #include "rk_aiq_comm.h" 23 24 25 26 typedef struct RK_YNR_Fix_V2_s{ 27 28 // YNR_2700_GLOBAL_CTRL (0x0000) 29 uint8_t ynr_debug_en; 30 uint8_t ynr_gate_dis; 31 uint8_t ynr_thumb_mix_cur_en; 32 uint8_t ynr_global_gain_alpha; 33 uint8_t ynr_global_gain; 34 uint8_t ynr_flt1x1_bypass_sel; 35 uint8_t ynr_sft5x5_bypass; 36 uint8_t ynr_flt1x1_bypass; 37 uint8_t ynr_lgft3x3_bypass; 38 uint8_t ynr_lbft5x5_bypass; 39 uint8_t ynr_bft3x3_bypass; 40 uint8_t ynr_en; 41 42 43 // YNR_2700_RNR_MAX_R (0x0004) 44 uint16_t ynr_rnr_max_r; 45 46 // YNR_2700_LOWNR_CTRL0 (0x0010) 47 uint16_t ynr_low_bf_inv[2]; 48 49 // YNR_2700_LOWNR_CTRL1 (0x0014) 50 uint8_t ynr_low_peak_supress; 51 uint16_t ynr_low_thred_adj; 52 53 // YNR_2700_LOWNR_CTRL2 (0x0018) 54 uint16_t ynr_low_dist_adj; 55 uint16_t ynr_low_edge_adj_thresh; 56 57 // YNR_2700_LOWNR_CTRL3 (0x001c) 58 uint8_t ynr_low_bi_weight; 59 uint8_t ynr_low_weight; 60 uint16_t ynr_low_center_weight; 61 62 // YNR_2700_HIGHNR_CTRL0 (0x0020) 63 uint8_t ynr_hi_min_adj; 64 uint16_t ynr_high_thred_adj; 65 66 // YNR_2700_HIGHNR_CTRL1 (0x0024) 67 uint8_t ynr_high_retain_weight; 68 uint8_t ynr_hi_edge_thed; 69 70 // YNR_2700_HIGHNR_BASE_FILTER_WEIGHT (0x0028) 71 uint8_t ynr_base_filter_weight[3]; 72 73 // YNR_2700_GAUSS1_COEFF (0x0030) 74 uint16_t ynr_low_gauss1_coeff[3]; 75 76 // YNR_2700_GAUSS2_COEFF (0x0034) 77 uint16_t ynr_low_gauss2_coeff[3]; 78 79 // YNR_2700_DIRECTION_W_0_3 (0x0038 - 0x003c) 80 uint8_t ynr_direction_weight[8]; 81 82 // YNR_2700_SGM_DX_0_1 (0x0040 - 0x0060) 83 uint16_t ynr_luma_points_x[17]; 84 85 // YNR_2700_LSGM_Y_0_1 (0x0070- 0x0090) 86 uint16_t ynr_lsgm_y[17]; 87 88 // YNR_2700_HSGM_Y_0_1 (0x00a0- 0x00c0) 89 uint16_t ynr_hsgm_y[17]; 90 91 // YNR_2700_RNR_STRENGTH03 (0x00d0- 0x00e0) 92 uint16_t ynr_rnr_strength[17]; 93 94 }RK_YNR_Fix_V2_t; 95 96 97 #endif 98 99 100 101