]>
Commit | Line | Data |
---|---|---|
a49d2536 AC |
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 | ||
d929fb4e | 18 | /* @file |
a49d2536 AC |
19 | * CSS-API header file for DVS statistics parameters. |
20 | */ | |
21 | ||
d929fb4e | 22 | /* Number of DVS coefficient types */ |
a49d2536 AC |
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 | ||
d929fb4e | 29 | /* DVS 1.0 Coefficients. |
a49d2536 AC |
30 | * This structure describes the coefficients that are needed for the dvs statistics. |
31 | */ | |
32 | ||
33 | struct ia_css_dvs_coefficients { | |
d929fb4e MCC |
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] | |
a49d2536 | 36 | containing the horizontal coefficients */ |
d929fb4e | 37 | int16_t *ver_coefs; /** the pointer to int16_t[grid.num_ver_coefs * IA_CSS_DVS_NUM_COEF_TYPES] |
a49d2536 AC |
38 | containing the vertical coefficients */ |
39 | }; | |
40 | ||
d929fb4e | 41 | /* DVS 1.0 Statistics. |
a49d2536 AC |
42 | * This structure describes the statistics that are generated using the provided coefficients. |
43 | */ | |
44 | ||
45 | struct ia_css_dvs_statistics { | |
d929fb4e MCC |
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] | |
a49d2536 | 48 | containing the horizontal projections */ |
d929fb4e | 49 | int32_t *ver_proj; /** the pointer to int16_t[grid.width * IA_CSS_DVS_NUM_COEF_TYPES] |
a49d2536 AC |
50 | containing the vertical projections */ |
51 | }; | |
52 | ||
53 | #endif /* __IA_CSS_SDIS_TYPES_H */ |