android - Pass data efficiently across JNI as well as renderscript -
android - Pass data efficiently across JNI as well as renderscript -
i intend read yuv frames jni level, process them in renderscript , render them. curious if there efficient way pass blocks of info without many re-create ops. right now, using newdirectbytebuffer()
homecoming frames java bytebuffer
. seems can't straight build allocation
upon bytebuffer
.
so question can in 2 re-create operations or less?
copy infoallocation
copy info surfaceview
(i suppose there re-create operation @ rendering part, canvas.setbitmapy(bmp)
) android jni renderscript
Comments
Post a Comment