I intend to read YUV frames from the JNI level, implement them in the renderScript and then present them. I'm very curious if there is an effective way to pass the block of data without too many copy ops. Right now, I'm returning Java as ByteBuffer
as frame using NewDirectByteBuffer ()
. But it seems that I can not build directly on this allotment
on this ByteBuffer
.
So my question is, can I do this in only two copy operations or the data in allocation
SurfaceView
Copy (I think there is a copy operation in the rendering part, such as canvas.Ssetbitimype (BMP)
Comments
Post a Comment