📅  最后修改于: 2022-03-11 14:44:45.097000             🧑  作者: Mango
unsigned char *a1 = arr1;
unsigned char *a2 = arr2;
for (int x = 0; x < 768; x++) //copy each row
{
memcpy(a1, a2, nc);
a1 += 1024;
a2 += 768;
}