]>
Commit | Line | Data |
---|---|---|
a49d2536 AC |
1 | /* |
2 | * Support for Intel Camera Imaging ISP subsystem. | |
3 | * Copyright (c) 2015, Intel Corporation. | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms and conditions of the GNU General Public License, | |
7 | * version 2, as published by the Free Software Foundation. | |
8 | * | |
9 | * This program is distributed in the hope it will be useful, but WITHOUT | |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
12 | * more details. | |
13 | */ | |
14 | ||
15 | #ifndef __IA_CSS_CNR2_TYPES_H | |
16 | #define __IA_CSS_CNR2_TYPES_H | |
17 | ||
d929fb4e | 18 | /* @file |
a49d2536 AC |
19 | * CSS-API header file for Chroma Noise Reduction (CNR) parameters |
20 | */ | |
21 | ||
d929fb4e | 22 | /* Chroma Noise Reduction configuration. |
a49d2536 AC |
23 | * |
24 | * Small sensitivity of edge means strong smoothness and NR performance. | |
25 | * If you see blurred color on vertical edges, | |
26 | * set higher values on sense_gain_h*. | |
27 | * If you see blurred color on horizontal edges, | |
28 | * set higher values on sense_gain_v*. | |
29 | * | |
30 | * ISP block: CNR2 | |
31 | * (ISP1: CNR1 is used.) | |
32 | * (ISP2: CNR1 is used for Preview/Video.) | |
33 | * ISP2: CNR2 is used for Still. | |
34 | */ | |
35 | struct ia_css_cnr_config { | |
d929fb4e | 36 | uint16_t coring_u; /** Coring level of U. |
a49d2536 | 37 | u0.13, [0,8191], default/ineffective 0 */ |
d929fb4e | 38 | uint16_t coring_v; /** Coring level of V. |
a49d2536 | 39 | u0.13, [0,8191], default/ineffective 0 */ |
d929fb4e | 40 | uint16_t sense_gain_vy; /** Sensitivity of horizontal edge of Y. |
a49d2536 | 41 | u13.0, [0,8191], default 100, ineffective 8191 */ |
d929fb4e | 42 | uint16_t sense_gain_vu; /** Sensitivity of horizontal edge of U. |
a49d2536 | 43 | u13.0, [0,8191], default 100, ineffective 8191 */ |
d929fb4e | 44 | uint16_t sense_gain_vv; /** Sensitivity of horizontal edge of V. |
a49d2536 | 45 | u13.0, [0,8191], default 100, ineffective 8191 */ |
d929fb4e | 46 | uint16_t sense_gain_hy; /** Sensitivity of vertical edge of Y. |
a49d2536 | 47 | u13.0, [0,8191], default 50, ineffective 8191 */ |
d929fb4e | 48 | uint16_t sense_gain_hu; /** Sensitivity of vertical edge of U. |
a49d2536 | 49 | u13.0, [0,8191], default 50, ineffective 8191 */ |
d929fb4e | 50 | uint16_t sense_gain_hv; /** Sensitivity of vertical edge of V. |
a49d2536 AC |
51 | u13.0, [0,8191], default 50, ineffective 8191 */ |
52 | }; | |
53 | ||
54 | #endif /* __IA_CSS_CNR2_TYPES_H */ | |
55 |