From Social Bat, 5 Years ago, written in Plain Text.
Embed
  1. void reunis(unsigned char** image1, unsigned char** image2, unsigned char** image, unsigned w, unsigned h)
  2. // string with letters here like "ABCDEFGHIJ/0" //encode images in function
  3. {
  4.         for(unsigned y = 0; y<h; y++)
  5.         {
  6.                 memcpy((*image) + y*w*3, (*image1) + y*w*3/2, w*3/2);
  7.                 printf("reunis copy str %d, part 1\n", y);
  8.                 /*for(unsigned int i = y*w*3; i < y*w*3 + w*3/2; i++)
  9.                 {
  10.                         printf("%d\n", (*image)[i]);
  11.                 }
  12.                 printf("for end\n");
  13.                 */
  14.                 memcpy((*image) + y*w*3 + w*3/2, (*image2) + y*w*3/2, w*3/2);
  15.                 printf("reunis copy str %d, part 2\n", y);
  16.         }
  17. }