Lines Matching refs:s_x
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()
201 const int s_x = blockIdx.x * blockDim.x + threadIdx.x; in Bayer2BGR_8u() local
204 if (s_y >= src.rows || (s_x << 2) >= src.cols) 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()
323 const int s_x = blockIdx.x * blockDim.x + threadIdx.x; in Bayer2BGR_16u() local
326 if (s_y >= src.rows || (s_x << 1) >= src.cols) in Bayer2BGR_16u()
332 bayer.apply(src, s_x, s_y, blue_last, start_with_green); in Bayer2BGR_16u()