Lines Matching defs:src
443 rect_i clip_rect_area(rect_i& dst, rect_i& src, int wsrc, int hsrc) const
450 if(src.x1 < 0)
452 dst.x1 -= src.x1;
453 src.x1 = 0;
455 if(src.y1 < 0)
457 dst.y1 -= src.y1;
458 src.y1 = 0;
461 if(src.x2 > wsrc) src.x2 = wsrc;
462 if(src.y2 > hsrc) src.y2 = hsrc;
466 src.x1 += cb.x1 - dst.x1;
471 src.y1 += cb.y1 - dst.y1;
481 if(rc.x2 > src.x2 - src.x1) rc.x2 = src.x2 - src.x1;
482 if(rc.y2 > src.y2 - src.y1) rc.y2 = src.y2 - src.y1;
488 void copy_from(const RenBuf& src,
493 rect_i rsrc(0, 0, src.width(), src.height());
508 rect_i rc = clip_rect_area(rdst, rsrc, src.width(), src.height());
521 m_ren->copy_from(src,
534 void blend_from(const SrcPixelFormatRenderer& src,
540 rect_i rsrc(0, 0, src.width(), src.height());
554 rect_i rc = clip_rect_area(rdst, rsrc, src.width(), src.height());
567 typename SrcPixelFormatRenderer::row_data rw = src.row(rsrc.y1);
587 m_ren->blend_from(src,