1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __IA_CSS_WB_TYPES_H 8 #define __IA_CSS_WB_TYPES_H 9 10 /* @file 11 * CSS-API header file for White Balance parameters. 12 */ 13 14 /* White Balance configuration (Gain Adjust). 15 * 16 * ISP block: WB1 17 * ISP1: WB1 is used. 18 * ISP2: WB1 is used. 19 */ 20 struct ia_css_wb_config { 21 u32 integer_bits; /** Common exponent of gains. 22 u8.0, [0,3], 23 default 1, ineffective 1 */ 24 u32 gr; /** Significand of Gr gain. 25 u[integer_bits].[16-integer_bits], [0,65535], 26 default/ineffective 32768(u1.15, 1.0) */ 27 u32 r; /** Significand of R gain. 28 u[integer_bits].[16-integer_bits], [0,65535], 29 default/ineffective 32768(u1.15, 1.0) */ 30 u32 b; /** Significand of B gain. 31 u[integer_bits].[16-integer_bits], [0,65535], 32 default/ineffective 32768(u1.15, 1.0) */ 33 u32 gb; /** Significand of Gb gain. 34 u[integer_bits].[16-integer_bits], [0,65535], 35 default/ineffective 32768(u1.15, 1.0) */ 36 }; 37 38 #endif /* __IA_CSS_WB_TYPES_H */ 39