GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / tnr / tnr_1.0 / ia_css_tnr_param.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
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.
8  *
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
12  * more details.
13  */
14
15 #ifndef __IA_CSS_TNR_PARAM_H
16 #define __IA_CSS_TNR_PARAM_H
17
18 #include "type_support.h"
19 #include "sh_css_defs.h"
20 #include "dma.h"
21
22 /* TNR (Temporal Noise Reduction) */
23 struct sh_css_isp_tnr_params {
24         int32_t coef;
25         int32_t threshold_Y;
26         int32_t threshold_C;
27 };
28
29 struct ia_css_tnr_configuration {
30 #ifndef ISP2401
31         const struct ia_css_frame *tnr_frames[NUM_VIDEO_TNR_FRAMES];
32 #else
33         const struct ia_css_frame *tnr_frames[NUM_TNR_FRAMES];
34 #endif
35 };
36
37 struct sh_css_isp_tnr_isp_config {
38         uint32_t width_a_over_b;
39         uint32_t frame_height;
40         struct dma_port_config port_b;
41 #ifndef ISP2401
42         hrt_vaddress tnr_frame_addr[NUM_VIDEO_TNR_FRAMES];
43 #else
44         hrt_vaddress tnr_frame_addr[NUM_TNR_FRAMES];
45 #endif
46 };
47
48 #endif /* __IA_CSS_TNR_PARAM_H */