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 #include "ia_css_types.h"
16 #include "sh_css_defs.h"
17 #include "ia_css_debug.h"
19 #include "ia_css_de2.host.h"
21 const struct ia_css_ecd_config default_ecd_config = {
22 (1 << (ISP_VEC_ELEMBITS - 1)) * 2 / 3, /* 2/3 */
23 (1 << (ISP_VEC_ELEMBITS - 1)) - 1, /* 1.0 */
29 struct sh_css_isp_ecd_params *to,
30 const struct ia_css_ecd_config *from,
34 to->zip_strength = from->zip_strength;
35 to->fc_strength = from->fc_strength;
36 to->fc_debias = from->fc_debias;
41 const struct sh_css_isp_ecd_params *ecd,
45 ia_css_ecd_debug_dtrace(
46 const struct ia_css_ecd_config *config,
49 ia_css_debug_dtrace(level,
50 "config.zip_strength=%d, "
51 "config.fc_strength=%d, config.fc_debias=%d\n",
53 config->fc_strength, config->fc_debias);