int width = 10000; int length = 10000; #pragma omp parallel for // open mp line for (int y = 0; y < length; y++) { int y_offset = y * width; const byte* source = SOURCE_IMAGE_ADDRESS_; source += y_offset; byte* destination = DESTINATION_IMAGE_ADDRESS_; destination += y_offset; for (int x = 0; x < width; x++) { *destination = (*source); source++; destination++; } }
x
#pragma omp parallel for private(x)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)