Lines Matching full:cost
60 void calcDisp(__local short * cost, __global short * disp, int uniquenessRatio,
66 short c = cost[0];
80 yp = cost[-2 * BLOCK_SIZE_Y];
81 yn = cost[2 * BLOCK_SIZE_Y];
89 short * costbuf, int *h, int cols, int d, short cost)
116 cost += costdiff - costbuf[head];
119 return cost;
158 __local short * cost;
174 cost = costFunc + costIdx;
217 cost[0] = tempcost;
228 calcDisp(cost, disp, uniquenessRatio, best_disp + 1, best_cost + 1, disp_idx, x, y, cols, rows);
246 cost = costFunc + costIdx;
250 calcCostBorder(leftptr, rightptr, x, y, nthread, costbuf, &head, cols, disp_idx, cost[2*nthread-1]) :
251 calcCostInside(leftptr, rightptr, x, y, cols, disp_idx, cost[0], cost[1], cost[-1]);
253 cost[0] = tempcost;
263 calcDisp(cost, disp, uniquenessRatio, best_disp + nthread, best_cost + nthread, disp_idx, x, y, cols, rows);