1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __IA_CSS_SDIS_TYPES_H 8 #define __IA_CSS_SDIS_TYPES_H 9 10 /* @file 11 * CSS-API header file for DVS statistics parameters. 12 */ 13 14 /* Number of DVS coefficient types */ 15 #define IA_CSS_DVS_NUM_COEF_TYPES 6 16 17 #ifndef PIPE_GENERATION 18 #include "isp/kernels/sdis/common/ia_css_sdis_common_types.h" 19 #endif 20 21 /* DVS 1.0 Coefficients. 22 * This structure describes the coefficients that are needed for the dvs statistics. 23 */ 24 25 struct ia_css_dvs_coefficients { 26 struct ia_css_dvs_grid_info 27 grid;/** grid info contains the dimensions of the dvs grid */ 28 s16 *hor_coefs; /** the pointer to int16_t[grid.num_hor_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 29 containing the horizontal coefficients */ 30 s16 *ver_coefs; /** the pointer to int16_t[grid.num_ver_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 31 containing the vertical coefficients */ 32 }; 33 34 /* DVS 1.0 Statistics. 35 * This structure describes the statistics that are generated using the provided coefficients. 36 */ 37 38 struct ia_css_dvs_statistics { 39 struct ia_css_dvs_grid_info 40 grid;/** grid info contains the dimensions of the dvs grid */ 41 s32 *hor_proj; /** the pointer to int16_t[grid.height * IA_CSS_DVS_NUM_COEF_TYPES] 42 containing the horizontal projections */ 43 s32 *ver_proj; /** the pointer to int16_t[grid.width * IA_CSS_DVS_NUM_COEF_TYPES] 44 containing the vertical projections */ 45 }; 46 47 #endif /* __IA_CSS_SDIS_TYPES_H */ 48