Lines Matching refs:s_y

63 …__device__ void apply(const PtrStepSzb& src, int s_x, int s_y, bool blue_last, bool start_with_gre…  in apply()
66 patch[0][1] = ((const uchar4*) src.ptr(s_y - 1))[s_x]; in apply()
67 patch[0][0] = ((const uchar4*) src.ptr(s_y - 1))[::max(s_x - 1, 0)]; in apply()
68 … patch[0][2] = ((const uchar4*) src.ptr(s_y - 1))[::min(s_x + 1, ((src.cols + 3) >> 2) - 1)]; in apply()
70 patch[1][1] = ((const uchar4*) src.ptr(s_y))[s_x]; in apply()
71 patch[1][0] = ((const uchar4*) src.ptr(s_y))[::max(s_x - 1, 0)]; in apply()
72 patch[1][2] = ((const uchar4*) src.ptr(s_y))[::min(s_x + 1, ((src.cols + 3) >> 2) - 1)]; in apply()
74 patch[2][1] = ((const uchar4*) src.ptr(s_y + 1))[s_x]; in apply()
75 patch[2][0] = ((const uchar4*) src.ptr(s_y + 1))[::max(s_x - 1, 0)]; in apply()
76 … patch[2][2] = ((const uchar4*) src.ptr(s_y + 1))[::min(s_x + 1, ((src.cols + 3) >> 2) - 1)]; in apply()
78 if ((s_y & 1) ^ start_with_green) in apply()
92 if ((s_y & 1) ^ blue_last) in apply()
143 if ((s_y & 1) ^ blue_last) in apply()
202 int s_y = blockIdx.y * blockDim.y + threadIdx.y; in Bayer2BGR_8u() local
204 if (s_y >= src.rows || (s_x << 2) >= src.cols) in Bayer2BGR_8u()
207 s_y = ::min(::max(s_y, 1), src.rows - 2); in Bayer2BGR_8u()
210 bayer.apply(src, s_x, s_y, blue_last, start_with_green); in Bayer2BGR_8u()
229 …__device__ void apply(const PtrStepSzb& src, int s_x, int s_y, bool blue_last, bool start_with_gre… in apply()
232 patch[0][1] = ((const ushort2*) src.ptr(s_y - 1))[s_x]; in apply()
233 patch[0][0] = ((const ushort2*) src.ptr(s_y - 1))[::max(s_x - 1, 0)]; in apply()
234 … patch[0][2] = ((const ushort2*) src.ptr(s_y - 1))[::min(s_x + 1, ((src.cols + 1) >> 1) - 1)]; in apply()
236 patch[1][1] = ((const ushort2*) src.ptr(s_y))[s_x]; in apply()
237 patch[1][0] = ((const ushort2*) src.ptr(s_y))[::max(s_x - 1, 0)]; in apply()
238 … patch[1][2] = ((const ushort2*) src.ptr(s_y))[::min(s_x + 1, ((src.cols + 1) >> 1) - 1)]; in apply()
240 patch[2][1] = ((const ushort2*) src.ptr(s_y + 1))[s_x]; in apply()
241 patch[2][0] = ((const ushort2*) src.ptr(s_y + 1))[::max(s_x - 1, 0)]; in apply()
242 … patch[2][2] = ((const ushort2*) src.ptr(s_y + 1))[::min(s_x + 1, ((src.cols + 1) >> 1) - 1)]; in apply()
244 if ((s_y & 1) ^ start_with_green) in apply()
252 if ((s_y & 1) ^ blue_last) in apply()
281 if ((s_y & 1) ^ blue_last) in apply()
324 int s_y = blockIdx.y * blockDim.y + threadIdx.y; in Bayer2BGR_16u() local
326 if (s_y >= src.rows || (s_x << 1) >= src.cols) in Bayer2BGR_16u()
329 s_y = ::min(::max(s_y, 1), src.rows - 2); in Bayer2BGR_16u()
332 bayer.apply(src, s_x, s_y, blue_last, start_with_green); in Bayer2BGR_16u()