Lines Matching refs:src
431 rect_i clip_rect_area(rect_i& dst, rect_i& src, int wsrc, int hsrc) const
438 if(src.x1 < 0)
440 dst.x1 -= src.x1;
441 src.x1 = 0;
443 if(src.y1 < 0)
445 dst.y1 -= src.y1;
446 src.y1 = 0;
449 if(src.x2 > wsrc) src.x2 = wsrc;
450 if(src.y2 > hsrc) src.y2 = hsrc;
454 src.x1 += cb.x1 - dst.x1;
459 src.y1 += cb.y1 - dst.y1;
469 if(rc.x2 > src.x2 - src.x1) rc.x2 = src.x2 - src.x1;
470 if(rc.y2 > src.y2 - src.y1) rc.y2 = src.y2 - src.y1;
476 void copy_from(const RenBuf& src,
481 rect_i rsrc(0, 0, src.width(), src.height());
496 rect_i rc = clip_rect_area(rdst, rsrc, src.width(), src.height());
509 m_ren->copy_from(src,
522 void blend_from(const SrcPixelFormatRenderer& src,
528 rect_i rsrc(0, 0, src.width(), src.height());
542 rect_i rc = clip_rect_area(rdst, rsrc, src.width(), src.height());
555 typename SrcPixelFormatRenderer::row_data rw = src.row(rsrc.y1);
575 m_ren->blend_from(src,