Lines Matching refs:neighbor
1478 int2 neighbor;
1479 neighbor.y = y + offset.y;
1480 neighbor.x = x + offset.x;
1483 clampedNeighbor.x = ClampToCanvas(neighbor.x, imageWidth);
1484 clampedNeighbor.y = ClampToCanvas(neighbor.y, imageHeight);
1486 CLPixelType r = (clampedNeighbor.x == neighbor.x
1487 … && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]
1541 int2 neighbor, clampedNeighbor;
1543 neighbor.y = y + offset.y;
1544 neighbor.x = x + offset.x;
1545 clampedNeighbor.x = ClampToCanvas(neighbor.x, imageWidth);
1546 clampedNeighbor.y = ClampToCanvas(neighbor.y, imageHeight);
1548 CLPixelType r = (clampedNeighbor.x == neighbor.x
1549 && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]
1553 neighbor.y = y - offset.y;
1554 neighbor.x = x - offset.x;
1555 clampedNeighbor.x = ClampToCanvas(neighbor.x, imageWidth);
1556 clampedNeighbor.y = ClampToCanvas(neighbor.y, imageHeight);
1558 CLPixelType s = (clampedNeighbor.x == neighbor.x
1559 && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]