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_TDF_TYPES_H
16 #define __IA_CSS_TDF_TYPES_H
19 * CSS-API header file for Transform Domain Filter parameters.
22 #include "type_support.h"
24 /** Transform Domain Filter configuration
26 * \brief TDF public parameters.
27 * \details Struct with all parameters for the TDF kernel that can be set
30 * ISP2.6.1: TDF is used.
32 struct ia_css_tdf_config {
33 int32_t thres_flat_table[64]; /**< Final optimized strength table of NR for flat region. */
34 int32_t thres_detail_table[64]; /**< Final optimized strength table of NR for detail region. */
35 int32_t epsilon_0; /**< Coefficient to control variance for dark area (for flat region). */
36 int32_t epsilon_1; /**< Coefficient to control variance for bright area (for flat region). */
37 int32_t eps_scale_text; /**< Epsilon scaling coefficient for texture region. */
38 int32_t eps_scale_edge; /**< Epsilon scaling coefficient for edge region. */
39 int32_t sepa_flat; /**< Threshold to judge flat (edge < m_Flat_thre). */
40 int32_t sepa_edge; /**< Threshold to judge edge (edge > m_Edge_thre). */
41 int32_t blend_flat; /**< Blending ratio at flat region. */
42 int32_t blend_text; /**< Blending ratio at texture region. */
43 int32_t blend_edge; /**< Blending ratio at edge region. */
44 int32_t shading_gain; /**< Gain of Shading control. */
45 int32_t shading_base_gain; /**< Base Gain of Shading control. */
46 int32_t local_y_gain; /**< Gain of local luminance control. */
47 int32_t local_y_base_gain; /**< Base gain of local luminance control. */
48 int32_t rad_x_origin; /**< Initial x coord. for radius computation. */
49 int32_t rad_y_origin; /**< Initial y coord. for radius computation. */
52 #endif /* __IA_CSS_TDF_TYPES_H */