]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.h
staging/atomisp: Add support for the Intel IPU v2
[mirror_ubuntu-jammy-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / dvs / dvs_1.0 / ia_css_dvs.host.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_DVS_HOST_H
16 #define __IA_CSS_DVS_HOST_H
17
18 #include "ia_css_frame_public.h"
19 #include "ia_css_binary.h"
20 #include "sh_css_params.h"
21
22 #include "ia_css_types.h"
23 #include "ia_css_dvs_types.h"
24 #include "ia_css_dvs_param.h"
25
26 /* For bilinear interpolation, we need to add +1 to input block height calculation.
27 * For bicubic interpolation, we will need to add +3 instaed */
28 #define DVS_GDC_BLI_INTERP_ENVELOPE 1
29 #define DVS_GDC_BCI_INTERP_ENVELOPE 3
30
31 void
32 ia_css_dvs_config(
33 struct sh_css_isp_dvs_isp_config *to,
34 const struct ia_css_dvs_configuration *from,
35 unsigned size);
36
37 void
38 ia_css_dvs_configure(
39 const struct ia_css_binary *binary,
40 const struct ia_css_frame_info *from);
41
42 void
43 convert_dvs_6axis_config(
44 struct ia_css_isp_parameters *params,
45 const struct ia_css_binary *binary);
46
47 struct ia_css_host_data *
48 convert_allocate_dvs_6axis_config(
49 const struct ia_css_dvs_6axis_config *dvs_6axis_config,
50 const struct ia_css_binary *binary,
51 const struct ia_css_frame_info *dvs_in_frame_info);
52
53 enum ia_css_err
54 store_dvs_6axis_config(
55 const struct ia_css_dvs_6axis_config *dvs_6axis_config,
56 const struct ia_css_binary *binary,
57 const struct ia_css_frame_info *dvs_in_frame_info,
58 hrt_vaddress ddr_addr_y);
59
60 #endif /* __IA_CSS_DVS_HOST_H */