1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef _IA_CSS_STREAM_H_
17#define _IA_CSS_STREAM_H_
18
19#include <type_support.h>
20#include <system_local.h>
21#if !defined(ISP2401)
22#include <input_system.h>
23#endif
24#include "ia_css_types.h"
25#include "ia_css_stream_public.h"
26
27
28
29
30struct ia_css_stream {
31 struct ia_css_stream_config config;
32 struct ia_css_stream_info info;
33#if !defined(ISP2401)
34 rx_cfg_t csi_rx_config;
35#endif
36 bool reconfigure_css_rx;
37 struct ia_css_pipe *last_pipe;
38 int num_pipes;
39 struct ia_css_pipe **pipes;
40 struct ia_css_pipe *continuous_pipe;
41 struct ia_css_isp_parameters *isp_params_configs;
42 struct ia_css_isp_parameters *per_frame_isp_params_configs;
43
44 bool cont_capt;
45 bool disable_cont_vf;
46
47
48 bool stop_copy_preview;
49 bool started;
50};
51
52
53
54
55
56
57
58struct ia_css_binary *
59ia_css_stream_get_shading_correction_binary(const struct ia_css_stream *stream);
60
61struct ia_css_binary *
62ia_css_stream_get_dvs_binary(const struct ia_css_stream *stream);
63
64struct ia_css_binary *
65ia_css_stream_get_3a_binary(const struct ia_css_stream *stream);
66
67unsigned int
68ia_css_stream_input_format_bits_per_pixel(struct ia_css_stream *stream);
69
70bool
71sh_css_params_set_binning_factor(struct ia_css_stream *stream,
72 unsigned int sensor_binning);
73
74void
75sh_css_invalidate_params(struct ia_css_stream *stream);
76
77
78const struct ia_css_fpn_table *
79ia_css_get_fpn_table(struct ia_css_stream *stream);
80
81
82
83
84
85
86
87struct ia_css_shading_table *
88ia_css_get_shading_table(struct ia_css_stream *stream);
89
90void
91ia_css_get_isp_dis_coefficients(struct ia_css_stream *stream,
92 short *horizontal_coefficients,
93 short *vertical_coefficients);
94
95void
96ia_css_get_isp_dvs2_coefficients(struct ia_css_stream *stream,
97 short *hor_coefs_odd_real,
98 short *hor_coefs_odd_imag,
99 short *hor_coefs_even_real,
100 short *hor_coefs_even_imag,
101 short *ver_coefs_odd_real,
102 short *ver_coefs_odd_imag,
103 short *ver_coefs_even_real,
104 short *ver_coefs_even_imag);
105
106int
107ia_css_stream_isp_parameters_init(struct ia_css_stream *stream);
108
109void
110ia_css_stream_isp_parameters_uninit(struct ia_css_stream *stream);
111
112#endif
113