Home
last modified time | relevance | path

Searched refs:max_slope (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/
Dia_css_ctc2.host.c43 const int max_slope = (1 << IA_CSS_CTC_COEF_SHIFT) - 1; in ctc2_slope() local
51 assert(y0 >= 0 && y0 <= max_slope); in ctc2_slope()
52 assert(y1 >= 0 && y1 <= max_slope); in ctc2_slope()
53 assert(x0 >= 0 && x0 <= max_slope); in ctc2_slope()
54 assert(x1 > 0 && x1 <= max_slope); in ctc2_slope()
64 if (slope <= -max_slope - 1) { in ctc2_slope()
65 dydx = -max_slope - 1; in ctc2_slope()
66 } else if (slope >= max_slope) { in ctc2_slope()
67 dydx = max_slope; in ctc2_slope()