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_CTC2_TYPES_H
8 #define __IA_CSS_CTC2_TYPES_H
9 
10 /* Chroma Tone Control configuration.
11 *
12 *  ISP block: CTC2 (CTC by polygonal approximation)
13 * (ISP1: CTC1 (CTC by look-up table) is used.)
14 *  ISP2: CTC2 is used.
15 *  ISP261: CTC2 (CTC by Fast Approximate Distance)
16 */
17 struct ia_css_ctc2_config {
18 	/** Gains by Y(Luma) at Y =0.0,Y_X1, Y_X2, Y_X3, Y_X4 and Y_X5
19 	*   --default/ineffective value: 4096(0.5f)
20 	*/
21 	s32 y_y0;
22 	s32 y_y1;
23 	s32 y_y2;
24 	s32 y_y3;
25 	s32 y_y4;
26 	s32 y_y5;
27 	/* 1st-4th  kneepoints by Y(Luma) --default/ineffective value:n/a
28 	*   requirement: 0.0 < y_x1 < y_x2 <y _x3 < y_x4 < 1.0
29 	*/
30 	s32 y_x1;
31 	s32 y_x2;
32 	s32 y_x3;
33 	s32 y_x4;
34 	/* Gains by UV(Chroma) under threholds uv_x0 and uv_x1
35 	*   --default/ineffective value: 4096(0.5f)
36 	*/
37 	s32 uv_y0;
38 	s32 uv_y1;
39 	/* Minimum and Maximum Thresholds by UV(Chroma)- uv_x0 and uv_x1
40 	*   --default/ineffective value: n/a
41 	*/
42 	s32 uv_x0;
43 	s32 uv_x1;
44 };
45 
46 #endif /* __IA_CSS_CTC2_TYPES_H */
47