GNU Linux-libre 4.14.290-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / runtime / ifmtr / interface / ia_css_ifmtr.h
1 #ifndef ISP2401
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 #else
16 /**
17 Support for Intel Camera Imaging ISP subsystem.
18 Copyright (c) 2010 - 2015, Intel Corporation.
19
20 This program is free software; you can redistribute it and/or modify it
21 under the terms and conditions of the GNU General Public License,
22 version 2, as published by the Free Software Foundation.
23
24 This program is distributed in the hope it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
27 more details.
28 */
29 #endif
30
31 #ifndef __IA_CSS_IFMTR_H__
32 #define __IA_CSS_IFMTR_H__
33
34 #include <type_support.h>
35 #include <ia_css_stream_public.h>
36 #include <ia_css_binary.h>
37
38 extern bool ifmtr_set_if_blocking_mode_reset;
39
40 unsigned int ia_css_ifmtr_lines_needed_for_bayer_order(
41                         const struct ia_css_stream_config *config);
42
43 unsigned int ia_css_ifmtr_columns_needed_for_bayer_order(
44                         const struct ia_css_stream_config *config);
45
46 enum ia_css_err ia_css_ifmtr_configure(struct ia_css_stream_config *config,
47                                        struct ia_css_binary *binary);
48
49 #endif /* __IA_CSS_IFMTR_H__ */