[android-developers] Avoid copying allocation to buffer (Renderscript)

2016-06-10 Thread Ruppesh Nalwaya
Hi I started exploring the HelloComputeNDK example that uses Renderscript in C++ to change the saturation of an image, converting it to gray image. I noticed that after running the script on allocations, the output alloc is copied to the outputPtr buffer, which is very "*time consuming operation

[android-developers] avoid copying allocation to buffer

2016-06-10 Thread Ruppesh Nalwaya
Hi I started exploring the HelloComputeNDK example that uses Renderscript in C++ to change the saturation of an image, converting it to gray image. I noticed that after running the script on allocations, the output alloc is copied to the outputPtr buffer, which is very "*time consuming operation