/* 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_GC_TYPES_H #define __IA_CSS_GC_TYPES_H /* @file * CSS-API header file for Gamma Correction parameters. */ #include "isp/kernels/ctc/ctc_1.0/ia_css_ctc_types.h" /* FIXME: Needed for ia_css_vamem_type */ /* Fractional bits for GAMMA gain */ #define IA_CSS_GAMMA_GAIN_K_SHIFT … /* Number of elements in the gamma table. */ #define IA_CSS_VAMEM_1_GAMMA_TABLE_SIZE_LOG2 … #define IA_CSS_VAMEM_1_GAMMA_TABLE_SIZE … /* Number of elements in the gamma table. */ #define IA_CSS_VAMEM_2_GAMMA_TABLE_SIZE_LOG2 … #define IA_CSS_VAMEM_2_GAMMA_TABLE_SIZE … /* Gamma table, used for Y(Luma) Gamma Correction. * * ISP block: GC1 (YUV Gamma Correction) * ISP1: GC1 is used. * (ISP2: GC2(sRGB Gamma Correction) is used.) */ /** IA_CSS_VAMEM_TYPE_1(ISP2300) or IA_CSS_VAMEM_TYPE_2(ISP2400) */ ia_css_gc_data; struct ia_css_gamma_table { … }; /* Gamma Correction configuration (used only for YUV Gamma Correction). * * ISP block: GC1 (YUV Gamma Correction) * ISP1: GC1 is used. * (ISP2: GC2 (sRGB Gamma Correction) is used.) */ struct ia_css_gc_config { … }; /* Chroma Enhancement configuration. * * This parameter specifies range of chroma output level. * The standard range is [0,255] or [16,240]. * * ISP block: CE1 * ISP1: CE1 is used. * (ISP2: CE1 is not used.) */ struct ia_css_ce_config { … }; /* Multi-Axes Color Correction (MACC) configuration. * * ISP block: MACC2 (MACC by matrix and exponent(ia_css_macc_config)) * (ISP1: MACC1 (MACC by only matrix) is used.) * ISP2: MACC2 is used. */ struct ia_css_macc_config { … }; #endif /* __IA_CSS_GC_TYPES_H */