]>
Commit | Line | Data |
---|---|---|
a49d2536 AC |
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_WB_TYPES_H | |
16 | #define __IA_CSS_WB_TYPES_H | |
17 | ||
d929fb4e | 18 | /* @file |
a49d2536 AC |
19 | * CSS-API header file for White Balance parameters. |
20 | */ | |
21 | ||
22 | ||
d929fb4e | 23 | /* White Balance configuration (Gain Adjust). |
a49d2536 AC |
24 | * |
25 | * ISP block: WB1 | |
26 | * ISP1: WB1 is used. | |
27 | * ISP2: WB1 is used. | |
28 | */ | |
29 | struct ia_css_wb_config { | |
d929fb4e | 30 | uint32_t integer_bits; /** Common exponent of gains. |
a49d2536 AC |
31 | u8.0, [0,3], |
32 | default 1, ineffective 1 */ | |
d929fb4e | 33 | uint32_t gr; /** Significand of Gr gain. |
a49d2536 AC |
34 | u[integer_bits].[16-integer_bits], [0,65535], |
35 | default/ineffective 32768(u1.15, 1.0) */ | |
d929fb4e | 36 | uint32_t r; /** Significand of R gain. |
a49d2536 AC |
37 | u[integer_bits].[16-integer_bits], [0,65535], |
38 | default/ineffective 32768(u1.15, 1.0) */ | |
d929fb4e | 39 | uint32_t b; /** Significand of B gain. |
a49d2536 AC |
40 | u[integer_bits].[16-integer_bits], [0,65535], |
41 | default/ineffective 32768(u1.15, 1.0) */ | |
d929fb4e | 42 | uint32_t gb; /** Significand of Gb gain. |
a49d2536 AC |
43 | u[integer_bits].[16-integer_bits], [0,65535], |
44 | default/ineffective 32768(u1.15, 1.0) */ | |
45 | }; | |
46 | ||
47 | #endif /* __IA_CSS_WB_TYPES_H */ |