2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
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.
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
15 #ifndef _SH_CSS_LEGACY_H_
16 #define _SH_CSS_LEGACY_H_
18 #include <type_support.h>
19 #include <ia_css_err.h>
20 #include <ia_css_types.h>
21 #include <ia_css_frame_public.h>
22 #include <ia_css_pipe_public.h>
23 #include <ia_css_stream_public.h>
25 /* The pipe id type, distinguishes the kind of pipes that
26 * can be run in parallel.
29 IA_CSS_PIPE_ID_PREVIEW,
32 IA_CSS_PIPE_ID_CAPTURE,
42 #define IA_CSS_PIPE_ID_NUM (IA_CSS_PIPE_ID_ACC+1)
45 struct ia_css_pipe_extra_config {
46 bool enable_raw_binning;
48 bool enable_high_speed;
49 bool enable_dvs_6axis;
50 bool enable_reduced_pipe;
51 bool enable_fractional_ds;
55 #define DEFAULT_PIPE_EXTRA_CONFIG \
57 false, /* enable_raw_binning */ \
58 false, /* enable_yuv_ds */ \
59 false, /* enable_high_speed */ \
60 false, /* enable_dvs_6axis */ \
61 false, /* enable_reduced_pipe */ \
62 false, /* enable_fractional_ds */ \
63 false, /* disable_vf_pp */ \
67 ia_css_pipe_create_extra(const struct ia_css_pipe_config *config,
68 const struct ia_css_pipe_extra_config *extra_config,
69 struct ia_css_pipe **pipe);
72 ia_css_pipe_extra_config_defaults(struct ia_css_pipe_extra_config *extra_config);
75 ia_css_temp_pipe_to_pipe_id(const struct ia_css_pipe *pipe,
76 enum ia_css_pipe_id *pipe_id);
78 /* DEPRECATED. FPN is not supported. */
80 sh_css_set_black_frame(struct ia_css_stream *stream,
81 const struct ia_css_frame *raw_black_frame);
85 sh_css_enable_cont_capt(bool enable, bool stop_copy_preview);
88 #endif /* _SH_CSS_LEGACY_H_ */