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_CTC2_PARAM_H 8 #define __IA_CSS_CTC2_PARAM_H 9 10 #define IA_CSS_CTC_COEF_SHIFT 13 11 #include "vmem.h" /* needed for VMEM_ARRAY */ 12 13 /* CTC (Chroma Tone Control)ISP Parameters */ 14 15 /*VMEM Luma params*/ 16 struct ia_css_isp_ctc2_vmem_params { 17 /** Gains by Y(Luma) at Y = 0.0,Y_X1, Y_X2, Y_X3, Y_X4*/ 18 VMEM_ARRAY(y_x, ISP_VEC_NELEMS); 19 /* kneepoints by Y(Luma) 0.0, y_x1, y_x2, y _x3, y_x4*/ 20 VMEM_ARRAY(y_y, ISP_VEC_NELEMS); 21 /* Slopes of lines interconnecting 22 * 0.0 -> y_x1 -> y_x2 -> y _x3 -> y_x4 -> 1.0*/ 23 VMEM_ARRAY(e_y_slope, ISP_VEC_NELEMS); 24 }; 25 26 /*DMEM Chroma params*/ 27 struct ia_css_isp_ctc2_dmem_params { 28 /* Gains by UV(Chroma) under kneepoints uv_x0 and uv_x1*/ 29 s32 uv_y0; 30 s32 uv_y1; 31 32 /* Kneepoints by UV(Chroma)- uv_x0 and uv_x1*/ 33 s32 uv_x0; 34 s32 uv_x1; 35 36 /* Slope of line interconnecting uv_x0 -> uv_x1*/ 37 s32 uv_dydx; 38 39 }; 40 #endif /* __IA_CSS_CTC2_PARAM_H */ 41