1 // SPDX-License-Identifier: GPL-2.0 2 /* Release Version: irci_stable_candrpv_0415_20150521_0458 */ 3 /* Release Version: irci_ecr-master_20150911_0724 */ 4 /* 5 * Support for Intel Camera Imaging ISP subsystem. 6 * Copyright (c) 2015, Intel Corporation. 7 * 8 * This program is free software; you can redistribute it and/or modify it 9 * under the terms and conditions of the GNU General Public License, 10 * version 2, as published by the Free Software Foundation. 11 * 12 * This program is distributed in the hope it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 * more details. 16 */ 17 18 #include "ia_css_hdr.host.h" 19 20 void 21 ia_css_hdr_init_config( 22 struct sh_css_isp_hdr_params *to, 23 const struct ia_css_hdr_config *from, 24 unsigned int size) 25 { 26 int i; 27 (void)size; 28 29 for (i = 0; i < HDR_NUM_INPUT_FRAMES - 1; i++) { 30 to->irradiance.match_shift[i] = from->irradiance.match_shift[i]; 31 to->irradiance.match_mul[i] = from->irradiance.match_mul[i]; 32 to->irradiance.thr_low[i] = from->irradiance.thr_low[i]; 33 to->irradiance.thr_high[i] = from->irradiance.thr_high[i]; 34 to->irradiance.thr_coeff[i] = from->irradiance.thr_coeff[i]; 35 to->irradiance.thr_shift[i] = from->irradiance.thr_shift[i]; 36 } 37 to->irradiance.test_irr = from->irradiance.test_irr; 38 to->irradiance.weight_bpp = from->irradiance.weight_bpp; 39 40 to->deghost.test_deg = from->deghost.test_deg; 41 to->exclusion.test_excl = from->exclusion.test_excl; 42 } 43