xref: /linux/drivers/staging/media/atomisp/pci/isp/kernels/dpc2/ia_css_dpc2_types.h (revision c771600c6af14749609b49565ffb4cac2959710d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef __IA_CSS_DPC2_TYPES_H
8 #define __IA_CSS_DPC2_TYPES_H
9 
10 /* @file
11 * CSS-API header file for Defect Pixel Correction 2 (DPC2) parameters.
12 */
13 
14 #include "type_support.h"
15 
16 /**@{*/
17 /* Floating point constants for different metrics. */
18 #define METRIC1_ONE_FP	BIT(12)
19 #define METRIC2_ONE_FP	BIT(5)
20 #define METRIC3_ONE_FP	BIT(12)
21 #define WBGAIN_ONE_FP	BIT(9)
22 /**@}*/
23 
24 /**@{*/
25 /* Defect Pixel Correction 2 configuration.
26  *
27  * \brief DPC2 public parameters.
28  * \details Struct with all parameters for the Defect Pixel Correction 2
29  * kernel that can be set from the CSS API.
30  *
31  * ISP block: DPC1 (DPC after WB)
32  *            DPC2 (DPC before WB)
33  * ISP1: DPC1 is used.
34  * ISP2: DPC2 is used.
35  *
36  */
37 struct ia_css_dpc2_config {
38 	/**@{*/
39 	s32 metric1;
40 	s32 metric2;
41 	s32 metric3;
42 	s32 wb_gain_gr;
43 	s32 wb_gain_r;
44 	s32 wb_gain_b;
45 	s32 wb_gain_gb;
46 	/**@}*/
47 };
48 
49 /**@}*/
50 
51 #endif /* __IA_CSS_DPC2_TYPES_H */
52