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_DE2_TYPES_H
17 #define __IA_CSS_DE2_TYPES_H
18 
19 /* @file
20 * CSS-API header file for Demosaicing parameters.
21 */
22 
23 /* Eigen Color Demosaicing configuration.
24  *
25  *  ISP block: DE2
26  * (ISP1: DE1 is used.)
27  *  ISP2: DE2 is used.
28  */
29 struct ia_css_ecd_config {
30 	u16 zip_strength;	/** Strength of zipper reduction.
31 				u0.13, [0,8191],
32 				default 5489(0.67), ineffective 0 */
33 	u16 fc_strength;	/** Strength of false color reduction.
34 				u0.13, [0,8191],
35 				default 8191(almost 1.0), ineffective 0 */
36 	u16 fc_debias;	/** Prevent color change
37 				     on noise or Gr/Gb imbalance.
38 				u0.13, [0,8191],
39 				default 0, ineffective 0 */
40 };
41 
42 #endif /* __IA_CSS_DE2_TYPES_H */
43