Lines Matching refs:ey
1423 * Draw a line from (ex, ey) -> (sx, sy).
1429 static void draw_line(uint8_t *buf, int sx, int sy, int ex, int ey,
1437 ey = av_clip(ey, 0, h - 1);
1441 if (FFABS(ex - sx) > FFABS(ey - sy)) {
1444 FFSWAP(int, sy, ey);
1448 f = ((ey - sy) << 16) / ex;
1456 if (sy > ey) {
1458 FFSWAP(int, sy, ey);
1461 ey -= sy;
1462 if (ey)
1463 f = ((ex - sx) << 16) / ey;
1466 for (y = 0; y = ey; y++) {
1476 * Draw an arrow from (ex, ey) -> (sx, sy).
1483 int ey, int w, int h, int stride, int color)
1490 ey = av_clip(ey, -100, h + 100);
1493 dy = ey - sy;
1507 draw_line(buf, sx, sy, ex, ey, w, h, stride, color);