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

Method copyRowPortion

Engine/Image.cpp:2279–2294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2277}
2278
2279void
2280Bitmap::copyRowPortion(int x1,
2281 int x2,
2282 int y,
2283 const Bitmap& other)
2284{
2285 const char* srcBitmap = other.getBitmapAt(x1, y);
2286 char* dstBitmap = getBitmapAt(x1, y);
2287 const char* end = dstBitmap + (x2 - x1);
2288
2289 while (dstBitmap < end) {
2290 *dstBitmap = /**srcBitmap == PIXEL_UNAVAILABLE ? 0 : */ *srcBitmap;
2291 ++dstBitmap;
2292 ++srcBitmap;
2293 }
2294}
2295
2296void
2297Image::copyBitmapPortion(const RectI& roi,

Callers 1

copyBitmapRowPortionMethod · 0.80

Calls 1

getBitmapAtMethod · 0.45

Tested by

no test coverage detected