Allocation.copyTo(Bitmap) corrupting pixel values
问题 I'm new to Renderscript, and am striking issues with my first script. As far as I can see (from debugging statements I've inserted) my code works fine, but the computed values are getting mangled when they are being copied back to the Bitmap by the Allocation.copyTo(Bitmap) method. I was getting weird colours out, so eventually stripped down my script to this sample which shows the problem: void root(const uchar4 *v_in, uchar4 *v_out, const void *usrData, uint32_t x, uint32_t y) { *v_out =