Merge tag 'drm-misc-fixes-2017-12-14' of git://anongit.freedesktop.org/drm/drm-misc
[sfrench/cifs-2.6.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / ctc / ctc2 / ia_css_ctc2_types.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef __IA_CSS_CTC2_TYPES_H
16 #define __IA_CSS_CTC2_TYPES_H
17
18 /* Chroma Tone Control configuration.
19 *
20 *  ISP block: CTC2 (CTC by polygonal approximation)
21 * (ISP1: CTC1 (CTC by look-up table) is used.)
22 *  ISP2: CTC2 is used.
23 *  ISP261: CTC2 (CTC by Fast Approximate Distance)
24 */
25 struct ia_css_ctc2_config {
26
27         /** Gains by Y(Luma) at Y =0.0,Y_X1, Y_X2, Y_X3, Y_X4 and Y_X5
28         *   --default/ineffective value: 4096(0.5f)
29         */
30         int32_t y_y0;
31         int32_t y_y1;
32         int32_t y_y2;
33         int32_t y_y3;
34         int32_t y_y4;
35         int32_t y_y5;
36         /* 1st-4th  kneepoints by Y(Luma) --default/ineffective value:n/a
37         *   requirement: 0.0 < y_x1 < y_x2 <y _x3 < y_x4 < 1.0
38         */
39         int32_t y_x1;
40         int32_t y_x2;
41         int32_t y_x3;
42         int32_t y_x4;
43         /* Gains by UV(Chroma) under threholds uv_x0 and uv_x1
44         *   --default/ineffective value: 4096(0.5f)
45         */
46         int32_t uv_y0;
47         int32_t uv_y1;
48         /* Minimum and Maximum Thresholds by UV(Chroma)- uv_x0 and uv_x1
49         *   --default/ineffective value: n/a
50         */
51         int32_t uv_x0;
52         int32_t uv_x1;
53         };
54
55 #endif /* __IA_CSS_CTC2_TYPES_H */