MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / generate

Method generate

test/librawspeed/common/CommonTest.cpp:441–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439 fill(dst.begin(), dst.end(), static_cast<decltype(dst)::value_type>(-1));
440 }
441 void generate() {
442 uint8_t v = 0;
443
444 for (int y = 0; y < height; y++) {
445 for (int x = 0; x < rowSize; x++, v++) {
446 src[y * srcPitch + x] = v;
447 }
448 }
449 }
450 void copy() {
451 if (src.empty() || dst.empty())
452 return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected