Lines Matching full:cols

23 "__local int * bestDisp, __local int * bestCost, int d, int x, int y, int cols, int rows)\n"
33 "if( *bestCost != FILTERED && x < cols - WSZ2 - MIN_DISP && y < rows - WSZ2 && d == best_disp)\n"
47 "short * costbuf, int *h, int cols, int d, short cost)\n"
51 "int idx = mad24(y + WSZ2 * (2 * nthread - 1), cols, x + WSZ2 * (1 - 2 * nthread));\n"
61 "left += cols;\n"
62 "right += cols;\n"
79 "int cols, int d, short cost_up_left, short cost_up, short cost_left)\n"
82 "int idx = mad24(y - WSZ2 - 1, cols, x - WSZ2 - 1);\n"
85 "int idx2 = WSZ*cols;\n"
96 "int rows, int cols,\n"
121 "if (x < cols - WSZ2 - MIN_DISP && y < rows - WSZ2)\n"
128 "int idx = mad24(y - WSZ2, cols, x - WSZ2 + i);\n"
135 "left += cols;\n"
136 "right += cols;\n"
146 "int idx = mad24(y - WSZ2 + i, cols, x - WSZ2);\n"
170 "calcDisp(cost, disp, uniquenessRatio, best_disp + 1, best_cost + 1, disp_idx, x, y, cols, rows);\n"
176 "x = (lx < BLOCK_SIZE_X) ? gx + shiftX + lx : cols;\n"
185 "if (x < cols - WSZ2 - MIN_DISP && y < rows - WSZ2)\n"
188 "calcCostBorder(leftptr, rightptr, x, y, nthread, costbuf, &head, cols, disp_idx, cost[2*nthread-1]…
189 "calcCostInside(leftptr, rightptr, x, y, cols, disp_idx, cost[0], cost[1], cost[-1]);\n"
199 …t, disp, uniquenessRatio, best_disp + nthread, best_cost + nthread, disp_idx, x, y, cols, rows);\n"
215 "int rows, int cols, int prefilterCap, int scale_g, int scale_s)\n"
219 "if(x < cols && y < rows)\n"
221 "int cov1 = input[ max(y-1, 0) * cols + x] * 1 +\n"
222 "input[y * cols + max(x-1,0)] * 1 + input[ y * cols + x] * 4 + input[y * cols + min(x…
223 "input[min(y+1, rows-1) * cols + x] * 1;\n"
227 "cov2 += input[clamp(y+i, 0, rows-1) * cols + clamp(x+j, 0, cols-1)];\n"
230 "output[y * cols + x] = res;\n"
234 "int rows, int cols, int prefilterCap)\n"
238 "if(x < cols && y < rows)\n"
242 …nt cov = input[ ((y > 0) ? y-1 : y+1) * cols + (x-1)] * (-1) + input[ ((y > 0) ? y-1 : y+1) * co…
243 "input[ (y) * cols + (x-1)] * (-2) + input[ (y) * cols + ((x<
244 "input[((y<rows-1)?(y+1):(y-1))* cols + (x-1)] * (-1) + input[((y<rows-1)?(y+1):(y-1))* cols + ((x<
246 "output[y * cols + x] = cov;\n"
249 "output[y * cols + x] = prefilterCap;\n"