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_AMFNR_HW_V1_H_ 21 #define _RK_AIQ_TYPE_AMFNR_HW_V1_H_ 22 #include "rk_aiq_comm.h" 23 24 25 26 typedef struct RK_MFNR_Fix_V1_s{ 27 28 unsigned char tnr_en; 29 unsigned char mode; 30 unsigned char opty_en; 31 unsigned char optc_en; 32 unsigned char gain_en; 33 34 unsigned char pk0_y; 35 unsigned char pk1_y; 36 unsigned char pk0_c; 37 unsigned char pk1_c; 38 39 unsigned short glb_gain_cur; 40 unsigned short glb_gain_nxt; 41 unsigned short glb_gain_cur_div; 42 unsigned char glb_gain_cur_sqrt; 43 44 unsigned char sigma_x[16]; 45 unsigned short sigma_y[17]; 46 47 unsigned short luma_curve[6]; 48 49 unsigned short txt_th0_y; 50 unsigned short txt_th1_y; 51 unsigned short txt_th0_c; 52 unsigned short txt_th1_c; 53 unsigned short txt_thy_dlt; 54 unsigned short txt_thc_dlt; 55 56 unsigned char gfcoef_y0[6]; 57 unsigned char gfcoef_y1[3]; 58 unsigned char gfcoef_y2[3]; 59 unsigned char gfcoef_y3[3]; 60 61 unsigned char gfcoef_yg0[6]; 62 unsigned char gfcoef_yg1[3]; 63 unsigned char gfcoef_yg2[3]; 64 unsigned char gfcoef_yg3[3]; 65 66 unsigned char gfcoef_yl0[6]; 67 unsigned char gfcoef_yl1[3]; 68 unsigned char gfcoef_yl2[3]; 69 70 unsigned char gfcoef_cg0[6]; 71 unsigned char gfcoef_cg1[3]; 72 unsigned char gfcoef_cg2[3]; 73 74 unsigned char gfcoef_cl0[6]; 75 unsigned char gfcoef_cl1[3]; 76 77 unsigned short scale_yg[4]; 78 unsigned short scale_yl[3]; 79 unsigned short scale_cg[3]; 80 unsigned short scale_y2cg[3]; 81 unsigned short scale_cl[2]; 82 unsigned short scale_y2cl[3]; 83 84 unsigned char weight_y[3]; 85 86 }RK_MFNR_Fix_V1_t; 87 88 89 #endif 90 91 92 93