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_DPC2_TYPES_H 17#define __IA_CSS_DPC2_TYPES_H 18 19/* @file 20* CSS-API header file for Defect Pixel Correction 2 (DPC2) parameters. 21*/ 22 23#include "type_support.h" 24 25/**@{*/ 26/* Floating point constants for different metrics. */ 27#define METRIC1_ONE_FP BIT(12) 28#define METRIC2_ONE_FP BIT(5) 29#define METRIC3_ONE_FP BIT(12) 30#define WBGAIN_ONE_FP BIT(9) 31/**@}*/ 32 33/**@{*/ 34/* Defect Pixel Correction 2 configuration. 35 * 36 * \brief DPC2 public parameters. 37 * \details Struct with all parameters for the Defect Pixel Correction 2 38 * kernel that can be set from the CSS API. 39 * 40 * ISP block: DPC1 (DPC after WB) 41 * DPC2 (DPC before WB) 42 * ISP1: DPC1 is used. 43 * ISP2: DPC2 is used. 44 * 45 */ 46struct ia_css_dpc2_config { 47 /**@{*/ 48 s32 metric1; 49 s32 metric2; 50 s32 metric3; 51 s32 wb_gain_gr; 52 s32 wb_gain_r; 53 s32 wb_gain_b; 54 s32 wb_gain_gb; 55 /**@}*/ 56}; 57 58/**@}*/ 59 60#endif /* __IA_CSS_DPC2_TYPES_H */ 61