/* 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_XNR3_PARAM_H #define __IA_CSS_XNR3_PARAM_H #include "type_support.h" #include "vmem.h" /* ISP2401: needed for VMEM_ARRAY */ /* Scaling factor of the alpha values: which fixed-point value represents 1.0? * It must be chosen such that 1/min_sigma still fits in an ISP vector * element. */ #define XNR_ALPHA_SCALE_LOG2 … #define XNR_ALPHA_SCALE_FACTOR … /* Scaling factor of the coring values on the ISP. */ #define XNR_CORING_SCALE_LOG2 … #define XNR_CORING_SCALE_FACTOR … /* Scaling factor of the blending strength on the ISP. */ #define XNR_BLENDING_SCALE_LOG2 … #define XNR_BLENDING_SCALE_FACTOR … /* XNR3 filter size. Must be 11x11, 9x9 or 5x5. */ #define XNR_FILTER_SIZE … /* XNR3 alpha (1/sigma) parameters on the ISP, expressed as a base (0) value * for dark areas, and a scaled diff towards the value for bright areas. */ struct sh_css_xnr3_alpha_params { … }; /* XNR3 coring parameters on the ISP, expressed as a base (0) value * for dark areas, and a scaled diff towards the value for bright areas. */ struct sh_css_xnr3_coring_params { … }; /* XNR3 blending strength on the ISP. */ struct sh_css_xnr3_blending_params { … }; /* XNR3 ISP parameters */ struct sh_css_isp_xnr3_params { … }; /* ISP2401 */ /* * STRUCT sh_css_isp_xnr3_vmem_params * ----------------------------------------------- * ISP VMEM parameters */ struct sh_css_isp_xnr3_vmem_params { … }; #endif /*__IA_CSS_XNR3_PARAM_H */