- void reunis(unsigned char** image1, unsigned char** image2, unsigned char** image, unsigned w, unsigned h)
- // string with letters here like "ABCDEFGHIJ/0" //encode images in function
- {
- for(unsigned y = 0; y<h; y++)
- {
- memcpy((*image) + y*w*3, (*image1) + y*w*3/2, w*3/2);
- printf("reunis copy str %d, part 1\n", y);
- /*for(unsigned int i = y*w*3; i < y*w*3 + w*3/2; i++)
- {
- printf("%d\n", (*image)[i]);
- }
- printf("for end\n");
- */
- memcpy((*image) + y*w*3 + w*3/2, (*image2) + y*w*3/2, w*3/2);
- printf("reunis copy str %d, part 2\n", y);
- }
- }