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_cnr2.host.h"
21 const struct ia_css_cnr_config default_cnr_config = {
34 struct sh_css_isp_cnr_params *to,
35 const struct ia_css_cnr_config *from,
39 to->coring_u = from->coring_u;
40 to->coring_v = from->coring_v;
41 to->sense_gain_vy = from->sense_gain_vy;
42 to->sense_gain_vu = from->sense_gain_vu;
43 to->sense_gain_vv = from->sense_gain_vv;
44 to->sense_gain_hy = from->sense_gain_hy;
45 to->sense_gain_hu = from->sense_gain_hu;
46 to->sense_gain_hv = from->sense_gain_hv;
51 const struct sh_css_isp_cnr_params *cnr,
55 ia_css_cnr_debug_dtrace(
56 const struct ia_css_cnr_config *config,
59 ia_css_debug_dtrace(level,
60 "config.coring_u=%d, config.coring_v=%d, "
61 "config.sense_gain_vy=%d, config.sense_gain_hy=%d, "
62 "config.sense_gain_vu=%d, config.sense_gain_hu=%d, "
63 "config.sense_gain_vv=%d, config.sense_gain_hv=%d\n",
64 config->coring_u, config->coring_v,
65 config->sense_gain_vy, config->sense_gain_hy,
66 config->sense_gain_vu, config->sense_gain_hu,
67 config->sense_gain_vv, config->sense_gain_hv);
71 ia_css_init_cnr2_state(
72 void/*struct sh_css_isp_cnr_vmem_state*/ *state,
75 memset(state, 0, size);