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_OB2_TYPES_H
17 #define __IA_CSS_OB2_TYPES_H
18 
19 /* @file
20 * CSS-API header file for Optical Black algorithm parameters.
21 */
22 
23 /* Optical Black configuration
24  *
25  * ISP2.6.1: OB2 is used.
26  */
27 
28 #include "ia_css_frac.h"
29 
30 struct ia_css_ob2_config {
31 	ia_css_u0_16 level_gr;    /** Black level for GR pixels.
32 					u0.16, [0,65535],
33 					default/ineffective 0 */
34 	ia_css_u0_16  level_r;     /** Black level for R pixels.
35 					u0.16, [0,65535],
36 					default/ineffective 0 */
37 	ia_css_u0_16  level_b;     /** Black level for B pixels.
38 					u0.16, [0,65535],
39 					default/ineffective 0 */
40 	ia_css_u0_16  level_gb;    /** Black level for GB pixels.
41 					u0.16, [0,65535],
42 					default/ineffective 0 */
43 };
44 
45 #endif /* __IA_CSS_OB2_TYPES_H */
46