1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef __IA_CSS_WB_TYPES_H
17#define __IA_CSS_WB_TYPES_H
18
19/* @file
20* CSS-API header file for White Balance parameters.
21*/
22
23/* White Balance configuration (Gain Adjust).
24 *
25 *  ISP block: WB1
26 *  ISP1: WB1 is used.
27 *  ISP2: WB1 is used.
28 */
29struct ia_css_wb_config {
30	u32 integer_bits; /** Common exponent of gains.
31				u8.0, [0,3],
32				default 1, ineffective 1 */
33	u32 gr;	/** Significand of Gr gain.
34				u[integer_bits].[16-integer_bits], [0,65535],
35				default/ineffective 32768(u1.15, 1.0) */
36	u32 r;	/** Significand of R gain.
37				u[integer_bits].[16-integer_bits], [0,65535],
38				default/ineffective 32768(u1.15, 1.0) */
39	u32 b;	/** Significand of B gain.
40				u[integer_bits].[16-integer_bits], [0,65535],
41				default/ineffective 32768(u1.15, 1.0) */
42	u32 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 */
48