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 35 grid;/** grid info contains the dimensions of the dvs grid */ 36 s16 *hor_coefs; /** the pointer to int16_t[grid.num_hor_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 37 containing the horizontal coefficients */ 38 s16 *ver_coefs; /** the pointer to int16_t[grid.num_ver_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 39 containing the vertical coefficients */ 40 }; 41 42 /* DVS 1.0 Statistics. 43 * This structure describes the statistics that are generated using the provided coefficients. 44 */ 45 46 struct ia_css_dvs_statistics { 47 struct ia_css_dvs_grid_info 48 grid;/** grid info contains the dimensions of the dvs grid */ 49 s32 *hor_proj; /** the pointer to int16_t[grid.height * IA_CSS_DVS_NUM_COEF_TYPES] 50 containing the horizontal projections */ 51 s32 *ver_proj; /** the pointer to int16_t[grid.width * IA_CSS_DVS_NUM_COEF_TYPES] 52 containing the vertical projections */ 53 }; 54 55 #endif /* __IA_CSS_SDIS_TYPES_H */ 56