Lines Matching defs:source
1508 zoom_x (struct pixmap *source, struct pixmap *dest)
1514 if (source && dest)
1520 if (source->height == dest->height
1521 && source->components == dest->components)
1523 if (source->width < dest->width)
1525 ratio = ((float) source->width / (float) dest->width);
1531 * dest[dest_col] = source[(int)src_ptr] +
1532 * (source[((int)src_ptr) + 1] - source[(int)src_ptr])
1538 for (row = 0; row < source->height; row++)
1540 for (component = 0; component < source->components;
1544 GET_COMP (source, src_index, row, component);
1548 (GET_COMP (source, src_index + 1, row,
1571 zoom_y (struct pixmap *source, struct pixmap *dest)
1577 if (source && dest)
1583 if (source->width == dest->width
1584 && source->components == dest->components)
1586 if (source->height < dest->height)
1588 ratio = ((float) source->height / (float) dest->height);
1594 * dest[dest_row] = source[(int)src_ptr] +
1595 * (source[((int)src_ptr) + 1] - source[(int)src_ptr])
1601 for (column = 0; column < source->width; column++)
1603 for (component = 0; component < source->components;
1607 GET_COMP (source, column, src_index, component);
1611 (GET_COMP (source, column, src_index + 1,