1/* SPDX-License-Identifier: GPL-2.0 */ 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 16#ifndef __IA_CSS_SDIS_TYPES_H 17#define __IA_CSS_SDIS_TYPES_H 18 19/* @file 20* CSS-API header file for DVS statistics parameters. 21*/ 22 23/* Number of DVS coefficient types */ 24#define IA_CSS_DVS_NUM_COEF_TYPES 6 25 26#ifndef PIPE_GENERATION 27#include "isp/kernels/sdis/common/ia_css_sdis_common_types.h" 28#endif 29 30/* DVS 1.0 Coefficients. 31 * This structure describes the coefficients that are needed for the dvs statistics. 32 */ 33 34struct ia_css_dvs_coefficients { 35 struct ia_css_dvs_grid_info 36 grid;/** grid info contains the dimensions of the dvs grid */ 37 s16 *hor_coefs; /** the pointer to int16_t[grid.num_hor_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 38 containing the horizontal coefficients */ 39 s16 *ver_coefs; /** the pointer to int16_t[grid.num_ver_coefs * IA_CSS_DVS_NUM_COEF_TYPES] 40 containing the vertical coefficients */ 41}; 42 43/* DVS 1.0 Statistics. 44 * This structure describes the statistics that are generated using the provided coefficients. 45 */ 46 47struct ia_css_dvs_statistics { 48 struct ia_css_dvs_grid_info 49 grid;/** grid info contains the dimensions of the dvs grid */ 50 s32 *hor_proj; /** the pointer to int16_t[grid.height * IA_CSS_DVS_NUM_COEF_TYPES] 51 containing the horizontal projections */ 52 s32 *ver_proj; /** the pointer to int16_t[grid.width * IA_CSS_DVS_NUM_COEF_TYPES] 53 containing the vertical projections */ 54}; 55 56#endif /* __IA_CSS_SDIS_TYPES_H */ 57