GNU Linux-libre 4.14.259-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / isp / kernels / sdis / sdis_1.0 / ia_css_sdis_types.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_SDIS_TYPES_H
16 #define __IA_CSS_SDIS_TYPES_H
17
18 /** @file
19 * CSS-API header file for DVS statistics parameters.
20 */
21
22 /** Number of DVS coefficient types */
23 #define IA_CSS_DVS_NUM_COEF_TYPES      6
24
25 #ifndef PIPE_GENERATION
26 #include "isp/kernels/sdis/common/ia_css_sdis_common_types.h"
27 #endif
28
29 /** DVS 1.0 Coefficients.
30  *  This structure describes the coefficients that are needed for the dvs statistics.
31  */
32
33 struct ia_css_dvs_coefficients {
34         struct ia_css_dvs_grid_info grid;/**< grid info contains the dimensions of the dvs grid */
35         int16_t *hor_coefs;     /**< the pointer to int16_t[grid.num_hor_coefs * IA_CSS_DVS_NUM_COEF_TYPES]
36                                      containing the horizontal coefficients */
37         int16_t *ver_coefs;     /**< the pointer to int16_t[grid.num_ver_coefs * IA_CSS_DVS_NUM_COEF_TYPES]
38                                      containing the vertical coefficients */
39 };
40
41 /** DVS 1.0 Statistics.
42  *  This structure describes the statistics that are generated using the provided coefficients.
43  */
44
45 struct ia_css_dvs_statistics {
46         struct ia_css_dvs_grid_info grid;/**< grid info contains the dimensions of the dvs grid */
47         int32_t *hor_proj;      /**< the pointer to int16_t[grid.height * IA_CSS_DVS_NUM_COEF_TYPES]
48                                      containing the horizontal projections */
49         int32_t *ver_proj;      /**< the pointer to int16_t[grid.width * IA_CSS_DVS_NUM_COEF_TYPES]
50                                      containing the vertical projections */
51 };
52
53 #endif /* __IA_CSS_SDIS_TYPES_H */