2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
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.
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
15 #ifndef __IA_CSS_BNR2_2_TYPES_H
16 #define __IA_CSS_BNR2_2_TYPES_H
19 * CSS-API header file for Bayer Noise Reduction parameters.
22 #include "type_support.h" /* int32_t */
24 /** Bayer Noise Reduction 2.2 configuration
26 * \brief BNR2_2 public parameters.
27 * \details Struct with all parameters for the BNR2.2 kernel that can be set
30 * ISP2.6.1: BNR2.2 is used.
32 struct ia_css_bnr2_2_config {
34 /** Directional variance gain for R/G/B components in dark region */
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;
46 /** Non-Directional variance gain for R/G/B components in dark region */
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;
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*/
71 #endif /* __IA_CSS_BNR2_2_TYPES_H */