Lines Matching refs:patch

65             uchar4 patch[3][3];  in apply()  local
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()
68patch[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()
76patch[2][2] = ((const uchar4*) src.ptr(s_y + 1))[::min(s_x + 1, ((src.cols + 3) >> 2) - 1)]; in apply()
80 const int t0 = (patch[0][1].x + patch[2][1].x + 1) >> 1; in apply()
81 const int t1 = (patch[1][0].w + patch[1][1].y + 1) >> 1; in apply()
83 … const int t2 = (patch[0][1].x + patch[0][1].z + patch[2][1].x + patch[2][1].z + 2) >> 2; in apply()
84 … const int t3 = (patch[0][1].y + patch[1][1].x + patch[1][1].z + patch[2][1].y + 2) >> 2; in apply()
86 const int t4 = (patch[0][1].z + patch[2][1].z + 1) >> 1; in apply()
87 const int t5 = (patch[1][1].y + patch[1][1].w + 1) >> 1; in apply()
89 … const int t6 = (patch[0][1].z + patch[0][2].x + patch[2][1].z + patch[2][2].x + 2) >> 2; in apply()
90 … const int t7 = (patch[0][1].w + patch[1][1].z + patch[1][2].x + patch[2][1].w + 2) >> 2; in apply()
95 res0.y = patch[1][1].x; in apply()
98 res1.x = patch[1][1].y; in apply()
103 res2.y = patch[1][1].z; in apply()
106 res3.x = patch[1][1].w; in apply()
113 res0.y = patch[1][1].x; in apply()
118 res1.z = patch[1][1].y; in apply()
121 res2.y = patch[1][1].z; in apply()
126 res3.z = patch[1][1].w; in apply()
131 … const int t0 = (patch[0][0].w + patch[0][1].y + patch[2][0].w + patch[2][1].y + 2) >> 2; in apply()
132 … const int t1 = (patch[0][1].x + patch[1][0].w + patch[1][1].y + patch[2][1].x + 2) >> 2; in apply()
134 const int t2 = (patch[0][1].y + patch[2][1].y + 1) >> 1; in apply()
135 const int t3 = (patch[1][1].x + patch[1][1].z + 1) >> 1; in apply()
137 … const int t4 = (patch[0][1].y + patch[0][1].w + patch[2][1].y + patch[2][1].w + 2) >> 2; in apply()
138 … const int t5 = (patch[0][1].z + patch[1][1].y + patch[1][1].w + patch[2][1].z + 2) >> 2; in apply()
140 const int t6 = (patch[0][1].w + patch[2][1].w + 1) >> 1; in apply()
141 const int t7 = (patch[1][1].z + patch[1][2].x + 1) >> 1; in apply()
145 res0.x = patch[1][1].x; in apply()
150 res1.y = patch[1][1].y; in apply()
153 res2.x = patch[1][1].z; in apply()
158 res3.y = patch[1][1].w; in apply()
165 res0.z = patch[1][1].x; in apply()
168 res1.y = patch[1][1].y; in apply()
173 res2.z = patch[1][1].z; in apply()
176 res3.y = patch[1][1].w; in apply()
231 ushort2 patch[3][3]; in apply() local
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()
234patch[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()
238patch[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()
242patch[2][2] = ((const ushort2*) src.ptr(s_y + 1))[::min(s_x + 1, ((src.cols + 1) >> 1) - 1)]; in apply()
246 const int t0 = (patch[0][1].x + patch[2][1].x + 1) >> 1; in apply()
247 const int t1 = (patch[1][0].y + patch[1][1].y + 1) >> 1; in apply()
249 … const int t2 = (patch[0][1].x + patch[0][2].x + patch[2][1].x + patch[2][2].x + 2) >> 2; in apply()
250 … const int t3 = (patch[0][1].y + patch[1][1].x + patch[1][2].x + patch[2][1].y + 2) >> 2; in apply()
255 res0.y = patch[1][1].x; in apply()
258 res1.x = patch[1][1].y; in apply()
265 res0.y = patch[1][1].x; in apply()
270 res1.z = patch[1][1].y; in apply()
275 … const int t0 = (patch[0][0].y + patch[0][1].y + patch[2][0].y + patch[2][1].y + 2) >> 2; in apply()
276 … const int t1 = (patch[0][1].x + patch[1][0].y + patch[1][1].y + patch[2][1].x + 2) >> 2; in apply()
278 const int t2 = (patch[0][1].y + patch[2][1].y + 1) >> 1; in apply()
279 const int t3 = (patch[1][1].x + patch[1][2].x + 1) >> 1; in apply()
283 res0.x = patch[1][1].x; in apply()
288 res1.y = patch[1][1].y; in apply()
295 res0.z = patch[1][1].x; in apply()
298 res1.y = patch[1][1].y; in apply()