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_DE_TYPES_H
17 #define __IA_CSS_DE_TYPES_H
18 
19 /* @file
20 * CSS-API header file for Demosaic (bayer-to-YCgCo) parameters.
21 */
22 
23 /* Demosaic (bayer-to-YCgCo) configuration.
24  *
25  *  ISP block: DE1
26  *  ISP1: DE1 is used.
27  * (ISP2: DE2 is used.)
28  */
29 struct ia_css_de_config {
30 	ia_css_u0_16 pixelnoise; /** Pixel noise used in moire elimination.
31 				u0.16, [0,65535],
32 				default 0, ineffective 0 */
33 	ia_css_u0_16 c1_coring_threshold; /** Coring threshold for C1.
34 				This is the same as nr_config.threshold_cb.
35 				u0.16, [0,65535],
36 				default 128(0.001953125), ineffective 0 */
37 	ia_css_u0_16 c2_coring_threshold; /** Coring threshold for C2.
38 				This is the same as nr_config.threshold_cr.
39 				u0.16, [0,65535],
40 				default 128(0.001953125), ineffective 0 */
41 };
42 
43 #endif /* __IA_CSS_DE_TYPES_H */
44