xfrm: Reinject transport-mode packets through tasklet
[sfrench/cifs-2.6.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / bnr / bnr2_2 / ia_css_bnr2_2_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_BNR2_2_TYPES_H
16 #define __IA_CSS_BNR2_2_TYPES_H
17
18 /** @file
19 * CSS-API header file for Bayer Noise Reduction parameters.
20 */
21
22 #include "type_support.h" /* int32_t */
23
24 /** Bayer Noise Reduction 2.2 configuration
25  *
26  * \brief BNR2_2 public parameters.
27  * \details Struct with all parameters for the BNR2.2 kernel that can be set
28  * from the CSS API.
29  *
30  * ISP2.6.1: BNR2.2 is used.
31  */
32 struct ia_css_bnr2_2_config {
33         /**@{*/
34         /** Directional variance gain for R/G/B components in dark region */
35         int32_t d_var_gain_r;
36         int32_t d_var_gain_g;
37         int32_t d_var_gain_b;
38         /**@}*/
39         /**@{*/
40         /** Slope of Directional variance gain between dark and bright region */
41         int32_t d_var_gain_slope_r;
42         int32_t d_var_gain_slope_g;
43         int32_t d_var_gain_slope_b;
44         /**@}*/
45         /**@{*/
46         /** Non-Directional variance gain for R/G/B components in dark region */
47         int32_t n_var_gain_r;
48         int32_t n_var_gain_g;
49         int32_t n_var_gain_b;
50         /**@}*/
51         /**@{*/
52         /** Slope of Non-Directional variance gain between dark and bright region */
53         int32_t n_var_gain_slope_r;
54         int32_t n_var_gain_slope_g;
55         int32_t n_var_gain_slope_b;
56         /**@}*/
57
58         int32_t dir_thres;              /**< Threshold for directional filtering */
59         int32_t dir_thres_w;            /**< Threshold width for directional filtering */
60         int32_t var_offset_coef;        /**< Variance offset coefficient */
61         int32_t dir_gain;               /**< Gain for directional coefficient */
62         int32_t detail_gain;            /**< Gain for low contrast texture control */
63         int32_t detail_gain_divisor;    /**< Gain divisor for low contrast texture control */
64         int32_t detail_level_offset;    /**< Bias value for low contrast texture control */
65         int32_t d_var_th_min;           /**< Minimum clipping value for directional variance*/
66         int32_t d_var_th_max;           /**< Maximum clipping value for diretional variance*/
67         int32_t n_var_th_min;           /**< Minimum clipping value for non-directional variance*/
68         int32_t n_var_th_max;           /**< Maximum clipping value for non-directional variance*/
69 };
70
71 #endif /* __IA_CSS_BNR2_2_TYPES_H */