ata: pata_pdc2027x: Replace mdelay with msleep
[sfrench/cifs-2.6.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / tnr / tnr3 / ia_css_tnr3_types.h
1 #ifdef ISP2401
2 /**
3 Support for Intel Camera Imaging ISP subsystem.
4 Copyright (c) 2010 - 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_TNR3_TYPES_H
17 #define _IA_CSS_TNR3_TYPES_H
18
19 /** @file
20 * CSS-API header file for Temporal Noise Reduction v3 (TNR3) kernel
21 */
22
23 /**
24  * \brief Number of piecewise linear segments.
25  * \details The parameters to TNR3 are specified as a piecewise linear segment.
26  * The number of such segments is fixed at 3.
27  */
28 #define TNR3_NUM_SEGMENTS    3
29
30 /** Temporal Noise Reduction v3 (TNR3) configuration.
31  * The parameter to this kernel is fourfold
32  * 1. Three piecewise linear graphs (one for each plane) with three segments
33  * each. Each line graph has Luma values on the x axis and sigma values for
34  * each plane on the y axis. The three linear segments may have a different
35  * slope and the point of Luma value which where the slope may change is called
36  * a "Knee" point. As there are three such segments, four points need to be
37  * specified each on the Luma axis and the per plane Sigma axis. On the Luma
38  * axis two points are fixed (namely 0 and maximum luma value - depending on
39  * ISP bit depth). The other two points are the points where the slope may
40  * change its value. These two points are called knee points. The four points on
41  * the per plane sigma axis are also specified at the interface.
42  * 2. One rounding adjustment parameter for each plane
43  * 3. One maximum feedback threshold value for each plane
44  * 4. Selection of the reference frame buffer to be used for noise reduction.
45  */
46 struct ia_css_tnr3_kernel_config {
47         unsigned int maxfb_y;                        /**< Maximum Feedback Gain for Y */
48         unsigned int maxfb_u;                        /**< Maximum Feedback Gain for U */
49         unsigned int maxfb_v;                        /**< Maximum Feedback Gain for V */
50         unsigned int round_adj_y;                    /**< Rounding Adjust for Y */
51         unsigned int round_adj_u;                    /**< Rounding Adjust for U */
52         unsigned int round_adj_v;                    /**< Rounding Adjust for V */
53         unsigned int knee_y[TNR3_NUM_SEGMENTS - 1];  /**< Knee points */
54         unsigned int sigma_y[TNR3_NUM_SEGMENTS + 1]; /**< Standard deviation for Y at points Y0, Y1, Y2, Y3 */
55         unsigned int sigma_u[TNR3_NUM_SEGMENTS + 1]; /**< Standard deviation for U at points U0, U1, U2, U3 */
56         unsigned int sigma_v[TNR3_NUM_SEGMENTS + 1]; /**< Standard deviation for V at points V0, V1, V2, V3 */
57         unsigned int ref_buf_select;                 /**< Selection of the reference buffer */
58 };
59
60 #endif
61 #endif