+ unsigned char *src = canvases[t]->_data;
+ unsigned char *dst = output + (n * nb_images_per_sequence + t) * width * height * 3;
+ for(int d = 0; d < 3; d++) {
+ for(int y = 0; y < height; y++) {
+ for(int x = 0; x < width; x++) {
+ dst[x + width * (y + height * d)] = src[d + 4 * (x + width * y)];
+ }
+ }
+ }