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 #ifndef __IA_CSS_HDR_PARAMS_H 19 #define __IA_CSS_HDR_PARAMS_H 20 21 #include "type_support.h" 22 23 #define HDR_NUM_INPUT_FRAMES (3) 24 25 /* HDR irradiance map parameters on ISP. */ 26 struct sh_css_hdr_irradiance_params { 27 s32 test_irr; 28 s32 match_shift[HDR_NUM_INPUT_FRAMES - 29 1]; /* Histogram matching shift parameter */ 30 s32 match_mul[HDR_NUM_INPUT_FRAMES - 31 1]; /* Histogram matching multiplication parameter */ 32 s32 thr_low[HDR_NUM_INPUT_FRAMES - 33 1]; /* Weight map soft threshold low bound parameter */ 34 s32 thr_high[HDR_NUM_INPUT_FRAMES - 35 1]; /* Weight map soft threshold high bound parameter */ 36 s32 thr_coeff[HDR_NUM_INPUT_FRAMES - 37 1]; /* Soft threshold linear function coefficient */ 38 s32 thr_shift[HDR_NUM_INPUT_FRAMES - 39 1]; /* Soft threshold precision shift parameter */ 40 s32 weight_bpp; /* Weight map bits per pixel */ 41 }; 42 43 /* HDR deghosting parameters on ISP */ 44 struct sh_css_hdr_deghost_params { 45 s32 test_deg; 46 }; 47 48 /* HDR exclusion parameters on ISP */ 49 struct sh_css_hdr_exclusion_params { 50 s32 test_excl; 51 }; 52 53 /* HDR ISP parameters */ 54 struct sh_css_isp_hdr_params { 55 struct sh_css_hdr_irradiance_params irradiance; 56 struct sh_css_hdr_deghost_params deghost; 57 struct sh_css_hdr_exclusion_params exclusion; 58 }; 59 60 #endif /* __IA_CSS_HDR_PARAMS_H */ 61