Management with RenderScrip

49 views Asked by At

I would like to handle the frame from YUV to RGB using the ScriptIntrinsecYUVtoRGB in the method ImageReader.OnImageAvailableListener().

It can be done? Until now I have done so:

I remaining with image white and the preview does not start anymore.

Suggestions?

1

There are 1 answers

2
Eddy Talvala On BEST ANSWER

You're not adding your TextureView surface to the capture session or the capture request anymore. Only the ImageReader Surface is being added to the outputSurfaces list and to captureRequestBuilder.addTarget().

So the camera is not drawing anything to the TextureView. Add it back in to both.