MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / copyRowPortion

Method copyRowPortion

Engine/Image.cpp:2403–2419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2401}
2402
2403void
2404Bitmap::copyRowPortion(int x1,
2405 int x2,
2406 int y,
2407 const Bitmap& other)
2408{
2409 const char* srcBitmap = other.getBitmapAt(x1, y);
2410 char* dstBitmap = getBitmapAt(x1, y);
2411 const char* end = dstBitmap + (x2 - x1);
2412
2413 assert(srcBitmap && dstBitmap);
2414 while (dstBitmap < end) {
2415 *dstBitmap = /**srcBitmap == PIXEL_UNAVAILABLE ? 0 : */ *srcBitmap;
2416 ++dstBitmap;
2417 ++srcBitmap;
2418 }
2419}
2420
2421void
2422Image::copyBitmapPortion(const RectI& roi,

Callers 1

copyBitmapRowPortionMethod · 0.80

Calls 1

getBitmapAtMethod · 0.45

Tested by

no test coverage detected