1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __IA_CSS_ANR_TYPES_H 8 #define __IA_CSS_ANR_TYPES_H 9 10 /* @file 11 * CSS-API header file for Advanced Noise Reduction kernel v1 12 */ 13 14 #include <linux/math.h> 15 16 /* Application specific DMA settings */ 17 #define ANR_BPP 10 18 #define ANR_ELEMENT_BITS round_up(ANR_BPP, 8) 19 20 /* Advanced Noise Reduction configuration. 21 * This is also known as Low-Light. 22 */ 23 struct ia_css_anr_config { 24 s32 threshold; /** Threshold */ 25 s32 thresholds[4 * 4 * 4]; 26 s32 factors[3]; 27 }; 28 29 #endif /* __IA_CSS_ANR_TYPES_H */ 30