iOS has special stride requirements that we don't know yet, so copy input buffers into buffers allocated by iOS for now. Later we should check the stride and probably provide a buffer pool for these buffers so upstream can directly write in there.