Lines Matching refs:neighbor
1488 int2 neighbor;
1489 neighbor.y = y + offset.y;
1490 neighbor.x = x + offset.x;
1493 clampedNeighbor.x = ClampToCanvas(neighbor.x, imageWidth);
1494 clampedNeighbor.y = ClampToCanvas(neighbor.y, imageHeight);
1496 CLPixelType r = (clampedNeighbor.x == neighbor.x
1497 … && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]
1551 int2 neighbor, clampedNeighbor;
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 r = (clampedNeighbor.x == neighbor.x
1559 && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]
1563 neighbor.y = y - offset.y;
1564 neighbor.x = x - offset.x;
1565 clampedNeighbor.x = ClampToCanvas(neighbor.x, imageWidth);
1566 clampedNeighbor.y = ClampToCanvas(neighbor.y, imageHeight);
1568 CLPixelType s = (clampedNeighbor.x == neighbor.x
1569 && clampedNeighbor.y == neighbor.y)?inputImage[clampedNeighbor.y*imageWidth+clampedNeighbor.x]