]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/hdr/ia_css_hdr_param.h
staging/atomisp: Add support for the Intel IPU v2
[mirror_ubuntu-hirsute-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / hdr / ia_css_hdr_param.h
1 /* Release Version: irci_stable_candrpv_0415_20150521_0458 */
2 /* Release Version: irci_ecr-master_20150911_0724 */
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 int32_t test_irr;
27 int32_t match_shift[HDR_NUM_INPUT_FRAMES - 1]; /* Histogram matching shift parameter */
28 int32_t match_mul[HDR_NUM_INPUT_FRAMES - 1]; /* Histogram matching multiplication parameter */
29 int32_t thr_low[HDR_NUM_INPUT_FRAMES - 1]; /* Weight map soft threshold low bound parameter */
30 int32_t thr_high[HDR_NUM_INPUT_FRAMES - 1]; /* Weight map soft threshold high bound parameter */
31 int32_t thr_coeff[HDR_NUM_INPUT_FRAMES - 1]; /* Soft threshold linear function coefficient */
32 int32_t thr_shift[HDR_NUM_INPUT_FRAMES - 1]; /* Soft threshold precision shift parameter */
33 int32_t weight_bpp; /* Weight map bits per pixel */
34 };
35
36 /* HDR deghosting parameters on ISP */
37 struct sh_css_hdr_deghost_params {
38 int32_t test_deg;
39 };
40
41 /* HDR exclusion parameters on ISP */
42 struct sh_css_hdr_exclusion_params {
43 int32_t test_excl;
44 };
45
46 /* HDR ISP parameters */
47 struct sh_css_isp_hdr_params {
48 struct sh_css_hdr_irradiance_params irradiance;
49 struct sh_css_hdr_deghost_params deghost;
50 struct sh_css_hdr_exclusion_params exclusion;
51 };
52
53 #endif /* __IA_CSS_HDR_PARAMS_H */