402
403
ibuf2 = IMB_allocImBuf(x, y, ibuf1->planes, flags);
406
407
memcpy(ibuf2->rect, ibuf1->rect, x *y *sizeof(int));
409
410
memcpy(ibuf2->rect_float, ibuf1->rect_float, ibuf1->channels *x *y *sizeof(float));
412
413
ibuf2->encodedbuffersize = ibuf1->encodedbuffersize;