1 /* 2 * Support for Intel Camera Imaging ISP subsystem. 3 * Copyright (c) 2015, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 */ 14 15 #ifndef __IA_CSS_DP_TYPES_H 16 #define __IA_CSS_DP_TYPES_H 17 18 /* @file 19 * CSS-API header file for Defect Pixel Correction (DPC) parameters. 20 */ 21 22 /* Defect Pixel Correction configuration. 23 * 24 * ISP block: DPC1 (DPC after WB) 25 * DPC2 (DPC before WB) 26 * ISP1: DPC1 is used. 27 * ISP2: DPC2 is used. 28 */ 29 struct ia_css_dp_config { 30 ia_css_u0_16 threshold; /** The threshold of defect pixel correction, 31 representing the permissible difference of 32 intensity between one pixel and its 33 surrounding pixels. Smaller values result 34 in more frequent pixel corrections. 35 u0.16, [0,65535], 36 default 8192, ineffective 65535 */ 37 ia_css_u8_8 gain; /** The sensitivity of mis-correction. ISP will 38 miss a lot of defects if the value is set 39 too large. 40 u8.8, [0,65535], 41 default 4096, ineffective 65535 */ 42 u32 gr; /* unsigned <integer_bits>.<16-integer_bits> */ 43 u32 r; /* unsigned <integer_bits>.<16-integer_bits> */ 44 u32 b; /* unsigned <integer_bits>.<16-integer_bits> */ 45 u32 gb; /* unsigned <integer_bits>.<16-integer_bits> */ 46 }; 47 48 #endif /* __IA_CSS_DP_TYPES_H */ 49