1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Release Version: irci_stable_candrpv_0415_20150521_0458 */
3 /*
4  * Support for Intel Camera Imaging ISP subsystem.
5  * Copyright (c) 2015, Intel Corporation.
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU General Public License,
9  * version 2, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  */
16 
17 #ifndef __IA_CSS_HDR_PARAMS_H
18 #define __IA_CSS_HDR_PARAMS_H
19 
20 #include "type_support.h"
21 
22 #define HDR_NUM_INPUT_FRAMES         (3)
23 
24 /* HDR irradiance map parameters on ISP. */
25 struct sh_css_hdr_irradiance_params {
26 	s32 test_irr;
27 	s32 match_shift[HDR_NUM_INPUT_FRAMES -
28 					     1];  /* Histogram matching shift parameter */
29 	s32 match_mul[HDR_NUM_INPUT_FRAMES -
30 					   1];    /* Histogram matching multiplication parameter */
31 	s32 thr_low[HDR_NUM_INPUT_FRAMES -
32 					 1];      /* Weight map soft threshold low bound parameter */
33 	s32 thr_high[HDR_NUM_INPUT_FRAMES -
34 					  1];     /* Weight map soft threshold high bound parameter */
35 	s32 thr_coeff[HDR_NUM_INPUT_FRAMES -
36 					   1];    /* Soft threshold linear function coefficient */
37 	s32 thr_shift[HDR_NUM_INPUT_FRAMES -
38 					   1];    /* Soft threshold precision shift parameter */
39 	s32 weight_bpp;                             /* Weight map bits per pixel */
40 };
41 
42 /* HDR deghosting parameters on ISP */
43 struct sh_css_hdr_deghost_params {
44 	s32 test_deg;
45 };
46 
47 /* HDR exclusion parameters on ISP */
48 struct sh_css_hdr_exclusion_params {
49 	s32 test_excl;
50 };
51 
52 /* HDR ISP parameters */
53 struct sh_css_isp_hdr_params {
54 	struct sh_css_hdr_irradiance_params irradiance;
55 	struct sh_css_hdr_deghost_params    deghost;
56 	struct sh_css_hdr_exclusion_params  exclusion;
57 };
58 
59 #endif /* __IA_CSS_HDR_PARAMS_H */
60