/* SPDX-License-Identifier: GPL-2.0 */ /* * Support for Intel Camera Imaging ISP subsystem. * Copyright (c) 2015, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. */ #ifndef __IA_CSS_SC_TYPES_H #define __IA_CSS_SC_TYPES_H /* @file * CSS-API header file for Lens Shading Correction (SC) parameters. */ /* Number of color planes in the shading table. */ #define IA_CSS_SC_NUM_COLORS … /* The 4 colors that a shading table consists of. * For each color we store a grid of values. */ enum ia_css_sc_color { … }; /* Lens Shading Correction table. * * This describes the color shading artefacts * introduced by lens imperfections. To correct artefacts, * bayer values should be multiplied by gains in this table. * *------------ deprecated(bz675) : from --------------------------- * When shading_settings.enable_shading_table_conversion is set as 0, * this shading table is directly sent to the isp. This table should contain * the data based on the ia_css_shading_info information filled in the css. * So, the driver needs to get the ia_css_shading_info information * from the css, prior to generating the shading table. * * When shading_settings.enable_shading_table_conversion is set as 1, * this shading table is converted in the legacy way in the css * before it is sent to the isp. * The driver does not need to get the ia_css_shading_info information. * * NOTE: * The shading table conversion will be removed from the css in the near future, * because it does not support the bayer scaling by sensor. * Also, we had better generate the shading table only in one place(AIC). * At the moment, to support the old driver which assumes the conversion is done in the css, * shading_settings.enable_shading_table_conversion is set as 1 by default. *------------ deprecated(bz675) : to --------------------------- * * ISP block: SC1 * ISP1: SC1 is used. * ISP2: SC1 is used. */ struct ia_css_shading_table { … }; /* ------ deprecated(bz675) : from ------ */ /* Shading Correction settings. * * NOTE: * This structure should be removed when the shading table conversion is * removed from the css. */ struct ia_css_shading_settings { … }; /* ------ deprecated(bz675) : to ------ */ #endif /* __IA_CSS_SC_TYPES_H */