1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef _SH_CSS_LEGACY_H_
17#define _SH_CSS_LEGACY_H_
18
19#include <type_support.h>
20#include <ia_css_err.h>
21#include <ia_css_types.h>
22#include <ia_css_frame_public.h>
23#include <ia_css_pipe_public.h>
24#include <ia_css_stream_public.h>
25
26
27
28
29enum ia_css_pipe_id {
30 IA_CSS_PIPE_ID_PREVIEW,
31 IA_CSS_PIPE_ID_COPY,
32 IA_CSS_PIPE_ID_VIDEO,
33 IA_CSS_PIPE_ID_CAPTURE,
34 IA_CSS_PIPE_ID_YUVPP,
35 IA_CSS_PIPE_ID_ACC,
36 IA_CSS_PIPE_ID_NUM
37};
38
39struct ia_css_pipe_extra_config {
40 bool enable_raw_binning;
41 bool enable_yuv_ds;
42 bool enable_high_speed;
43 bool enable_dvs_6axis;
44 bool enable_reduced_pipe;
45 bool enable_fractional_ds;
46 bool disable_vf_pp;
47};
48
49int
50ia_css_pipe_create_extra(const struct ia_css_pipe_config *config,
51 const struct ia_css_pipe_extra_config *extra_config,
52 struct ia_css_pipe **pipe);
53
54void
55ia_css_pipe_extra_config_defaults(struct ia_css_pipe_extra_config
56 *extra_config);
57
58int
59ia_css_temp_pipe_to_pipe_id(const struct ia_css_pipe *pipe,
60 enum ia_css_pipe_id *pipe_id);
61
62
63int
64sh_css_set_black_frame(struct ia_css_stream *stream,
65 const struct ia_css_frame *raw_black_frame);
66
67
68void
69sh_css_enable_cont_capt(bool enable, bool stop_copy_preview);
70
71#endif
72