GNU Linux-libre 4.14.294-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / s3a / s3a_1.0 / ia_css_s3a.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_S3A_HOST_H
16 #define __IA_CSS_S3A_HOST_H
17
18 #include "ia_css_s3a_types.h"
19 #include "ia_css_s3a_param.h"
20 #include "bh/bh_2/ia_css_bh.host.h"
21
22 extern const struct ia_css_3a_config default_3a_config;
23
24 void
25 ia_css_s3a_configure(
26         unsigned int raw_bit_depth);
27
28 void
29 ia_css_s3a_encode(
30         struct sh_css_isp_s3a_params *to,
31         const struct ia_css_3a_config *from,
32         unsigned size);
33
34 #ifndef IA_CSS_NO_DEBUG
35 void
36 ia_css_ae_dump(
37         const struct sh_css_isp_ae_params *ae,
38         unsigned level);
39
40 void
41 ia_css_awb_dump(
42         const struct sh_css_isp_awb_params *awb,
43         unsigned level);
44
45 void
46 ia_css_af_dump(
47         const struct sh_css_isp_af_params *af,
48         unsigned level);
49
50 void
51 ia_css_s3a_dump(
52         const struct sh_css_isp_s3a_params *s3a,
53         unsigned level);
54
55 void
56 ia_css_s3a_debug_dtrace(
57         const struct ia_css_3a_config *config,
58         unsigned level);
59 #endif
60
61 void
62 ia_css_s3a_hmem_decode(
63         struct ia_css_3a_statistics *host_stats,
64         const struct ia_css_bh_table *hmem_buf);
65
66 void
67 ia_css_s3a_dmem_decode(
68         struct ia_css_3a_statistics *host_stats,
69         const struct ia_css_3a_output *isp_stats);
70
71 void
72 ia_css_s3a_vmem_decode(
73         struct ia_css_3a_statistics *host_stats,
74         const uint16_t *isp_stats_hi,
75         const uint16_t *isp_stats_lo);
76
77 #endif /* __IA_CSS_S3A_HOST_H */