]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/wb/wb_1.0/ia_css_wb_types.h
staging/atomisp: Add support for the Intel IPU v2
[mirror_ubuntu-hirsute-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / wb / wb_1.0 / ia_css_wb_types.h
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
18 /** @file
19 * CSS-API header file for White Balance parameters.
20 */
21
22
23 /** White Balance configuration (Gain Adjust).
24 *
25 * ISP block: WB1
26 * ISP1: WB1 is used.
27 * ISP2: WB1 is used.
28 */
29 struct ia_css_wb_config {
30 uint32_t integer_bits; /**< Common exponent of gains.
31 u8.0, [0,3],
32 default 1, ineffective 1 */
33 uint32_t gr; /**< Significand of Gr gain.
34 u[integer_bits].[16-integer_bits], [0,65535],
35 default/ineffective 32768(u1.15, 1.0) */
36 uint32_t r; /**< Significand of R gain.
37 u[integer_bits].[16-integer_bits], [0,65535],
38 default/ineffective 32768(u1.15, 1.0) */
39 uint32_t b; /**< Significand of B gain.
40 u[integer_bits].[16-integer_bits], [0,65535],
41 default/ineffective 32768(u1.15, 1.0) */
42 uint32_t gb; /**< Significand of Gb gain.
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 */