BORDER_SIZE 254 modules/video/src/opencl/optical_flow_farneback.cl __constant float c_border[BORDER_SIZE + 1] = { 0.14f, 0.14f, 0.4472f, 0.4472f, 0.4472f, 1.f }; BORDER_SIZE 331 modules/video/src/opencl/optical_flow_farneback.cl c_border[min(x, BORDER_SIZE)] * BORDER_SIZE 332 modules/video/src/opencl/optical_flow_farneback.cl c_border[min(y, BORDER_SIZE)] * BORDER_SIZE 333 modules/video/src/opencl/optical_flow_farneback.cl c_border[min(cols - x - 1, BORDER_SIZE)] * BORDER_SIZE 334 modules/video/src/opencl/optical_flow_farneback.cl c_border[min(rows - y - 1, BORDER_SIZE)];